Plasma-workspace

login1_manager_interface.h
1/*
2 * This file was generated by qdbusxml2cpp version 0.8
3 * Command line was: qdbusxml2cpp -m -i loginddbustypes.h -p login1_manager_interface
4 * /home/nico/kde6/src/plasma-workspace/libkworkspace/org.freedesktop.login1.Manager.xml
5 *
6 * qdbusxml2cpp is Copyright (C) 2022 The Qt Company Ltd.
7 */
8
9#ifndef LOGIN1_MANAGER_INTERFACE_H
10#define LOGIN1_MANAGER_INTERFACE_H
11
12#include "loginddbustypes.h"
13#include <QtCore/QByteArray>
14#include <QtCore/QList>
15#include <QtCore/QMap>
16#include <QtCore/QObject>
17#include <QtCore/QString>
18#include <QtCore/QStringList>
19#include <QtCore/QVariant>
20#include <QtDBus/QtDBus>
21
22/*
23 * Proxy class for interface org.freedesktop.login1.Manager
24 */
25class OrgFreedesktopLogin1ManagerInterface : public QDBusAbstractInterface
26{
28public:
29 static inline const char *staticInterfaceName()
30 {
31 return "org.freedesktop.login1.Manager";
32 }
33
34public:
35 OrgFreedesktopLogin1ManagerInterface(const QString &service, const QString &path, const QDBusConnection &connection, QObject *parent = nullptr);
36
37 ~OrgFreedesktopLogin1ManagerInterface();
38
39 Q_PROPERTY(QString BlockInhibited READ blockInhibited)
40 inline QString blockInhibited() const
41 {
42 return qvariant_cast<QString>(property("BlockInhibited"));
43 }
44
45 Q_PROPERTY(QString DelayInhibited READ delayInhibited)
46 inline QString delayInhibited() const
47 {
48 return qvariant_cast<QString>(property("DelayInhibited"));
49 }
50
51 Q_PROPERTY(QString HandleHibernateKey READ handleHibernateKey)
52 inline QString handleHibernateKey() const
53 {
54 return qvariant_cast<QString>(property("HandleHibernateKey"));
55 }
56
57 Q_PROPERTY(QString HandleLidSwitch READ handleLidSwitch)
58 inline QString handleLidSwitch() const
59 {
60 return qvariant_cast<QString>(property("HandleLidSwitch"));
61 }
62
63 Q_PROPERTY(QString HandlePowerKey READ handlePowerKey)
64 inline QString handlePowerKey() const
65 {
66 return qvariant_cast<QString>(property("HandlePowerKey"));
67 }
68
69 Q_PROPERTY(QString HandleSuspendKey READ handleSuspendKey)
70 inline QString handleSuspendKey() const
71 {
72 return qvariant_cast<QString>(property("HandleSuspendKey"));
73 }
74
75 Q_PROPERTY(QString IdleAction READ idleAction)
76 inline QString idleAction() const
77 {
78 return qvariant_cast<QString>(property("IdleAction"));
79 }
80
81 Q_PROPERTY(qulonglong IdleActionUSec READ idleActionUSec)
82 inline qulonglong idleActionUSec() const
83 {
84 return qvariant_cast<qulonglong>(property("IdleActionUSec"));
85 }
86
87 Q_PROPERTY(bool IdleHint READ idleHint)
88 inline bool idleHint() const
89 {
90 return qvariant_cast<bool>(property("IdleHint"));
91 }
92
93 Q_PROPERTY(qulonglong IdleSinceHint READ idleSinceHint)
94 inline qulonglong idleSinceHint() const
95 {
96 return qvariant_cast<qulonglong>(property("IdleSinceHint"));
97 }
98
99 Q_PROPERTY(qulonglong IdleSinceHintMonotonic READ idleSinceHintMonotonic)
100 inline qulonglong idleSinceHintMonotonic() const
101 {
102 return qvariant_cast<qulonglong>(property("IdleSinceHintMonotonic"));
103 }
104
105 Q_PROPERTY(qulonglong InhibitDelayMaxUSec READ inhibitDelayMaxUSec)
106 inline qulonglong inhibitDelayMaxUSec() const
107 {
108 return qvariant_cast<qulonglong>(property("InhibitDelayMaxUSec"));
109 }
110
111 Q_PROPERTY(QStringList KillExcludeUsers READ killExcludeUsers)
112 inline QStringList killExcludeUsers() const
113 {
114 return qvariant_cast<QStringList>(property("KillExcludeUsers"));
115 }
116
117 Q_PROPERTY(QStringList KillOnlyUsers READ killOnlyUsers)
118 inline QStringList killOnlyUsers() const
119 {
120 return qvariant_cast<QStringList>(property("KillOnlyUsers"));
121 }
122
123 Q_PROPERTY(bool KillUserProcesses READ killUserProcesses)
124 inline bool killUserProcesses() const
125 {
126 return qvariant_cast<bool>(property("KillUserProcesses"));
127 }
128
129 Q_PROPERTY(uint NAutoVTs READ nAutoVTs)
130 inline uint nAutoVTs() const
131 {
132 return qvariant_cast<uint>(property("NAutoVTs"));
133 }
134
135 Q_PROPERTY(bool PreparingForShutdown READ preparingForShutdown)
136 inline bool preparingForShutdown() const
137 {
138 return qvariant_cast<bool>(property("PreparingForShutdown"));
139 }
140
141 Q_PROPERTY(bool PreparingForSleep READ preparingForSleep)
142 inline bool preparingForSleep() const
143 {
144 return qvariant_cast<bool>(property("PreparingForSleep"));
145 }
146
147public Q_SLOTS: // METHODS
148 inline QDBusPendingReply<> ActivateSession(const QString &in0)
149 {
150 QList<QVariant> argumentList;
151 argumentList << QVariant::fromValue(in0);
152 return asyncCallWithArgumentList(QStringLiteral("ActivateSession"), argumentList);
153 }
154
155 inline QDBusPendingReply<> ActivateSessionOnSeat(const QString &in0, const QString &in1)
156 {
157 QList<QVariant> argumentList;
158 argumentList << QVariant::fromValue(in0) << QVariant::fromValue(in1);
159 return asyncCallWithArgumentList(QStringLiteral("ActivateSessionOnSeat"), argumentList);
160 }
161
162 inline QDBusPendingReply<> AttachDevice(const QString &in0, const QString &in1, bool in2)
163 {
164 QList<QVariant> argumentList;
165 argumentList << QVariant::fromValue(in0) << QVariant::fromValue(in1) << QVariant::fromValue(in2);
166 return asyncCallWithArgumentList(QStringLiteral("AttachDevice"), argumentList);
167 }
168
169 inline QDBusPendingReply<QString> CanHibernate()
170 {
171 QList<QVariant> argumentList;
172 return asyncCallWithArgumentList(QStringLiteral("CanHibernate"), argumentList);
173 }
174
175 inline QDBusPendingReply<QString> CanSuspendThenHibernate()
176 {
177 QList<QVariant> argumentList;
178 return asyncCallWithArgumentList(QStringLiteral("CanSuspendThenHibernate"), argumentList);
179 }
180
181 inline QDBusPendingReply<QString> CanHybridSleep()
182 {
183 QList<QVariant> argumentList;
184 return asyncCallWithArgumentList(QStringLiteral("CanHybridSleep"), argumentList);
185 }
186
187 inline QDBusPendingReply<QString> CanPowerOff()
188 {
189 QList<QVariant> argumentList;
190 return asyncCallWithArgumentList(QStringLiteral("CanPowerOff"), argumentList);
191 }
192
193 inline QDBusPendingReply<QString> CanReboot()
194 {
195 QList<QVariant> argumentList;
196 return asyncCallWithArgumentList(QStringLiteral("CanReboot"), argumentList);
197 }
198
199 inline QDBusPendingReply<QString> CanSuspend()
200 {
201 QList<QVariant> argumentList;
202 return asyncCallWithArgumentList(QStringLiteral("CanSuspend"), argumentList);
203 }
204
205 inline QDBusPendingReply<> FlushDevices(bool in0)
206 {
207 QList<QVariant> argumentList;
208 argumentList << QVariant::fromValue(in0);
209 return asyncCallWithArgumentList(QStringLiteral("FlushDevices"), argumentList);
210 }
211
212 inline QDBusPendingReply<QDBusObjectPath> GetSeat(const QString &in0)
213 {
214 QList<QVariant> argumentList;
215 argumentList << QVariant::fromValue(in0);
216 return asyncCallWithArgumentList(QStringLiteral("GetSeat"), argumentList);
217 }
218
219 inline QDBusPendingReply<QDBusObjectPath> GetSession(const QString &in0)
220 {
221 QList<QVariant> argumentList;
222 argumentList << QVariant::fromValue(in0);
223 return asyncCallWithArgumentList(QStringLiteral("GetSession"), argumentList);
224 }
225
226 inline QDBusPendingReply<QDBusObjectPath> GetSessionByPID(uint in0)
227 {
228 QList<QVariant> argumentList;
229 argumentList << QVariant::fromValue(in0);
230 return asyncCallWithArgumentList(QStringLiteral("GetSessionByPID"), argumentList);
231 }
232
233 inline QDBusPendingReply<QDBusObjectPath> GetUser(uint in0)
234 {
235 QList<QVariant> argumentList;
236 argumentList << QVariant::fromValue(in0);
237 return asyncCallWithArgumentList(QStringLiteral("GetUser"), argumentList);
238 }
239
240 inline QDBusPendingReply<QDBusObjectPath> GetUserByPID(uint in0)
241 {
242 QList<QVariant> argumentList;
243 argumentList << QVariant::fromValue(in0);
244 return asyncCallWithArgumentList(QStringLiteral("GetUserByPID"), argumentList);
245 }
246
247 inline QDBusPendingReply<> Hibernate(bool in0)
248 {
249 QList<QVariant> argumentList;
250 argumentList << QVariant::fromValue(in0);
251 return asyncCallWithArgumentList(QStringLiteral("Hibernate"), argumentList);
252 }
253
254 inline QDBusPendingReply<> HybridSleep(bool in0)
255 {
256 QList<QVariant> argumentList;
257 argumentList << QVariant::fromValue(in0);
258 return asyncCallWithArgumentList(QStringLiteral("HybridSleep"), argumentList);
259 }
260
261 inline QDBusPendingReply<> SuspendThenHibernate(bool in0)
262 {
263 QList<QVariant> argumentList;
264 argumentList << QVariant::fromValue(in0);
265 return asyncCallWithArgumentList(QStringLiteral("SuspendThenHibernate"), argumentList);
266 }
267
268 inline QDBusPendingReply<QDBusUnixFileDescriptor> Inhibit(const QString &in0, const QString &in1, const QString &in2, const QString &in3)
269 {
270 QList<QVariant> argumentList;
271 argumentList << QVariant::fromValue(in0) << QVariant::fromValue(in1) << QVariant::fromValue(in2) << QVariant::fromValue(in3);
272 return asyncCallWithArgumentList(QStringLiteral("Inhibit"), argumentList);
273 }
274
275 inline QDBusPendingReply<> KillSession(const QString &in0, const QString &in1, int in2)
276 {
277 QList<QVariant> argumentList;
278 argumentList << QVariant::fromValue(in0) << QVariant::fromValue(in1) << QVariant::fromValue(in2);
279 return asyncCallWithArgumentList(QStringLiteral("KillSession"), argumentList);
280 }
281
282 inline QDBusPendingReply<> KillUser(uint in0, int in1)
283 {
284 QList<QVariant> argumentList;
285 argumentList << QVariant::fromValue(in0) << QVariant::fromValue(in1);
286 return asyncCallWithArgumentList(QStringLiteral("KillUser"), argumentList);
287 }
288
289 inline QDBusPendingReply<InhibitorList> ListInhibitors()
290 {
291 QList<QVariant> argumentList;
292 return asyncCallWithArgumentList(QStringLiteral("ListInhibitors"), argumentList);
293 }
294
295 inline QDBusPendingReply<NamedSeatPathList> ListSeats()
296 {
297 QList<QVariant> argumentList;
298 return asyncCallWithArgumentList(QStringLiteral("ListSeats"), argumentList);
299 }
300
301 inline QDBusPendingReply<SessionInfoList> ListSessions()
302 {
303 QList<QVariant> argumentList;
304 return asyncCallWithArgumentList(QStringLiteral("ListSessions"), argumentList);
305 }
306
307 inline QDBusPendingReply<UserInfoList> ListUsers()
308 {
309 QList<QVariant> argumentList;
310 return asyncCallWithArgumentList(QStringLiteral("ListUsers"), argumentList);
311 }
312
313 inline QDBusPendingReply<> LockSession(const QString &in0)
314 {
315 QList<QVariant> argumentList;
316 argumentList << QVariant::fromValue(in0);
317 return asyncCallWithArgumentList(QStringLiteral("LockSession"), argumentList);
318 }
319
320 inline QDBusPendingReply<> LockSessions()
321 {
322 QList<QVariant> argumentList;
323 return asyncCallWithArgumentList(QStringLiteral("LockSessions"), argumentList);
324 }
325
326 inline QDBusPendingReply<> PowerOff(bool in0)
327 {
328 QList<QVariant> argumentList;
329 argumentList << QVariant::fromValue(in0);
330 return asyncCallWithArgumentList(QStringLiteral("PowerOff"), argumentList);
331 }
332
333 inline QDBusPendingReply<> Reboot(bool in0)
334 {
335 QList<QVariant> argumentList;
336 argumentList << QVariant::fromValue(in0);
337 return asyncCallWithArgumentList(QStringLiteral("Reboot"), argumentList);
338 }
339
340 inline QDBusPendingReply<> ReleaseSession(const QString &in0)
341 {
342 QList<QVariant> argumentList;
343 argumentList << QVariant::fromValue(in0);
344 return asyncCallWithArgumentList(QStringLiteral("ReleaseSession"), argumentList);
345 }
346
347 inline QDBusPendingReply<> SetUserLinger(uint in0, bool in1, bool in2)
348 {
349 QList<QVariant> argumentList;
350 argumentList << QVariant::fromValue(in0) << QVariant::fromValue(in1) << QVariant::fromValue(in2);
351 return asyncCallWithArgumentList(QStringLiteral("SetUserLinger"), argumentList);
352 }
353
354 inline QDBusPendingReply<> Suspend(bool in0)
355 {
356 QList<QVariant> argumentList;
357 argumentList << QVariant::fromValue(in0);
358 return asyncCallWithArgumentList(QStringLiteral("Suspend"), argumentList);
359 }
360
361 inline QDBusPendingReply<> TerminateSeat(const QString &in0)
362 {
363 QList<QVariant> argumentList;
364 argumentList << QVariant::fromValue(in0);
365 return asyncCallWithArgumentList(QStringLiteral("TerminateSeat"), argumentList);
366 }
367
368 inline QDBusPendingReply<> TerminateSession(const QString &in0)
369 {
370 QList<QVariant> argumentList;
371 argumentList << QVariant::fromValue(in0);
372 return asyncCallWithArgumentList(QStringLiteral("TerminateSession"), argumentList);
373 }
374
375 inline QDBusPendingReply<> TerminateUser(uint in0)
376 {
377 QList<QVariant> argumentList;
378 argumentList << QVariant::fromValue(in0);
379 return asyncCallWithArgumentList(QStringLiteral("TerminateUser"), argumentList);
380 }
381
382 inline QDBusPendingReply<> UnlockSession(const QString &in0)
383 {
384 QList<QVariant> argumentList;
385 argumentList << QVariant::fromValue(in0);
386 return asyncCallWithArgumentList(QStringLiteral("UnlockSession"), argumentList);
387 }
388
389 inline QDBusPendingReply<> UnlockSessions()
390 {
391 QList<QVariant> argumentList;
392 return asyncCallWithArgumentList(QStringLiteral("UnlockSessions"), argumentList);
393 }
394
395Q_SIGNALS: // SIGNALS
396 void PrepareForShutdown(bool in0);
397 void PrepareForSleep(bool in0);
398 void SeatNew(const QString &in0, const QDBusObjectPath &in1);
399 void SeatRemoved(const QString &in0, const QDBusObjectPath &in1);
400 void SessionNew(const QString &in0, const QDBusObjectPath &in1);
401 void SessionRemoved(const QString &in0, const QDBusObjectPath &in1);
402 void UserNew(uint in0, const QDBusObjectPath &in1);
403 void UserRemoved(uint in0, const QDBusObjectPath &in1);
404};
405
406namespace org
407{
408namespace freedesktop
409{
410namespace login1
411{
412using Manager = ::OrgFreedesktopLogin1ManagerInterface;
413}
414}
415}
416#endif
QDBusPendingCall asyncCallWithArgumentList(const QString &method, const QList< QVariant > &args)
QDBusConnection connection() const const
QString path() const const
QString service() const const
Q_OBJECTQ_OBJECT
Q_PROPERTY(...)
Q_SIGNALSQ_SIGNALS
Q_SLOTSQ_SLOTS
QObject * parent() const const
QVariant property(const char *name) const const
QVariant fromValue(T &&value)
This file is part of the KDE documentation.
Documentation copyright © 1996-2024 The KDE developers.
Generated on Fri Dec 20 2024 12:00:00 by doxygen 1.12.0 written by Dimitri van Heesch, © 1997-2006

KDE's Doxygen guidelines are available online.