author | Eckhart Koeppen <eckhart.koppen@nokia.com> |
Wed, 21 Apr 2010 12:15:23 +0300 | |
branch | RCL_3 |
changeset 12 | cc75c76972ee |
parent 4 | 3b1da2848fc7 |
permissions | -rw-r--r-- |
0 | 1 |
/**************************************************************************** |
2 |
** |
|
4
3b1da2848fc7
Revision: 201003
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
0
diff
changeset
|
3 |
** Copyright (C) 2010 Nokia Corporation and/or its subsidiary(-ies). |
0 | 4 |
** All rights reserved. |
5 |
** Contact: Nokia Corporation (qt-info@nokia.com) |
|
6 |
** |
|
7 |
** This file is part of the QtDBus module of the Qt Toolkit. |
|
8 |
** |
|
9 |
** $QT_BEGIN_LICENSE:LGPL$ |
|
10 |
** No Commercial Usage |
|
11 |
** This file contains pre-release code and may not be distributed. |
|
12 |
** You may use this file in accordance with the terms and conditions |
|
13 |
** contained in the Technology Preview License Agreement accompanying |
|
14 |
** this package. |
|
15 |
** |
|
16 |
** GNU Lesser General Public License Usage |
|
17 |
** Alternatively, this file may be used under the terms of the GNU Lesser |
|
18 |
** General Public License version 2.1 as published by the Free Software |
|
19 |
** Foundation and appearing in the file LICENSE.LGPL included in the |
|
20 |
** packaging of this file. Please review the following information to |
|
21 |
** ensure the GNU Lesser General Public License version 2.1 requirements |
|
22 |
** will be met: http://www.gnu.org/licenses/old-licenses/lgpl-2.1.html. |
|
23 |
** |
|
24 |
** In addition, as a special exception, Nokia gives you certain additional |
|
25 |
** rights. These rights are described in the Nokia Qt LGPL Exception |
|
26 |
** version 1.1, included in the file LGPL_EXCEPTION.txt in this package. |
|
27 |
** |
|
28 |
** If you have questions regarding the use of this file, please contact |
|
29 |
** Nokia at qt-info@nokia.com. |
|
30 |
** |
|
31 |
** |
|
32 |
** |
|
33 |
** |
|
34 |
** |
|
35 |
** |
|
36 |
** |
|
37 |
** |
|
38 |
** $QT_END_LICENSE$ |
|
39 |
** |
|
40 |
****************************************************************************/ |
|
41 |
||
42 |
/* |
|
43 |
* This file was generated by qdbusxml2cpp version 0.7 |
|
44 |
* Command line was: qdbusxml2cpp -i interface.h -p pinger com.trolltech.QtDBus.Pinger.xml |
|
45 |
* |
|
4
3b1da2848fc7
Revision: 201003
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
0
diff
changeset
|
46 |
* qdbusxml2cpp is Copyright (C) 2010 Nokia Corporation and/or its subsidiary(-ies). |
0 | 47 |
* |
48 |
* This is an auto-generated file. |
|
49 |
* Do not edit! All changes made to it will be lost. |
|
50 |
*/ |
|
51 |
||
52 |
#ifndef PINGER_H_1246463415 |
|
53 |
#define PINGER_H_1246463415 |
|
54 |
||
55 |
#include <QtCore/QObject> |
|
56 |
#include <QtCore/QByteArray> |
|
57 |
#include <QtCore/QList> |
|
58 |
#include <QtCore/QMap> |
|
59 |
#include <QtCore/QString> |
|
60 |
#include <QtCore/QStringList> |
|
61 |
#include <QtCore/QVariant> |
|
62 |
#include <QtDBus/QtDBus> |
|
63 |
#include "interface.h" |
|
64 |
||
65 |
/* |
|
66 |
* Proxy class for interface com.trolltech.QtDBus.Pinger |
|
67 |
*/ |
|
68 |
class ComTrolltechQtDBusPingerInterface: public QDBusAbstractInterface |
|
69 |
{ |
|
70 |
Q_OBJECT |
|
71 |
public: |
|
72 |
static inline const char *staticInterfaceName() |
|
73 |
{ return "com.trolltech.QtDBus.Pinger"; } |
|
74 |
||
75 |
public: |
|
76 |
ComTrolltechQtDBusPingerInterface(const QString &service, const QString &path, const QDBusConnection &connection, QObject *parent = 0); |
|
77 |
||
78 |
~ComTrolltechQtDBusPingerInterface(); |
|
79 |
||
80 |
Q_PROPERTY(RegisteredType complexProp READ complexProp WRITE setComplexProp) |
|
81 |
inline RegisteredType complexProp() const |
|
82 |
{ return qvariant_cast< RegisteredType >(property("complexProp")); } |
|
83 |
inline void setComplexProp(RegisteredType value) |
|
84 |
{ setProperty("complexProp", qVariantFromValue(value)); } |
|
85 |
||
86 |
Q_PROPERTY(QString stringProp READ stringProp WRITE setStringProp) |
|
87 |
inline QString stringProp() const |
|
88 |
{ return qvariant_cast< QString >(property("stringProp")); } |
|
89 |
inline void setStringProp(const QString &value) |
|
90 |
{ setProperty("stringProp", qVariantFromValue(value)); } |
|
91 |
||
92 |
Q_PROPERTY(QDBusVariant variantProp READ variantProp WRITE setVariantProp) |
|
93 |
inline QDBusVariant variantProp() const |
|
94 |
{ return qvariant_cast< QDBusVariant >(property("variantProp")); } |
|
95 |
inline void setVariantProp(const QDBusVariant &value) |
|
96 |
{ setProperty("variantProp", qVariantFromValue(value)); } |
|
97 |
||
98 |
public Q_SLOTS: // METHODS |
|
99 |
inline QDBusPendingReply<RegisteredType> complexMethod() |
|
100 |
{ |
|
101 |
QList<QVariant> argumentList; |
|
102 |
return asyncCallWithArgumentList(QLatin1String("complexMethod"), argumentList); |
|
103 |
} |
|
104 |
||
105 |
inline QDBusPendingReply<QString, int> multiOutMethod() |
|
106 |
{ |
|
107 |
QList<QVariant> argumentList; |
|
108 |
return asyncCallWithArgumentList(QLatin1String("multiOutMethod"), argumentList); |
|
109 |
} |
|
110 |
inline QDBusReply<QString> multiOutMethod(int &out1) |
|
111 |
{ |
|
112 |
QList<QVariant> argumentList; |
|
113 |
QDBusMessage reply = callWithArgumentList(QDBus::Block, QLatin1String("multiOutMethod"), argumentList); |
|
114 |
if (reply.type() == QDBusMessage::ReplyMessage && reply.arguments().count() == 2) { |
|
115 |
out1 = qdbus_cast<int>(reply.arguments().at(1)); |
|
116 |
} |
|
117 |
return reply; |
|
118 |
} |
|
119 |
||
120 |
inline QDBusPendingReply<QString> stringMethod() |
|
121 |
{ |
|
122 |
QList<QVariant> argumentList; |
|
123 |
return asyncCallWithArgumentList(QLatin1String("stringMethod"), argumentList); |
|
124 |
} |
|
125 |
||
126 |
inline QDBusPendingReply<> voidMethod() |
|
127 |
{ |
|
128 |
QList<QVariant> argumentList; |
|
129 |
return asyncCallWithArgumentList(QLatin1String("voidMethod"), argumentList); |
|
130 |
} |
|
131 |
||
132 |
Q_SIGNALS: // SIGNALS |
|
133 |
void complexSignal(RegisteredType in0); |
|
134 |
void stringSignal(const QString &in0); |
|
135 |
void voidSignal(); |
|
136 |
}; |
|
137 |
||
138 |
namespace com { |
|
139 |
namespace trolltech { |
|
140 |
namespace QtDBus { |
|
141 |
typedef ::ComTrolltechQtDBusPingerInterface Pinger; |
|
142 |
} |
|
143 |
} |
|
144 |
} |
|
145 |
#endif |