Changeset View
Changeset View
Standalone View
Standalone View
greeter/greeterapp.h
Show First 20 Lines • Show All 55 Lines • ▼ Show 20 Line(s) | 51 | public: | |||
---|---|---|---|---|---|
56 | void setImmediateLock(bool immediateLock); | 56 | void setImmediateLock(bool immediateLock); | ||
57 | void lockImmediately(); | 57 | void lockImmediately(); | ||
58 | void setGraceTime(int milliseconds); | 58 | void setGraceTime(int milliseconds); | ||
59 | void setNoLock(bool noLock); | 59 | void setNoLock(bool noLock); | ||
60 | void setKsldSocket(int socket); | 60 | void setKsldSocket(int socket); | ||
61 | 61 | | |||
62 | void osdProgress(const QString &icon, int percent, const QString &additionalText); | 62 | void osdProgress(const QString &icon, int percent, const QString &additionalText); | ||
63 | void osdText(const QString &icon, const QString &additionalText); | 63 | void osdText(const QString &icon, const QString &additionalText); | ||
64 | void updateCanSuspend(bool set); | ||||
65 | void updateCanHibernate(bool set); | ||||
64 | 66 | | |||
65 | public Q_SLOTS: | 67 | public Q_SLOTS: | ||
66 | void desktopResized(); | 68 | void desktopResized(); | ||
67 | 69 | | |||
68 | protected: | 70 | protected: | ||
69 | virtual bool eventFilter(QObject *obj, QEvent *event); | 71 | virtual bool eventFilter(QObject *obj, QEvent *event); | ||
70 | 72 | | |||
71 | private Q_SLOTS: | 73 | private Q_SLOTS: | ||
Show All 17 Lines | 81 | private: | |||
89 | bool m_testing; | 91 | bool m_testing; | ||
90 | bool m_ignoreRequests; | 92 | bool m_ignoreRequests; | ||
91 | bool m_immediateLock; | 93 | bool m_immediateLock; | ||
92 | bool m_runtimeInitialized; | 94 | bool m_runtimeInitialized; | ||
93 | Authenticator *m_authenticator; | 95 | Authenticator *m_authenticator; | ||
94 | int m_graceTime; | 96 | int m_graceTime; | ||
95 | bool m_noLock; | 97 | bool m_noLock; | ||
96 | 98 | | |||
99 | bool m_canSuspend = false; | ||||
100 | bool m_canHibernate = false; | ||||
101 | | ||||
97 | KWayland::Client::ConnectionThread *m_ksldConnection = nullptr; | 102 | KWayland::Client::ConnectionThread *m_ksldConnection = nullptr; | ||
98 | KWayland::Client::Registry *m_ksldRegistry = nullptr; | 103 | KWayland::Client::Registry *m_ksldRegistry = nullptr; | ||
99 | QThread *m_ksldConnectionThread = nullptr; | 104 | QThread *m_ksldConnectionThread = nullptr; | ||
100 | org_kde_ksld *m_ksldInterface = nullptr; | 105 | org_kde_ksld *m_ksldInterface = nullptr; | ||
101 | 106 | | |||
102 | KWayland::Client::PlasmaShell *m_plasmaShell = nullptr; | 107 | KWayland::Client::PlasmaShell *m_plasmaShell = nullptr; | ||
103 | }; | 108 | }; | ||
104 | } // namespace | 109 | } // namespace | ||
105 | 110 | | |||
106 | #endif // SCREENLOCKER_GREETERAPP_H | 111 | #endif // SCREENLOCKER_GREETERAPP_H |