KWin
Loading...
Searching...
No Matches
colormanager.h
Go to the documentation of this file.
1/*
2 SPDX-FileCopyrightText: 2020 Vlad Zahorodnii <vlad.zahorodnii@kde.org>
3
4 SPDX-License-Identifier: GPL-2.0-or-later
5*/
6
7#pragma once
8
9#include "effect/globals.h"
10
11#include <QObject>
12#include <memory>
13
14namespace KWin
15{
16
17class Output;
18class ColorDevice;
19class ColorManagerPrivate;
20
24class KWIN_EXPORT ColorManager : public QObject
25{
26 Q_OBJECT
27
28public:
30 ~ColorManager() override;
31
36 ColorDevice *findDevice(Output *output) const;
37
41 QList<ColorDevice *> devices() const;
42
43Q_SIGNALS:
47 void deviceAdded(ColorDevice *device);
53
54private Q_SLOTS:
55 void handleOutputAdded(Output *output);
56 void handleOutputRemoved(Output *output);
57 void handleSessionActiveChanged(bool active);
58
59private:
60 std::unique_ptr<ColorManagerPrivate> d;
61};
62
63} // namespace KWin
void deviceRemoved(ColorDevice *device)
~ColorManager() override
void deviceAdded(ColorDevice *device)