KWin
Loading...
Searching...
No Matches
clockskewnotifier.h
Go to the documentation of this file.
1/*
2 SPDX-FileCopyrightText: 2019 Vlad Zahorodnii <vlad.zahorodnii@kde.org>
3
4 SPDX-License-Identifier: GPL-2.0-or-later
5*/
6
7#pragma once
8
9#include <QObject>
10#include <memory>
11
12namespace KWin
13{
14
22class ClockSkewNotifier : public QObject
23{
24 Q_OBJECT
25 Q_PROPERTY(bool active READ isActive WRITE setActive NOTIFY activeChanged)
26
27public:
28 explicit ClockSkewNotifier(QObject *parent = nullptr);
29 ~ClockSkewNotifier() override;
30
34 bool isActive() const;
35
45 void setActive(bool active);
46
47Q_SIGNALS:
52
57
58private:
59 class Private;
60 std::unique_ptr<Private> d;
61};
62
63} // namespace KWin
ClockSkewNotifier(QObject *parent=nullptr)