kwin/plugins/nightcolor/clockskewnotifierengine_p.h
Vlad Zahorodnii bdfb946267 Convert Night Color into a plugin
Night Color adjusts the color temperature based on the current time in
your location. It's not a generic color correction module per se.

We need a central component that can be used by both night color and
colord integration to tweak gamma ramps and which will be able to
resolve conflicts between the two. The Night Color manager cannot be
such a thing because of its very specific usecase.

This change converts Night Color into a plugin to prepare some space for
such a component.

The tricky part is that the dbus api of Night Color has "ColorCorrect"
in its name. I'm afraid we cannot do that much about it without breaking
API compatibility.
2020-11-27 18:55:01 +00:00

28 lines
440 B
C++

/*
SPDX-FileCopyrightText: 2019 Vlad Zahorodnii <vlad.zahorodnii@kde.org>
SPDX-License-Identifier: GPL-2.0-or-later
*/
#pragma once
#include <QObject>
namespace KWin
{
class ClockSkewNotifierEngine : public QObject
{
Q_OBJECT
public:
static ClockSkewNotifierEngine *create(QObject *parent);
protected:
explicit ClockSkewNotifierEngine(QObject *parent);
Q_SIGNALS:
void clockSkewed();
};
} // namespace KWin