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