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 XQSERVICEREQUEST_H |
|
19 #define XQSERVICEREQUEST_H |
|
20 |
|
21 #include <QVariant> |
|
22 #include <QString> |
|
23 |
|
24 class XQServiceRequest : public QObject |
|
25 { |
|
26 Q_OBJECT |
|
27 |
|
28 public: |
|
29 XQServiceRequest(QString const& api, QString const& method, bool const& sync = true); |
|
30 ~XQServiceRequest(); |
|
31 bool send(); |
|
32 bool send(QVariant& retValue); |
|
33 void setSynchronous(const bool &synchronous); |
|
34 |
|
35 signals: |
|
36 void requestCompleted(const QVariant& value) ; |
|
37 void requestError(int err); |
|
38 }; |
|
39 #endif |
|