File indexing completed on 2024-04-28 05:36:15

0001 /*
0002  *   SPDX-FileCopyrightText: 2010 Dario Freddi <drf@kde.org>
0003  *
0004  *   SPDX-License-Identifier: GPL-2.0-or-later
0005  */
0006 
0007 #pragma once
0008 
0009 #include <QGuiApplication>
0010 #include <QVariantList>
0011 
0012 namespace PowerDevil
0013 {
0014 class Core;
0015 }
0016 
0017 using InhibitionInfo = QPair<QString, QString>;
0018 
0019 class PowerDevilApp : public QGuiApplication
0020 {
0021     Q_OBJECT
0022     Q_DISABLE_COPY(PowerDevilApp)
0023 
0024 public:
0025     explicit PowerDevilApp(int &argc, char **argv);
0026     ~PowerDevilApp() override;
0027 
0028     void init();
0029 
0030 private Q_SLOTS:
0031     void onCoreReady();
0032 
0033 private:
0034     PowerDevil::Core *m_core;
0035     void showOsd();
0036 };