Changeset View
Changeset View
Standalone View
Standalone View
greeter/greeterapp.h
Show First 20 Lines • Show All 44 Lines • ▼ Show 20 Line(s) | |||||
45 | { | 45 | { | ||
46 | class Unlocker; | 46 | class Unlocker; | ||
47 | class WallpaperIntegration; | 47 | class WallpaperIntegration; | ||
48 | class LnFIntegration; | 48 | class LnFIntegration; | ||
49 | 49 | | |||
50 | class UnlockApp : public QGuiApplication | 50 | class UnlockApp : public QGuiApplication | ||
51 | { | 51 | { | ||
52 | Q_OBJECT | 52 | Q_OBJECT | ||
53 | Q_PROPERTY(bool cursorHidden READ cursorHidden WRITE setCursorHidden NOTIFY cursorHiddenChanged) | ||||
53 | public: | 54 | public: | ||
54 | explicit UnlockApp(int &argc, char **argv); | 55 | explicit UnlockApp(int &argc, char **argv); | ||
55 | ~UnlockApp() override; | 56 | ~UnlockApp() override; | ||
56 | 57 | | |||
57 | void setTesting(bool enable); | 58 | void setTesting(bool enable); | ||
58 | void setTheme(const QString &theme); | 59 | void setTheme(const QString &theme); | ||
59 | void setImmediateLock(bool immediateLock); | 60 | void setImmediateLock(bool immediateLock); | ||
60 | void lockImmediately(); | 61 | void lockImmediately(); | ||
61 | void setGraceTime(int milliseconds); | 62 | void setGraceTime(int milliseconds); | ||
62 | void setNoLock(bool noLock); | 63 | void setNoLock(bool noLock); | ||
63 | void setKsldSocket(int socket); | 64 | void setKsldSocket(int socket); | ||
64 | void setDefaultToSwitchUser(bool defaultToSwitchUser); | 65 | void setDefaultToSwitchUser(bool defaultToSwitchUser); | ||
65 | 66 | | |||
66 | void osdProgress(const QString &icon, int percent, const QString &additionalText); | 67 | void osdProgress(const QString &icon, int percent, const QString &additionalText); | ||
67 | void osdText(const QString &icon, const QString &additionalText); | 68 | void osdText(const QString &icon, const QString &additionalText); | ||
68 | void updateCanSuspend(bool set); | 69 | void updateCanSuspend(bool set); | ||
69 | void updateCanHibernate(bool set); | 70 | void updateCanHibernate(bool set); | ||
70 | 71 | | |||
71 | bool supportsSeccomp() const { | 72 | bool supportsSeccomp() const { | ||
72 | return m_supportsSeccomp; | 73 | return m_supportsSeccomp; | ||
73 | } | 74 | } | ||
74 | 75 | | |||
76 | bool cursorHidden() const { | ||||
77 | return m_cursorHidden; | ||||
78 | } | ||||
79 | void setCursorHidden(bool cursorHidden); | ||||
80 | | ||||
75 | public Q_SLOTS: | 81 | public Q_SLOTS: | ||
76 | void desktopResized(); | 82 | void desktopResized(); | ||
77 | 83 | | |||
84 | Q_SIGNALS: | ||||
85 | void cursorHiddenChanged(); | ||||
86 | | ||||
78 | protected: | 87 | protected: | ||
79 | bool eventFilter(QObject *obj, QEvent *event) Q_DECL_OVERRIDE; | 88 | bool eventFilter(QObject *obj, QEvent *event) Q_DECL_OVERRIDE; | ||
80 | 89 | | |||
81 | private Q_SLOTS: | 90 | private Q_SLOTS: | ||
82 | void resetRequestIgnore(); | 91 | void resetRequestIgnore(); | ||
83 | void suspendToRam(); | 92 | void suspendToRam(); | ||
84 | void suspendToDisk(); | 93 | void suspendToDisk(); | ||
85 | void getFocus(); | 94 | void getFocus(); | ||
Show All 15 Lines | 98 | private: | |||
101 | KPackage::Package m_package; | 110 | KPackage::Package m_package; | ||
102 | bool m_testing; | 111 | bool m_testing; | ||
103 | bool m_ignoreRequests; | 112 | bool m_ignoreRequests; | ||
104 | bool m_immediateLock; | 113 | bool m_immediateLock; | ||
105 | bool m_runtimeInitialized; | 114 | bool m_runtimeInitialized; | ||
106 | Authenticator *m_authenticator; | 115 | Authenticator *m_authenticator; | ||
107 | int m_graceTime; | 116 | int m_graceTime; | ||
108 | bool m_noLock; | 117 | bool m_noLock; | ||
118 | bool m_cursorHidden; | ||||
109 | bool m_defaultToSwitchUser; | 119 | bool m_defaultToSwitchUser; | ||
110 | 120 | | |||
111 | bool m_canSuspend = false; | 121 | bool m_canSuspend = false; | ||
112 | bool m_canHibernate = false; | 122 | bool m_canHibernate = false; | ||
113 | 123 | | |||
114 | KWayland::Client::ConnectionThread *m_ksldConnection = nullptr; | 124 | KWayland::Client::ConnectionThread *m_ksldConnection = nullptr; | ||
115 | KWayland::Client::Registry *m_ksldRegistry = nullptr; | 125 | KWayland::Client::Registry *m_ksldRegistry = nullptr; | ||
116 | QThread *m_ksldConnectionThread = nullptr; | 126 | QThread *m_ksldConnectionThread = nullptr; | ||
Show All 11 Lines |