Changeset View
Changeset View
Standalone View
Standalone View
kcms/ksmserver/kcmsmserver.h
Show All 17 Lines | |||||
18 | * You should have received a copy of the GNU General Public License | 18 | * You should have received a copy of the GNU General Public License | ||
19 | * along with this program; if not, write to the Free Software | 19 | * along with this program; if not, write to the Free Software | ||
20 | */ | 20 | */ | ||
21 | #ifndef __kcmsmserver_h__ | 21 | #ifndef __kcmsmserver_h__ | ||
22 | #define __kcmsmserver_h__ | 22 | #define __kcmsmserver_h__ | ||
23 | 23 | | |||
24 | #include <kcmodule.h> | 24 | #include <kcmodule.h> | ||
25 | 25 | | |||
26 | class QAction; | ||||
27 | | ||||
26 | class SMServerConfigImpl; | 28 | class SMServerConfigImpl; | ||
27 | 29 | | |||
30 | class OrgFreedesktopLogin1ManagerInterface; | ||||
28 | 31 | | |||
29 | class SMServerConfig : public KCModule | 32 | class SMServerConfig : public KCModule | ||
30 | { | 33 | { | ||
31 | Q_OBJECT | 34 | Q_OBJECT | ||
32 | 35 | | |||
33 | public: | 36 | public: | ||
34 | explicit SMServerConfig( QWidget *parent=nullptr, const QVariantList &list=QVariantList() ); | 37 | explicit SMServerConfig( QWidget *parent=nullptr, const QVariantList &list=QVariantList() ); | ||
35 | 38 | | |||
36 | void load() override; | 39 | void load() override; | ||
37 | void save() override; | 40 | void save() override; | ||
38 | void defaults() override; | 41 | void defaults() override; | ||
39 | 42 | | |||
40 | private: | 43 | private: | ||
44 | void initFirmwareSetup(); | ||||
45 | void checkFirmwareSetupRequested(); | ||||
41 | SMServerConfigImpl* dialog; | 46 | SMServerConfigImpl* dialog; | ||
47 | | ||||
48 | OrgFreedesktopLogin1ManagerInterface *m_login1Manager = nullptr; | ||||
sitter: `= nullptr` | |||||
49 | QAction *m_rebootNowAction = nullptr; | ||||
50 | bool m_isUefi = false; | ||||
42 | }; | 51 | }; | ||
43 | 52 | | |||
44 | #endif | 53 | #endif |
= nullptr