Changeset View
Changeset View
Standalone View
Standalone View
greeter/greeterapp.h
Show First 20 Lines • Show All 42 Lines • ▼ Show 20 Line(s) | |||||
43 | namespace ScreenLocker | 43 | namespace ScreenLocker | ||
44 | { | 44 | { | ||
45 | class WallpaperIntegration; | 45 | class WallpaperIntegration; | ||
46 | class LnFIntegration; | 46 | class LnFIntegration; | ||
47 | 47 | | |||
48 | class UnlockApp : public QGuiApplication | 48 | class UnlockApp : public QGuiApplication | ||
49 | { | 49 | { | ||
50 | Q_OBJECT | 50 | Q_OBJECT | ||
51 | Q_CLASSINFO("D-Bus Interface", "org.kde.screensaver.GreeterApp") | ||||
davidedmundson: You don't need this if you're using an adaptor | |||||
51 | public: | 52 | public: | ||
52 | explicit UnlockApp(int &argc, char **argv); | 53 | explicit UnlockApp(int &argc, char **argv); | ||
53 | ~UnlockApp() override; | 54 | ~UnlockApp() override; | ||
54 | 55 | | |||
55 | void setTesting(bool enable); | 56 | void setTesting(bool enable); | ||
56 | void setTheme(const QString &theme); | 57 | void setTheme(const QString &theme); | ||
57 | void setImmediateLock(bool immediateLock); | 58 | void setImmediateLock(bool immediateLock); | ||
58 | void lockImmediately(); | 59 | void lockImmediately(); | ||
Show All 9 Lines | |||||
68 | 69 | | |||
69 | bool supportsSeccomp() const { | 70 | bool supportsSeccomp() const { | ||
70 | return m_supportsSeccomp; | 71 | return m_supportsSeccomp; | ||
71 | } | 72 | } | ||
72 | 73 | | |||
73 | public Q_SLOTS: | 74 | public Q_SLOTS: | ||
74 | void desktopResized(); | 75 | void desktopResized(); | ||
75 | 76 | | |||
77 | // dbus | ||||
78 | void Notify(uint id, const QString &app_name, uint replaces_id, const QString &app_icon, | ||||
79 | const QString &summary, const QString &body, const QStringList &actions, | ||||
80 | const QVariantMap &hints, int timeout); | ||||
81 | void CloseNotification(uint id); | ||||
82 | | ||||
76 | protected: | 83 | protected: | ||
77 | bool eventFilter(QObject *obj, QEvent *event) override; | 84 | bool eventFilter(QObject *obj, QEvent *event) override; | ||
78 | 85 | | |||
79 | private Q_SLOTS: | 86 | private Q_SLOTS: | ||
80 | void resetRequestIgnore(); | 87 | void resetRequestIgnore(); | ||
81 | void suspendToRam(); | 88 | void suspendToRam(); | ||
82 | void suspendToDisk(); | 89 | void suspendToDisk(); | ||
83 | void getFocus(); | 90 | void getFocus(); | ||
▲ Show 20 Lines • Show All 44 Lines • Show Last 20 Lines |
You don't need this if you're using an adaptor