kwin/plugins/nightcolor/clockskewnotifierengine.cpp
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

29 lines
567 B
C++

/*
SPDX-FileCopyrightText: 2019 Vlad Zahorodnii <vlad.zahorodnii@kde.org>
SPDX-License-Identifier: GPL-2.0-or-later
*/
#include "clockskewnotifierengine_p.h"
#if defined(Q_OS_LINUX)
#include "clockskewnotifierengine_linux.h"
#endif
namespace KWin
{
ClockSkewNotifierEngine *ClockSkewNotifierEngine::create(QObject *parent)
{
#if defined(Q_OS_LINUX)
return LinuxClockSkewNotifierEngine::create(parent);
#else
return nullptr;
#endif
}
ClockSkewNotifierEngine::ClockSkewNotifierEngine(QObject *parent)
: QObject(parent)
{
}
} // namespace KWin