Changeset View
Changeset View
Standalone View
Standalone View
colorcorrection/colorcorrectdbusinterface.h
Show All 37 Lines | 36 | { | |||
---|---|---|---|---|---|
38 | Q_CLASSINFO("D-Bus Interface", "org.kde.kwin.ColorCorrect") | 38 | Q_CLASSINFO("D-Bus Interface", "org.kde.kwin.ColorCorrect") | ||
39 | Q_PROPERTY(bool inhibited READ isInhibited) | 39 | Q_PROPERTY(bool inhibited READ isInhibited) | ||
40 | Q_PROPERTY(bool enabled READ isEnabled) | 40 | Q_PROPERTY(bool enabled READ isEnabled) | ||
41 | Q_PROPERTY(bool running READ isRunning) | 41 | Q_PROPERTY(bool running READ isRunning) | ||
42 | Q_PROPERTY(bool available READ isAvailable) | 42 | Q_PROPERTY(bool available READ isAvailable) | ||
43 | Q_PROPERTY(int currentTemperature READ currentTemperature) | 43 | Q_PROPERTY(int currentTemperature READ currentTemperature) | ||
44 | Q_PROPERTY(int targetTemperature READ targetTemperature) | 44 | Q_PROPERTY(int targetTemperature READ targetTemperature) | ||
45 | Q_PROPERTY(int mode READ mode) | 45 | Q_PROPERTY(int mode READ mode) | ||
46 | Q_PROPERTY(quint64 previousTransitionDateTime READ previousTransitionDateTime) | ||||
47 | Q_PROPERTY(quint32 previousTransitionDuration READ previousTransitionDuration) | ||||
48 | Q_PROPERTY(quint64 scheduledTransitionDateTime READ scheduledTransitionDateTime) | ||||
49 | Q_PROPERTY(quint32 scheduledTransitionDuration READ scheduledTransitionDuration) | ||||
46 | 50 | | |||
47 | public: | 51 | public: | ||
48 | explicit ColorCorrectDBusInterface(Manager *parent); | 52 | explicit ColorCorrectDBusInterface(Manager *parent); | ||
49 | ~ColorCorrectDBusInterface() override = default; | 53 | ~ColorCorrectDBusInterface() override = default; | ||
50 | 54 | | |||
51 | bool isInhibited() const; | 55 | bool isInhibited() const; | ||
52 | bool isEnabled() const; | 56 | bool isEnabled() const; | ||
53 | bool isRunning() const; | 57 | bool isRunning() const; | ||
54 | bool isAvailable() const; | 58 | bool isAvailable() const; | ||
55 | int currentTemperature() const; | 59 | int currentTemperature() const; | ||
56 | int targetTemperature() const; | 60 | int targetTemperature() const; | ||
57 | int mode() const; | 61 | int mode() const; | ||
62 | quint64 previousTransitionDateTime() const; | ||||
63 | quint32 previousTransitionDuration() const; | ||||
64 | quint64 scheduledTransitionDateTime() const; | ||||
65 | quint32 scheduledTransitionDuration() const; | ||||
58 | 66 | | |||
59 | public Q_SLOTS: | 67 | public Q_SLOTS: | ||
60 | /** | 68 | /** | ||
61 | * @brief Gives information about the current state of Night Color. | 69 | * @brief Gives information about the current state of Night Color. | ||
62 | * | 70 | * | ||
63 | * The returned variant hash has always the fields: | 71 | * The returned variant hash has always the fields: | ||
64 | * - ActiveEnabled | 72 | * - ActiveEnabled | ||
65 | * - Active | 73 | * - Active | ||
▲ Show 20 Lines • Show All 94 Lines • Show Last 20 Lines |