Changeset View
Changeset View
Standalone View
Standalone View
kded/config.h
Show All 37 Lines | 30 | public: | |||
---|---|---|---|---|---|
38 | std::unique_ptr<Config> readOpenLidFile(); | 38 | std::unique_ptr<Config> readOpenLidFile(); | ||
39 | bool writeFile(); | 39 | bool writeFile(); | ||
40 | bool writeOpenLidFile(); | 40 | bool writeOpenLidFile(); | ||
41 | 41 | | |||
42 | KScreen::ConfigPtr data() const { | 42 | KScreen::ConfigPtr data() const { | ||
43 | return m_data; | 43 | return m_data; | ||
44 | } | 44 | } | ||
45 | 45 | | |||
46 | void activateControlWatching(); | ||||
46 | void log(); | 47 | void log(); | ||
47 | 48 | | |||
48 | void setValidityFlags(KScreen::Config::ValidityFlags flags) { | 49 | void setValidityFlags(KScreen::Config::ValidityFlags flags) { | ||
49 | m_validityFlags = flags; | 50 | m_validityFlags = flags; | ||
50 | } | 51 | } | ||
51 | 52 | | |||
52 | bool canBeApplied() const; | 53 | bool canBeApplied() const; | ||
53 | 54 | | |||
55 | Q_SIGNALS: | ||||
56 | void controlChanged(); | ||||
57 | | ||||
54 | private: | 58 | private: | ||
55 | friend class TestConfig; | 59 | friend class TestConfig; | ||
56 | 60 | | |||
57 | QString filePath(); | 61 | QString filePath(); | ||
58 | std::unique_ptr<Config> readFile(const QString &fileName); | 62 | std::unique_ptr<Config> readFile(const QString &fileName); | ||
59 | bool writeFile(const QString &filePath); | 63 | bool writeFile(const QString &filePath); | ||
60 | 64 | | |||
61 | bool canBeApplied(KScreen::ConfigPtr config) const; | 65 | bool canBeApplied(KScreen::ConfigPtr config) const; | ||
Show All 12 Lines |