equal
deleted
inserted
replaced
|
1 /* |
|
2 * Copyright (c) 2009 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: |
|
15 * |
|
16 */ |
|
17 |
|
18 #ifndef XQAIWREQUEST_H_ |
|
19 #define XQAIWREQUEST_H_ |
|
20 |
|
21 #include <QObject> |
|
22 |
|
23 class XQAiwRequest : public QObject |
|
24 { |
|
25 Q_OBJECT |
|
26 |
|
27 public: |
|
28 |
|
29 XQAiwRequest(); |
|
30 virtual ~XQAiwRequest(); |
|
31 |
|
32 static void reset() |
|
33 { |
|
34 mSetArgumentsCallCount = 0; |
|
35 mLastErrorReturnValue = 0; |
|
36 mLastErrorCallCount = 0; |
|
37 mSendCallCount = 0; |
|
38 mSendFails = false; |
|
39 mSetEmbeddedCallCount = 0; |
|
40 } |
|
41 |
|
42 public: |
|
43 |
|
44 void setArguments(const QList<QVariant> &arguments); |
|
45 int lastError() const; |
|
46 bool send(); |
|
47 void setEmbedded(bool embedded); |
|
48 |
|
49 public: |
|
50 |
|
51 static int mSetArgumentsCallCount; |
|
52 static int mLastErrorReturnValue; |
|
53 static int mLastErrorCallCount; |
|
54 static int mSendCallCount; |
|
55 static bool mSendFails; |
|
56 static int mSetEmbeddedCallCount; |
|
57 |
|
58 }; |
|
59 |
|
60 #endif /* XQAIWREQUEST_H_ */ |