File indexing completed on 2024-04-28 13:44:14

0001 /*
0002  * SPDX-FileCopyrightText: 2020 Dimitris Kardarakos <dimkard@posteo.net>
0003  *
0004  * SPDX-License-Identifier: GPL-3.0-or-later
0005  */
0006 
0007 #ifndef ALARM_CHECKER_H
0008 #define ALARM_CHECKER_H
0009 
0010 #include <QObject>
0011 
0012 class QDBusInterface;
0013 
0014 class AlarmChecker : public QObject
0015 {
0016     Q_OBJECT
0017 
0018 public:
0019     explicit AlarmChecker(QObject *parent = nullptr);
0020 
0021     /**
0022      * @brief Shedule the next alarm check
0023      *
0024      */
0025     void scheduleAlarmCheck();
0026 
0027     /**
0028      * @brief Check if the alarm service is active
0029      */
0030     int active();
0031 
0032 private:
0033     QDBusInterface *m_interface;
0034 };
0035 #endif //ALARM_CHECKER_H