9#ifndef LOGIN1_MANAGER_INTERFACE_H
10#define LOGIN1_MANAGER_INTERFACE_H
12#include "loginddbustypes.h"
13#include <QtCore/QByteArray>
14#include <QtCore/QList>
16#include <QtCore/QObject>
17#include <QtCore/QString>
18#include <QtCore/QStringList>
19#include <QtCore/QVariant>
20#include <QtDBus/QtDBus>
29 static inline const char *staticInterfaceName()
31 return "org.freedesktop.login1.Manager";
37 ~OrgFreedesktopLogin1ManagerInterface();
39 Q_PROPERTY(QString BlockInhibited READ blockInhibited)
40 inline QString blockInhibited()
const
42 return qvariant_cast<QString>(
property(
"BlockInhibited"));
45 Q_PROPERTY(QString DelayInhibited READ delayInhibited)
46 inline QString delayInhibited()
const
48 return qvariant_cast<QString>(
property(
"DelayInhibited"));
51 Q_PROPERTY(QString HandleHibernateKey READ handleHibernateKey)
52 inline QString handleHibernateKey()
const
54 return qvariant_cast<QString>(
property(
"HandleHibernateKey"));
57 Q_PROPERTY(QString HandleLidSwitch READ handleLidSwitch)
58 inline QString handleLidSwitch()
const
60 return qvariant_cast<QString>(
property(
"HandleLidSwitch"));
63 Q_PROPERTY(QString HandlePowerKey READ handlePowerKey)
64 inline QString handlePowerKey()
const
66 return qvariant_cast<QString>(
property(
"HandlePowerKey"));
69 Q_PROPERTY(QString HandleSuspendKey READ handleSuspendKey)
70 inline QString handleSuspendKey()
const
72 return qvariant_cast<QString>(
property(
"HandleSuspendKey"));
76 inline QString idleAction()
const
78 return qvariant_cast<QString>(
property(
"IdleAction"));
81 Q_PROPERTY(qulonglong IdleActionUSec READ idleActionUSec)
82 inline qulonglong idleActionUSec()
const
84 return qvariant_cast<qulonglong>(
property(
"IdleActionUSec"));
88 inline bool idleHint()
const
90 return qvariant_cast<bool>(
property(
"IdleHint"));
93 Q_PROPERTY(qulonglong IdleSinceHint READ idleSinceHint)
94 inline qulonglong idleSinceHint()
const
96 return qvariant_cast<qulonglong>(
property(
"IdleSinceHint"));
99 Q_PROPERTY(qulonglong IdleSinceHintMonotonic READ idleSinceHintMonotonic)
100 inline qulonglong idleSinceHintMonotonic()
const
102 return qvariant_cast<qulonglong>(
property(
"IdleSinceHintMonotonic"));
105 Q_PROPERTY(qulonglong InhibitDelayMaxUSec READ inhibitDelayMaxUSec)
106 inline qulonglong inhibitDelayMaxUSec()
const
108 return qvariant_cast<qulonglong>(
property(
"InhibitDelayMaxUSec"));
111 Q_PROPERTY(QStringList KillExcludeUsers READ killExcludeUsers)
112 inline QStringList killExcludeUsers()
const
114 return qvariant_cast<QStringList>(
property(
"KillExcludeUsers"));
117 Q_PROPERTY(QStringList KillOnlyUsers READ killOnlyUsers)
118 inline QStringList killOnlyUsers()
const
120 return qvariant_cast<QStringList>(
property(
"KillOnlyUsers"));
123 Q_PROPERTY(
bool KillUserProcesses READ killUserProcesses)
124 inline bool killUserProcesses()
const
126 return qvariant_cast<bool>(
property(
"KillUserProcesses"));
130 inline uint nAutoVTs()
const
132 return qvariant_cast<uint>(
property(
"NAutoVTs"));
135 Q_PROPERTY(
bool PreparingForShutdown READ preparingForShutdown)
136 inline bool preparingForShutdown()
const
138 return qvariant_cast<bool>(
property(
"PreparingForShutdown"));
141 Q_PROPERTY(
bool PreparingForSleep READ preparingForSleep)
142 inline bool preparingForSleep()
const
144 return qvariant_cast<bool>(
property(
"PreparingForSleep"));
148 inline QDBusPendingReply<> ActivateSession(
const QString &in0)
150 QList<QVariant> argumentList;
155 inline QDBusPendingReply<> ActivateSessionOnSeat(
const QString &in0,
const QString &in1)
157 QList<QVariant> argumentList;
162 inline QDBusPendingReply<> AttachDevice(
const QString &in0,
const QString &in1,
bool in2)
164 QList<QVariant> argumentList;
169 inline QDBusPendingReply<QString> CanHibernate()
171 QList<QVariant> argumentList;
175 inline QDBusPendingReply<QString> CanSuspendThenHibernate()
177 QList<QVariant> argumentList;
181 inline QDBusPendingReply<QString> CanHybridSleep()
183 QList<QVariant> argumentList;
187 inline QDBusPendingReply<QString> CanPowerOff()
189 QList<QVariant> argumentList;
193 inline QDBusPendingReply<QString> CanReboot()
195 QList<QVariant> argumentList;
199 inline QDBusPendingReply<QString> CanSuspend()
201 QList<QVariant> argumentList;
205 inline QDBusPendingReply<> FlushDevices(
bool in0)
207 QList<QVariant> argumentList;
212 inline QDBusPendingReply<QDBusObjectPath> GetSeat(
const QString &in0)
214 QList<QVariant> argumentList;
219 inline QDBusPendingReply<QDBusObjectPath> GetSession(
const QString &in0)
221 QList<QVariant> argumentList;
226 inline QDBusPendingReply<QDBusObjectPath> GetSessionByPID(uint in0)
228 QList<QVariant> argumentList;
233 inline QDBusPendingReply<QDBusObjectPath> GetUser(uint in0)
235 QList<QVariant> argumentList;
240 inline QDBusPendingReply<QDBusObjectPath> GetUserByPID(uint in0)
242 QList<QVariant> argumentList;
247 inline QDBusPendingReply<> Hibernate(
bool in0)
249 QList<QVariant> argumentList;
254 inline QDBusPendingReply<> HybridSleep(
bool in0)
256 QList<QVariant> argumentList;
261 inline QDBusPendingReply<> SuspendThenHibernate(
bool in0)
263 QList<QVariant> argumentList;
268 inline QDBusPendingReply<QDBusUnixFileDescriptor> Inhibit(
const QString &in0,
const QString &in1,
const QString &in2,
const QString &in3)
270 QList<QVariant> argumentList;
275 inline QDBusPendingReply<> KillSession(
const QString &in0,
const QString &in1,
int in2)
277 QList<QVariant> argumentList;
282 inline QDBusPendingReply<> KillUser(uint in0,
int in1)
284 QList<QVariant> argumentList;
289 inline QDBusPendingReply<InhibitorList> ListInhibitors()
291 QList<QVariant> argumentList;
295 inline QDBusPendingReply<NamedSeatPathList> ListSeats()
297 QList<QVariant> argumentList;
301 inline QDBusPendingReply<SessionInfoList> ListSessions()
303 QList<QVariant> argumentList;
307 inline QDBusPendingReply<UserInfoList> ListUsers()
309 QList<QVariant> argumentList;
313 inline QDBusPendingReply<> LockSession(
const QString &in0)
315 QList<QVariant> argumentList;
320 inline QDBusPendingReply<> LockSessions()
322 QList<QVariant> argumentList;
326 inline QDBusPendingReply<> PowerOff(
bool in0)
328 QList<QVariant> argumentList;
333 inline QDBusPendingReply<> Reboot(
bool in0)
335 QList<QVariant> argumentList;
340 inline QDBusPendingReply<> ReleaseSession(
const QString &in0)
342 QList<QVariant> argumentList;
347 inline QDBusPendingReply<> SetUserLinger(uint in0,
bool in1,
bool in2)
349 QList<QVariant> argumentList;
354 inline QDBusPendingReply<> Suspend(
bool in0)
356 QList<QVariant> argumentList;
361 inline QDBusPendingReply<> TerminateSeat(
const QString &in0)
363 QList<QVariant> argumentList;
368 inline QDBusPendingReply<> TerminateSession(
const QString &in0)
370 QList<QVariant> argumentList;
375 inline QDBusPendingReply<> TerminateUser(uint in0)
377 QList<QVariant> argumentList;
382 inline QDBusPendingReply<> UnlockSession(
const QString &in0)
384 QList<QVariant> argumentList;
389 inline QDBusPendingReply<> UnlockSessions()
391 QList<QVariant> argumentList;
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);
412using Manager = ::OrgFreedesktopLogin1ManagerInterface;
QDBusPendingCall asyncCallWithArgumentList(const QString &method, const QList< QVariant > &args)
QDBusConnection connection() const const
QString path() const const
QString service() const const
QObject * parent() const const
QVariant property(const char *name) const const
QVariant fromValue(T &&value)