Changeset View
Changeset View
Standalone View
Standalone View
plugins/lockdevice/lockdeviceplugin.h
Show All 38 Lines | |||||
39 | 39 | | |||
40 | public: | 40 | public: | ||
41 | explicit LockDevicePlugin(QObject *parent, const QVariantList &args); | 41 | explicit LockDevicePlugin(QObject *parent, const QVariantList &args); | ||
42 | ~LockDevicePlugin() override; | 42 | ~LockDevicePlugin() override; | ||
43 | 43 | | |||
44 | bool isLocked() const; | 44 | bool isLocked() const; | ||
45 | void setLocked(bool b); | 45 | void setLocked(bool b); | ||
46 | 46 | | |||
47 | QString dbusPath() const override; | ||||
47 | void connected() override; | 48 | void connected() override; | ||
48 | bool receivePackage(const NetworkPackage & np) override; | 49 | bool receivePackage(const NetworkPackage & np) override; | ||
49 | 50 | | |||
50 | Q_SIGNALS: | 51 | Q_SIGNALS: | ||
51 | void lockedChanged(bool locked); | 52 | void lockedChanged(bool locked); | ||
52 | 53 | | |||
53 | private: | 54 | private: | ||
54 | QString dbusPath() const; | | |||
55 | bool m_remoteLocked; | 55 | bool m_remoteLocked; | ||
56 | 56 | | |||
57 | OrgFreedesktopScreenSaverInterface* iface(); | 57 | OrgFreedesktopScreenSaverInterface* iface(); | ||
58 | 58 | | |||
59 | OrgFreedesktopScreenSaverInterface* m_iface; | 59 | OrgFreedesktopScreenSaverInterface* m_iface; | ||
60 | }; | 60 | }; | ||
61 | 61 | | |||
62 | #endif | 62 | #endif |