File indexing completed on 2024-05-12 05:38:48

0001 /*
0002     SPDX-FileCopyrightText: 2016 Sebastian Kügler <sebas@kde.org>
0003     SPDX-FileCopyrightText: 2023 Natalie Clarius <natalie.clarius@kde.org>
0004 
0005     SPDX-License-Identifier: GPL-2.0-or-later
0006 */
0007 
0008 #pragma once
0009 
0010 #include <QDBusContext>
0011 #include <QMap>
0012 #include <QObject>
0013 #include <QString>
0014 #include <QTimer>
0015 
0016 namespace PowerDevil
0017 {
0018 class ConfigOperation;
0019 class Osd;
0020 
0021 class OsdManager : public QObject, public QDBusContext
0022 {
0023     Q_OBJECT
0024 
0025 public:
0026     explicit OsdManager(QObject *parent = nullptr);
0027 
0028 public Q_SLOTS:
0029     void hideOsd() const;
0030     void showOsd();
0031     void applyProfile(const QString &profile);
0032 
0033 private:
0034     void quit();
0035     QTimer *m_cleanupTimer = new QTimer(this);
0036 };
0037 
0038 } // namespace PowerDevil