~lukas-kde/unity8/betterSessionManagement

« back to all changes in this revision

Viewing changes to plugins/Unity/Session/dbusunitysessionservice.h

  • Committer: Lukáš Tinkl
  • Date: 2017-03-24 11:57:27 UTC
  • mfrom: (2800.1.91 unity8)
  • Revision ID: lukas.tinkl@canonical.com-20170324115727-34c7tvv3qnxvxzdj
merge trunk

Show diffs side-by-side

added added

removed removed

Lines of Context:
270
270
class DBusGnomeSessionManagerWrapper : public UnityDBusObject
271
271
{
272
272
    Q_OBJECT
273
 
    Q_CLASSINFO("D-Bus Interface", "org.gnome.SessionManager.EndSessionDialog")
 
273
    Q_CLASSINFO("D-Bus Interface", "org.gnome.SessionManager")
274
274
 
275
275
public:
276
276
    DBusGnomeSessionManagerWrapper();
277
277
    ~DBusGnomeSessionManagerWrapper() = default;
278
278
 
279
279
public Q_SLOTS:
 
280
    Q_SCRIPTABLE void Logout(quint32 mode);
 
281
    Q_SCRIPTABLE void Reboot();
 
282
    Q_SCRIPTABLE void RequestReboot();
 
283
    Q_SCRIPTABLE void RequestShutdown();
 
284
    Q_SCRIPTABLE void Shutdown();
 
285
};
 
286
 
 
287
class DBusGnomeSessionManagerDialogWrapper : public UnityDBusObject
 
288
{
 
289
    Q_OBJECT
 
290
    Q_CLASSINFO("D-Bus Interface", "org.gnome.SessionManager.EndSessionDialog")
 
291
 
 
292
public:
 
293
    DBusGnomeSessionManagerDialogWrapper();
 
294
    ~DBusGnomeSessionManagerDialogWrapper() = default;
 
295
 
 
296
public Q_SLOTS:
280
297
    Q_SCRIPTABLE void Open(const unsigned int type, const unsigned int arg_1, const unsigned int max_wait, const QList<QDBusObjectPath> &inhibitors);
281
 
 
282
 
private:
283
 
    void performAsyncCall(const QString &method);
284
298
};
285
299
 
286
300
class DBusGnomeScreensaverWrapper: public UnityDBusObject