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: |
|
15 * |
|
16 */ |
|
17 |
|
18 class XQServiceRequest : public QObject |
|
19 { |
|
20 public: |
|
21 XQServiceRequest(const QString& service, const QString& message, const bool& synchronous); |
|
22 ~XQServiceRequest(); |
|
23 bool send(QVariant& retValue); |
|
24 void addArg(const QVariant& v); |
|
25 template<typename T> |
|
26 inline XQServiceRequest &operator<< (const T &var) |
|
27 { |
|
28 QVariant v = qVariantFromValue(var); |
|
29 addArg(v); |
|
30 return *this; |
|
31 } |
|
32 }; |
|