Changeset View
Changeset View
Standalone View
Standalone View
kded/output.h
- This file was copied to kded/control.h.
Show All 11 Lines | |||||
12 | GNU General Public License for more details. | 12 | GNU General Public License for more details. | ||
13 | 13 | | |||
14 | You should have received a copy of the GNU General Public License | 14 | You should have received a copy of the GNU General Public License | ||
15 | along with this program. If not, see <http://www.gnu.org/licenses/>. | 15 | along with this program. If not, see <http://www.gnu.org/licenses/>. | ||
16 | *********************************************************************/ | 16 | *********************************************************************/ | ||
17 | #ifndef KDED_OUTPUT_H | 17 | #ifndef KDED_OUTPUT_H | ||
18 | #define KDED_OUTPUT_H | 18 | #define KDED_OUTPUT_H | ||
19 | 19 | | |||
20 | #include "control.h" | ||||
21 | | ||||
20 | #include <kscreen/types.h> | 22 | #include <kscreen/types.h> | ||
21 | 23 | | |||
22 | #include <QVariantMap> | 24 | #include <QVariantMap> | ||
23 | 25 | | |||
24 | class Output | 26 | class Output | ||
25 | { | 27 | { | ||
26 | public: | 28 | public: | ||
27 | static void readInOutputs(KScreen::OutputList outputs, const QVariantList &outputsInfo); | 29 | static void readInOutputs(KScreen::OutputList outputs, const QVariantList &outputsInfo, const QMap<QString, Control::OutputRetention> &retentions); | ||
28 | 30 | | |||
29 | static void writeGlobal(const KScreen::OutputPtr &output); | 31 | static void writeGlobal(const KScreen::OutputPtr &output); | ||
30 | static bool writeGlobalPart(const KScreen::OutputPtr &output, QVariantMap &info); | 32 | static bool writeGlobalPart(const KScreen::OutputPtr &output, QVariantMap &info); | ||
31 | 33 | | |||
32 | static QString dirPath(); | 34 | static QString dirPath(); | ||
33 | 35 | | |||
34 | private: | 36 | private: | ||
35 | static QString globalFileName(const QString &hash); | 37 | static QString globalFileName(const QString &hash); | ||
36 | static QVariantMap getGlobalData(KScreen::OutputPtr output); | 38 | static QVariantMap getGlobalData(KScreen::OutputPtr output); | ||
37 | 39 | | |||
38 | static void readIn(KScreen::OutputPtr output, const QVariantMap &info); | 40 | static void readIn(KScreen::OutputPtr output, const QVariantMap &info, Control::OutputRetention retention); | ||
39 | static bool readInGlobal(KScreen::OutputPtr output); | 41 | static bool readInGlobal(KScreen::OutputPtr output); | ||
40 | static void readInGlobalPartFromInfo(KScreen::OutputPtr output, const QVariantMap &info); | 42 | static void readInGlobalPartFromInfo(KScreen::OutputPtr output, const QVariantMap &info); | ||
41 | 43 | | |||
42 | static QString s_dirName; | 44 | static QString s_dirName; | ||
43 | }; | 45 | }; | ||
44 | 46 | | |||
45 | #endif | 47 | #endif |