File indexing completed on 2024-05-26 05:36:41

0001 /*
0002     SPDX-FileCopyrightText: 2016 Aditya Mehra <aix.m@outlook.com>
0003     SPDX-License-Identifier: LGPL-2.0-or-later
0004 */
0005 
0006 #ifndef CONFIGURATION_H
0007 #define CONFIGURATION_H
0008 
0009 #include <QObject>
0010 
0011 class Q_DECL_EXPORT Configuration : public QObject
0012 {
0013     Q_OBJECT
0014     Q_PROPERTY(bool mycroftEnabled READ mycroftEnabled WRITE setMycroftEnabled NOTIFY mycroftEnabledChanged)
0015     Q_PROPERTY(bool pmInhibitionEnabled READ pmInhibitionEnabled WRITE setPmInhibitionEnabled NOTIFY pmInhibitionEnabledChanged)
0016 
0017 public:
0018     bool mycroftEnabled() const;
0019     void setMycroftEnabled(bool mycroftEnabled);
0020 
0021     bool pmInhibitionEnabled() const;
0022     void setPmInhibitionEnabled(bool pmInhibitionEnabled);
0023 
0024     static Configuration &self();
0025 
0026 Q_SIGNALS:
0027     void mycroftEnabledChanged();
0028     void pmInhibitionEnabledChanged();
0029 };
0030 
0031 #endif // CONFIGURATION_H