Changeset View
Changeset View
Standalone View
Standalone View
kcms/nightcolor/kcm.h
- This file was added.
1 | /******************************************************************** | ||||
---|---|---|---|---|---|
2 | Copyright 2017 Roman Gilg <subdiff@gmail.com> | ||||
3 | | ||||
4 | This program is free software; you can redistribute it and/or modify | ||||
5 | it under the terms of the GNU General Public License as published by | ||||
6 | the Free Software Foundation; either version 2 of the License, or | ||||
7 | (at your option) any later version. | ||||
8 | | ||||
9 | This program is distributed in the hope that it will be useful, | ||||
10 | but WITHOUT ANY WARRANTY; without even the implied warranty of | ||||
11 | MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the | ||||
12 | GNU General Public License for more details. | ||||
13 | | ||||
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/>. | ||||
16 | *********************************************************************/ | ||||
17 | #ifndef _KCM_NIGHTCOLOR_H | ||||
18 | #define _KCM_NIGHTCOLOR_H | ||||
19 | | ||||
20 | #include <KQuickAddons/ConfigModule> | ||||
21 | | ||||
22 | namespace ColorCorrect { | ||||
23 | | ||||
24 | class KCMNightColor : public KQuickAddons::ConfigModule | ||||
25 | { | ||||
26 | Q_OBJECT | ||||
27 | public: | ||||
28 | KCMNightColor(QObject* parent, const QVariantList& args); | ||||
29 | ~KCMNightColor() {} | ||||
30 | | ||||
31 | public Q_SLOTS: | ||||
32 | void load(); | ||||
33 | void save(); | ||||
34 | void defaults(); | ||||
35 | | ||||
36 | Q_SIGNALS: | ||||
37 | void loadRelay(); | ||||
38 | void saveRelay(); | ||||
39 | void defaultsRelay(); | ||||
40 | }; | ||||
41 | | ||||
42 | } | ||||
43 | | ||||
44 | #endif // _KCM_NIGHTCOLOR_H |