Changeset View
Changeset View
Standalone View
Standalone View
common/control.h
Show All 40 Lines | |||||
41 | }; | 41 | }; | ||
42 | 42 | | |||
43 | class ControlConfig : public Control | 43 | class ControlConfig : public Control | ||
44 | { | 44 | { | ||
45 | public: | 45 | public: | ||
46 | ControlConfig(KScreen::ConfigPtr config); | 46 | ControlConfig(KScreen::ConfigPtr config); | ||
47 | 47 | | |||
48 | OutputRetention getOutputRetention(const QString &outputId, const QString &outputName) const; | 48 | OutputRetention getOutputRetention(const QString &outputId, const QString &outputName) const; | ||
49 | void setOutputRetention(const QString &outputId, const QString &outputName, OutputRetention value); | ||||
50 | | ||||
51 | bool writeFile(); | ||||
49 | 52 | | |||
50 | QString filePath() override; | 53 | QString filePath() override; | ||
51 | static QString filePath(const QString &hash); | 54 | static QString filePath(const QString &hash); | ||
52 | 55 | | |||
53 | private: | 56 | private: | ||
57 | bool infoIsOutput(const QVariantMap &info, const QString &outputId, const QString &outputName) const; | ||||
58 | | ||||
54 | KScreen::ConfigPtr m_config; | 59 | KScreen::ConfigPtr m_config; | ||
55 | QVariantList m_info; | 60 | QVariantList m_info; | ||
56 | QStringList m_duplicateOutputIds; | 61 | QStringList m_duplicateOutputIds; | ||
57 | }; | 62 | }; | ||
58 | 63 | | |||
59 | class ControlOutput : public Control | 64 | class ControlOutput : public Control | ||
60 | { | 65 | { | ||
61 | public: | 66 | public: | ||
Show All 12 Lines |