2 * This file was generated by dbusxml2cpp version 0.6
3 * Command line was: dbusxml2cpp -p klauncher_iface -m ../kinit/org.kde.KLauncher.xml
5 * dbusxml2cpp is Copyright (C) 2006 Trolltech AS. All rights reserved.
7 * This is an auto-generated file.
8 * Do not edit! All changes made to it will be lost.
11 #ifndef KLAUNCHER_IFACE_H_84591156096727
12 #define KLAUNCHER_IFACE_H_84591156096727
14 #include <kdecore_export.h>
16 #include <QtCore/QObject>
17 #include <QtCore/QByteArray>
18 #include <QtCore/QList>
19 #include <QtCore/QMap>
20 #include <QtCore/QString>
21 #include <QtCore/QStringList>
22 #include <QtCore/QVariant>
23 #include <QtDBus/QtDBus>
26 * Proxy class for interface org.kde.KLauncher
28 class KDECORE_EXPORT OrgKdeKLauncherInterface
: public QDBusAbstractInterface
32 static inline const char *staticInterfaceName()
33 { return "org.kde.KLauncher"; }
36 OrgKdeKLauncherInterface(const QString
&service
, const QString
&path
, const QDBusConnection
&connection
, QObject
*parent
= 0);
38 ~OrgKdeKLauncherInterface();
40 public Q_SLOTS
: // METHODS
41 inline QDBusReply
<void> autoStart()
43 QList
<QVariant
> argumentList
;
44 return callWithArgumentList(QDBus::Block
, QLatin1String("autoStart"), argumentList
);
47 inline QDBusReply
<void> autoStart(int phase
)
49 QList
<QVariant
> argumentList
;
50 argumentList
<< qVariantFromValue(phase
);
51 return callWithArgumentList(QDBus::Block
, QLatin1String("autoStart"), argumentList
);
54 inline QDBusReply
<void> exec_blind(const QString
&name
, const QStringList
&arg_list
, const QStringList
&envs
, const QString
&startup_id
)
56 QList
<QVariant
> argumentList
;
57 argumentList
<< qVariantFromValue(name
) << qVariantFromValue(arg_list
) << qVariantFromValue(envs
) << qVariantFromValue(startup_id
);
58 return callWithArgumentList(QDBus::Block
, QLatin1String("exec_blind"), argumentList
);
61 inline QDBusReply
<void> exec_blind(const QString
&name
, const QStringList
&arg_list
)
63 QList
<QVariant
> argumentList
;
64 argumentList
<< qVariantFromValue(name
) << qVariantFromValue(arg_list
);
65 return callWithArgumentList(QDBus::Block
, QLatin1String("exec_blind"), argumentList
);
68 inline QDBusReply
<int> kdeinit_exec(const QString
&app
, const QStringList
&args
, const QStringList
&env
, const QString
&startup_id
, QString
&dbusServiceName
, QString
&error
, int &pid
)
70 QList
<QVariant
> argumentList
;
71 argumentList
<< qVariantFromValue(app
) << qVariantFromValue(args
) << qVariantFromValue(env
) << qVariantFromValue(startup_id
);
72 QDBusMessage reply
= callWithArgumentList(QDBus::Block
, QLatin1String("kdeinit_exec"), argumentList
);
73 if (reply
.type() == QDBusMessage::ReplyMessage
&& reply
.arguments().count() == 4) {
74 dbusServiceName
= qdbus_cast
<QString
>(reply
.arguments().at(1));
75 error
= qdbus_cast
<QString
>(reply
.arguments().at(2));
76 pid
= qdbus_cast
<int>(reply
.arguments().at(3));
81 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
)
83 QList
<QVariant
> argumentList
;
84 argumentList
<< qVariantFromValue(app
) << qVariantFromValue(args
) << qVariantFromValue(env
) << qVariantFromValue(startup_id
);
85 QDBusMessage reply
= callWithArgumentList(QDBus::Block
, QLatin1String("kdeinit_exec_wait"), argumentList
);
86 if (reply
.type() == QDBusMessage::ReplyMessage
&& reply
.arguments().count() == 4) {
87 dbusServiceName
= qdbus_cast
<QString
>(reply
.arguments().at(1));
88 error
= qdbus_cast
<QString
>(reply
.arguments().at(2));
89 pid
= qdbus_cast
<int>(reply
.arguments().at(3));
94 inline QDBusReply
<void> reparseConfiguration()
96 QList
<QVariant
> argumentList
;
97 return callWithArgumentList(QDBus::Block
, QLatin1String("reparseConfiguration"), argumentList
);
100 inline QDBusReply
<int> requestHoldSlave(const QString
&url
, const QString
&app_socket
)
102 QList
<QVariant
> argumentList
;
103 argumentList
<< qVariantFromValue(url
) << qVariantFromValue(app_socket
);
104 return callWithArgumentList(QDBus::Block
, QLatin1String("requestHoldSlave"), argumentList
);
107 inline QDBusReply
<int> requestSlave(const QString
&protocol
, const QString
&host
, const QString
&app_socket
, QString
&error
)
109 QList
<QVariant
> argumentList
;
110 argumentList
<< qVariantFromValue(protocol
) << qVariantFromValue(host
) << qVariantFromValue(app_socket
);
111 QDBusMessage reply
= callWithArgumentList(QDBus::Block
, QLatin1String("requestSlave"), argumentList
);
112 if (reply
.type() == QDBusMessage::ReplyMessage
&& reply
.arguments().count() == 2) {
113 error
= qdbus_cast
<QString
>(reply
.arguments().at(1));
118 inline QDBusReply
<void> setLaunchEnv(const QString
&name
, const QString
&value
)
120 QList
<QVariant
> argumentList
;
121 argumentList
<< qVariantFromValue(name
) << qVariantFromValue(value
);
122 return callWithArgumentList(QDBus::Block
, QLatin1String("setLaunchEnv"), argumentList
);
125 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
)
127 QList
<QVariant
> argumentList
;
128 argumentList
<< qVariantFromValue(serviceName
) << qVariantFromValue(urls
) << qVariantFromValue(envs
) << qVariantFromValue(startup_id
) << qVariantFromValue(blind
);
129 QDBusMessage reply
= callWithArgumentList(QDBus::Block
, QLatin1String("start_service_by_desktop_name"), argumentList
);
130 if (reply
.type() == QDBusMessage::ReplyMessage
&& reply
.arguments().count() == 4) {
131 dbusServiceName
= qdbus_cast
<QString
>(reply
.arguments().at(1));
132 error
= qdbus_cast
<QString
>(reply
.arguments().at(2));
133 pid
= qdbus_cast
<int>(reply
.arguments().at(3));
138 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
)
140 QList
<QVariant
> argumentList
;
141 argumentList
<< qVariantFromValue(serviceName
) << qVariantFromValue(urls
) << qVariantFromValue(envs
) << qVariantFromValue(startup_id
) << qVariantFromValue(blind
);
142 QDBusMessage reply
= callWithArgumentList(QDBus::Block
, QLatin1String("start_service_by_desktop_path"), argumentList
);
143 if (reply
.type() == QDBusMessage::ReplyMessage
&& reply
.arguments().count() == 4) {
144 dbusServiceName
= qdbus_cast
<QString
>(reply
.arguments().at(1));
145 error
= qdbus_cast
<QString
>(reply
.arguments().at(2));
146 pid
= qdbus_cast
<int>(reply
.arguments().at(3));
151 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
)
153 QList
<QVariant
> argumentList
;
154 argumentList
<< qVariantFromValue(serviceName
) << qVariantFromValue(urls
) << qVariantFromValue(envs
) << qVariantFromValue(startup_id
) << qVariantFromValue(blind
);
155 QDBusMessage reply
= callWithArgumentList(QDBus::Block
, QLatin1String("start_service_by_name"), argumentList
);
156 if (reply
.type() == QDBusMessage::ReplyMessage
&& reply
.arguments().count() == 4) {
157 dbusServiceName
= qdbus_cast
<QString
>(reply
.arguments().at(1));
158 error
= qdbus_cast
<QString
>(reply
.arguments().at(2));
159 pid
= qdbus_cast
<int>(reply
.arguments().at(3));
164 inline QDBusReply
<void> waitForSlave(int pid
)
166 QList
<QVariant
> argumentList
;
167 argumentList
<< qVariantFromValue(pid
);
168 return callWithArgumentList(QDBus::Block
, QLatin1String("waitForSlave"), argumentList
);
171 Q_SIGNALS
: // SIGNALS
172 void autoStart0Done();
173 void autoStart1Done();
174 void autoStart2Done();
179 typedef ::OrgKdeKLauncherInterface KLauncher
;