Changeset View
Changeset View
Standalone View
Standalone View
kded/config.h
Show All 27 Lines | |||||
28 | { | 28 | { | ||
29 | public: | 29 | public: | ||
30 | explicit Config(KScreen::ConfigPtr config); | 30 | explicit Config(KScreen::ConfigPtr config); | ||
31 | ~Config() = default; | 31 | ~Config() = default; | ||
32 | 32 | | |||
33 | QString id() const; | 33 | QString id() const; | ||
34 | 34 | | |||
35 | bool fileExists() const; | 35 | bool fileExists() const; | ||
36 | bool openLidFileExists() const; | ||||
37 | | ||||
36 | std::unique_ptr<Config> readFile(); | 38 | std::unique_ptr<Config> readFile(); | ||
37 | std::unique_ptr<Config> readOpenLidFile(); | 39 | std::unique_ptr<Config> readOpenLidFile(); | ||
38 | bool writeFile(); | 40 | bool writeFile(); | ||
39 | bool writeOpenLidFile(); | 41 | bool writeOpenLidFile(); | ||
40 | 42 | | |||
41 | KScreen::ConfigPtr data() const { | 43 | KScreen::ConfigPtr data() const { | ||
42 | return m_data; | 44 | return m_data; | ||
43 | } | 45 | } | ||
Show All 28 Lines |