phoneapp/phoneuiqtviewadapter/tsrc/ut_phonemessagecontroller/xqservicerequest.h
changeset 56 5bcb308bd24d
parent 46 bc5a64e5bc3c
child 64 6aaf0276100e
--- a/phoneapp/phoneuiqtviewadapter/tsrc/ut_phonemessagecontroller/xqservicerequest.h	Tue Jul 06 14:15:47 2010 +0300
+++ /dev/null	Thu Jan 01 00:00:00 1970 +0000
@@ -1,78 +0,0 @@
-/*!
-* Copyright (c) 2009 Nokia Corporation and/or its subsidiary(-ies). 
-* All rights reserved.
-* This component and the accompanying materials are made available
-* under the terms of "Eclipse Public License v1.0"
-* which accompanies this distribution, and is available
-* at the URL "http://www.eclipse.org/legal/epl-v10.html".
-*
-* Initial Contributors:
-* Nokia Corporation - initial contribution.
-*
-* Contributors:
-*
-* Description:  Unit tests for PhoneNoteController.
-*
-*/
-
-#ifndef T_XQSERVICEREQUEST_H
-#define T_XQSERVICEREQUEST_H
-
-#include <QObject>
-#include <QVariant>
-#include <QtTest/qtestcase.h>
-
-extern QString mService;
-extern QString mMessage;
-extern bool mSend;
-extern QList<QVariant> mList;
-
-
-/*!
-    \class XQServiceRequest
-*/
-class XQServiceRequest : public QObject
-{
-Q_OBJECT
-
-public:
-
-    XQServiceRequest(const QString &service,
-                     const QString &message,
-                     const bool &synchronous = true)
-    {
-        mService = service;
-        mMessage = message;
-    }
-
-    ~XQServiceRequest()
-    {
-    }
-
-    bool send(QVariant &retValue)
-    {
-        mSend = true;
-        return mSend;
-    }
-    
-    template <typename T>
-    inline bool send(T& retValue)
-    {
-        QVariant retData;
-        bool ret=send(retData);
-        retValue = qVariantValue<T>(retData);
-        return ret;
-    }
-
-    void setArguments(QList<QVariant> list)
-    {
-        mList = list;
-    }
-
-Q_SIGNALS:
-
-    void requestCompleted(const QVariant &value);
-
-};
-
-#endif //T_XQSERVICEREQUEST_H