equal
deleted
inserted
replaced
|
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: Stub for FM Radio home screen widget unit testing. |
|
15 * |
|
16 */ |
|
17 |
|
18 #ifndef XQAIWREQUEST_H |
|
19 #define XQAIWREQUEST_H |
|
20 |
|
21 // System includes |
|
22 #include <QObject> |
|
23 #include <QVariant> |
|
24 #include <QStringList> |
|
25 |
|
26 // User includes |
|
27 #include <xqrequestinfo.h> |
|
28 |
|
29 class XQAiwRequest : public QObject |
|
30 { |
|
31 Q_OBJECT |
|
32 |
|
33 public: |
|
34 XQAiwRequest(const QString &interface, const QString &operation, bool isEmbedded); |
|
35 ~XQAiwRequest(); |
|
36 |
|
37 void replyRequestOk(const QVariantList &reply); |
|
38 |
|
39 public slots: |
|
40 void setOperation(const QString &operation); |
|
41 void setSynchronous(bool synchronous); |
|
42 void setEmbedded(bool embedded); |
|
43 bool send(); |
|
44 void setInfo(const XQRequestInfo &info); |
|
45 |
|
46 signals: |
|
47 void requestOk(const QVariant& result); |
|
48 void requestError(int errorCode, const QString& errorMessage); |
|
49 |
|
50 private: |
|
51 bool replyAfterDelay(); |
|
52 |
|
53 |
|
54 private: // data |
|
55 QString mOperation; |
|
56 QStringList pendingRequests; |
|
57 int mRequestCount; |
|
58 |
|
59 }; |
|
60 |
|
61 #endif // XQAIWREQUEST_H |