1 | /* |
2 | * This file was generated by dbusxml2cpp version 0.6 |
3 | * Command line was: dbusxml2cpp -p klauncher_iface -m ../kinit/org.kde.KLauncher.xml |
4 | * |
5 | * dbusxml2cpp is Copyright (C) 2006 Trolltech AS. All rights reserved. |
6 | * |
7 | * This is an auto-generated file. |
8 | * Do not edit! All changes made to it will be lost. |
9 | */ |
10 | |
11 | /* |
12 | KDE5: |
13 | This is a manual copy of an automatically generated file, and the output from dbusxml2cpp |
14 | can change between dbusxml2cpp versions. This is currently no binary compatible |
15 | with what dbusxml2cpp generates these days, so if something else autogenerates the interface, |
16 | there will be crashes on systems with no symbol visibility (happened in ksmserver). |
17 | Either dbusxml2cpp should be fixed or this should be removed from kdelibs. |
18 | */ |
19 | |
20 | #ifndef KLAUNCHER_IFACE_H_84591156096727 |
21 | #define KLAUNCHER_IFACE_H_84591156096727 |
22 | |
23 | #include <kdecore_export.h> |
24 | |
25 | #include <QtCore/QObject> |
26 | #include <QtCore/QByteArray> |
27 | #include <QtCore/QList> |
28 | #include <QtCore/QMap> |
29 | #include <QtCore/QString> |
30 | #include <QtCore/QStringList> |
31 | #include <QtCore/QVariant> |
32 | #include <QtDBus/QtDBus> |
33 | |
34 | /* |
35 | * Proxy class for interface org.kde.KLauncher |
36 | */ |
37 | class KDECORE_EXPORT OrgKdeKLauncherInterface: public QDBusAbstractInterface |
38 | { |
39 | Q_OBJECT |
40 | public: |
41 | static inline const char *staticInterfaceName() |
42 | { return "org.kde.KLauncher" ; } |
43 | |
44 | public: |
45 | OrgKdeKLauncherInterface(const QString &service, const QString &path, const QDBusConnection &connection, QObject *parent = 0); |
46 | |
47 | ~OrgKdeKLauncherInterface(); |
48 | |
49 | public Q_SLOTS: // METHODS |
50 | inline QDBusReply<void> autoStart() |
51 | { |
52 | QList<QVariant> argumentList; |
53 | return callWithArgumentList(QDBus::Block, QLatin1String("autoStart" ), argumentList); |
54 | } |
55 | |
56 | inline QDBusReply<void> autoStart(int phase) |
57 | { |
58 | QList<QVariant> argumentList; |
59 | argumentList << qVariantFromValue(phase); |
60 | return callWithArgumentList(QDBus::Block, QLatin1String("autoStart" ), argumentList); |
61 | } |
62 | |
63 | inline QDBusReply<void> exec_blind(const QString &name, const QStringList &arg_list, const QStringList &envs, const QString &startup_id) |
64 | { |
65 | QList<QVariant> argumentList; |
66 | argumentList << qVariantFromValue(name) << qVariantFromValue(arg_list) << qVariantFromValue(envs) << qVariantFromValue(startup_id); |
67 | return callWithArgumentList(QDBus::Block, QLatin1String("exec_blind" ), argumentList); |
68 | } |
69 | |
70 | inline QDBusReply<void> exec_blind(const QString &name, const QStringList &arg_list) |
71 | { |
72 | QList<QVariant> argumentList; |
73 | argumentList << qVariantFromValue(name) << qVariantFromValue(arg_list); |
74 | return callWithArgumentList(QDBus::Block, QLatin1String("exec_blind" ), argumentList); |
75 | } |
76 | |
77 | inline QDBusReply<int> kdeinit_exec(const QString &app, const QStringList &args, const QStringList &env, const QString &startup_id, QString &dbusServiceName, QString &error, int &pid) |
78 | { |
79 | QList<QVariant> argumentList; |
80 | argumentList << qVariantFromValue(app) << qVariantFromValue(args) << qVariantFromValue(env) << qVariantFromValue(startup_id); |
81 | QDBusMessage reply = callWithArgumentList(QDBus::Block, QLatin1String("kdeinit_exec" ), argumentList); |
82 | if (reply.type() == QDBusMessage::ReplyMessage && reply.arguments().count() == 4) { |
83 | dbusServiceName = qdbus_cast<QString>(reply.arguments().at(1)); |
84 | error = qdbus_cast<QString>(reply.arguments().at(2)); |
85 | pid = qdbus_cast<int>(reply.arguments().at(3)); |
86 | } |
87 | return reply; |
88 | } |
89 | |
90 | inline QDBusReply<int> kdeinit_exec_wait(const QString &app, const QStringList &args, const QStringList &env, const QString &startup_id, QString &dbusServiceName, QString &error, int &pid) |
91 | { |
92 | QList<QVariant> argumentList; |
93 | argumentList << qVariantFromValue(app) << qVariantFromValue(args) << qVariantFromValue(env) << qVariantFromValue(startup_id); |
94 | QDBusMessage reply = callWithArgumentList(QDBus::Block, QLatin1String("kdeinit_exec_wait" ), argumentList); |
95 | if (reply.type() == QDBusMessage::ReplyMessage && reply.arguments().count() == 4) { |
96 | dbusServiceName = qdbus_cast<QString>(reply.arguments().at(1)); |
97 | error = qdbus_cast<QString>(reply.arguments().at(2)); |
98 | pid = qdbus_cast<int>(reply.arguments().at(3)); |
99 | } |
100 | return reply; |
101 | } |
102 | |
103 | inline QDBusReply<void> reparseConfiguration() |
104 | { |
105 | QList<QVariant> argumentList; |
106 | return callWithArgumentList(QDBus::Block, QLatin1String("reparseConfiguration" ), argumentList); |
107 | } |
108 | |
109 | inline QDBusReply<int> requestHoldSlave(const QString &url, const QString &app_socket) |
110 | { |
111 | QList<QVariant> argumentList; |
112 | argumentList << qVariantFromValue(url) << qVariantFromValue(app_socket); |
113 | return callWithArgumentList(QDBus::Block, QLatin1String("requestHoldSlave" ), argumentList); |
114 | } |
115 | |
116 | inline QDBusReply<int> requestSlave(const QString &protocol, const QString &host, const QString &app_socket, QString &error) |
117 | { |
118 | QList<QVariant> argumentList; |
119 | argumentList << qVariantFromValue(protocol) << qVariantFromValue(host) << qVariantFromValue(app_socket); |
120 | QDBusMessage reply = callWithArgumentList(QDBus::Block, QLatin1String("requestSlave" ), argumentList); |
121 | if (reply.type() == QDBusMessage::ReplyMessage && reply.arguments().count() == 2) { |
122 | error = qdbus_cast<QString>(reply.arguments().at(1)); |
123 | } |
124 | return reply; |
125 | } |
126 | |
127 | inline QDBusReply<void> setLaunchEnv(const QString &name, const QString &value) |
128 | { |
129 | QList<QVariant> argumentList; |
130 | argumentList << qVariantFromValue(name) << qVariantFromValue(value); |
131 | return callWithArgumentList(QDBus::Block, QLatin1String("setLaunchEnv" ), argumentList); |
132 | } |
133 | |
134 | inline QDBusReply<int> start_service_by_desktop_name(const QString &serviceName, const QStringList &urls, const QStringList &envs, const QString &startup_id, bool blind, QString &dbusServiceName, QString &error, int &pid) |
135 | { |
136 | QList<QVariant> argumentList; |
137 | argumentList << qVariantFromValue(serviceName) << qVariantFromValue(urls) << qVariantFromValue(envs) << qVariantFromValue(startup_id) << qVariantFromValue(blind); |
138 | QDBusMessage reply = callWithArgumentList(QDBus::Block, QLatin1String("start_service_by_desktop_name" ), argumentList); |
139 | if (reply.type() == QDBusMessage::ReplyMessage && reply.arguments().count() == 4) { |
140 | dbusServiceName = qdbus_cast<QString>(reply.arguments().at(1)); |
141 | error = qdbus_cast<QString>(reply.arguments().at(2)); |
142 | pid = qdbus_cast<int>(reply.arguments().at(3)); |
143 | } |
144 | return reply; |
145 | } |
146 | |
147 | inline QDBusReply<int> start_service_by_desktop_path(const QString &serviceName, const QStringList &urls, const QStringList &envs, const QString &startup_id, bool blind, QString &dbusServiceName, QString &error, int &pid) |
148 | { |
149 | QList<QVariant> argumentList; |
150 | argumentList << qVariantFromValue(serviceName) << qVariantFromValue(urls) << qVariantFromValue(envs) << qVariantFromValue(startup_id) << qVariantFromValue(blind); |
151 | QDBusMessage reply = callWithArgumentList(QDBus::Block, QLatin1String("start_service_by_desktop_path" ), argumentList); |
152 | if (reply.type() == QDBusMessage::ReplyMessage && reply.arguments().count() == 4) { |
153 | dbusServiceName = qdbus_cast<QString>(reply.arguments().at(1)); |
154 | error = qdbus_cast<QString>(reply.arguments().at(2)); |
155 | pid = qdbus_cast<int>(reply.arguments().at(3)); |
156 | } |
157 | return reply; |
158 | } |
159 | |
160 | inline QDBusReply<int> start_service_by_name(const QString &serviceName, const QStringList &urls, const QStringList &envs, const QString &startup_id, bool blind, QString &dbusServiceName, QString &error, int &pid) |
161 | { |
162 | QList<QVariant> argumentList; |
163 | argumentList << qVariantFromValue(serviceName) << qVariantFromValue(urls) << qVariantFromValue(envs) << qVariantFromValue(startup_id) << qVariantFromValue(blind); |
164 | QDBusMessage reply = callWithArgumentList(QDBus::Block, QLatin1String("start_service_by_name" ), argumentList); |
165 | if (reply.type() == QDBusMessage::ReplyMessage && reply.arguments().count() == 4) { |
166 | dbusServiceName = qdbus_cast<QString>(reply.arguments().at(1)); |
167 | error = qdbus_cast<QString>(reply.arguments().at(2)); |
168 | pid = qdbus_cast<int>(reply.arguments().at(3)); |
169 | } |
170 | return reply; |
171 | } |
172 | |
173 | inline QDBusReply<void> waitForSlave(int pid) |
174 | { |
175 | QList<QVariant> argumentList; |
176 | argumentList << qVariantFromValue(pid); |
177 | return callWithArgumentList(QDBus::Block, QLatin1String("waitForSlave" ), argumentList); |
178 | } |
179 | |
180 | inline QDBusReply<bool> checkForHeldSlave(const QString &url) |
181 | { |
182 | QList<QVariant> argumentList; |
183 | argumentList << qVariantFromValue(url); |
184 | return callWithArgumentList(QDBus::Block, QLatin1String("checkForHeldSlave" ), argumentList); |
185 | } |
186 | |
187 | Q_SIGNALS: // SIGNALS |
188 | void autoStart0Done(); |
189 | void autoStart1Done(); |
190 | void autoStart2Done(); |
191 | }; |
192 | |
193 | namespace org { |
194 | namespace kde { |
195 | typedef ::OrgKdeKLauncherInterface KLauncher; |
196 | } |
197 | } |
198 | #endif |
199 | |