90
|
1 |
/*
|
|
2 |
* Copyright (c) 2010 Nokia Corporation and/or its subsidiary(-ies).
|
|
3 |
* All rights reserved.
|
|
4 |
* This component and the accompanying materials are made available
|
|
5 |
* under the terms of "Eclipse Public License v1.0"
|
|
6 |
* which accompanies this distribution, and is available
|
|
7 |
* at the URL "http://www.eclipse.org/legal/epl-v10.html".
|
|
8 |
*
|
|
9 |
* Initial Contributors:
|
|
10 |
* Nokia Corporation - initial contribution.
|
|
11 |
*
|
|
12 |
* Contributors:
|
|
13 |
*
|
|
14 |
* Description: Mock class for XQServiceRequest
|
|
15 |
*
|
|
16 |
*/
|
|
17 |
|
|
18 |
#ifndef XQSERVICEREQUEST_H
|
|
19 |
#define XQSERVICEREQUEST_H
|
|
20 |
#include <QObject>
|
|
21 |
#include <QVariant>
|
|
22 |
#include "xqrequestinfo_mock.h"
|
|
23 |
|
|
24 |
class XQServiceRequest : public QObject
|
|
25 |
{
|
|
26 |
Q_OBJECT
|
|
27 |
|
|
28 |
public:
|
|
29 |
|
|
30 |
XQServiceRequest(const QString& /*service*/, const QString& /*message*/, const bool& synchronous = true){
|
|
31 |
Q_UNUSED(synchronous);};
|
|
32 |
~XQServiceRequest(){};
|
|
33 |
|
|
34 |
bool send(){return true;};
|
|
35 |
|
|
36 |
void setInfo(const XQRequestInfo &/*info*/){};
|
|
37 |
XQRequestInfo info() const{return XQRequestInfo();};
|
|
38 |
int latestError() {return 0;};
|
|
39 |
|
|
40 |
template<typename T>
|
|
41 |
inline XQServiceRequest &operator<< (const T &/*var*/)
|
|
42 |
{
|
|
43 |
return *this;
|
|
44 |
}
|
|
45 |
|
|
46 |
private:
|
|
47 |
};
|
|
48 |
|
|
49 |
#endif
|