File indexing completed on 2024-05-19 05:40:18
0001 #ifndef ROLISTEAMDAEMON_H 0002 #define ROLISTEAMDAEMON_H 0003 0004 #include <QObject> 0005 #include <QThread> 0006 0007 #include <common/logcontroller.h> 0008 #include <network/rserver.h> 0009 /** 0010 * @brief The RolisteamDaemon class 0011 */ 0012 class RolisteamDaemon : public QObject 0013 { 0014 Q_OBJECT 0015 public: 0016 explicit RolisteamDaemon(QObject* parent= nullptr); 0017 0018 signals: 0019 void stopped(); 0020 0021 public slots: 0022 void start(); 0023 void restart(); 0024 void stop(); 0025 bool readConfigFile(QString); 0026 void createEmptyConfigFile(QString filepath); 0027 0028 private: 0029 RServer m_server; 0030 QMap<QString, QVariant> m_parameters; 0031 bool m_restart= false; 0032 LogController* m_logController= nullptr; 0033 QThread m_thread; 0034 }; 0035 0036 #endif // ROLISTEAMDAEMON_H