SystemdManager.h 568 B

1234567891011121314151617181920212223242526
  1. #ifndef SYSTEMDMANAGER_H
  2. #define SYSTEMDMANAGER_H
  3. #include <QObject>
  4. class SystemdService
  5. {
  6. public:
  7. SystemdService() {};
  8. SystemdService(QString name, QString configfile) : Name(name), ConfigFile(configfile) {};
  9. QString Name;
  10. QString ConfigFile;
  11. };
  12. class SystemdManager : public QObject
  13. {
  14. Q_OBJECT
  15. public:
  16. explicit SystemdManager(QObject *parent = nullptr) {};
  17. ~SystemdManager() override {};
  18. static bool isEnabled(SystemdService &Service);
  19. static bool enable(SystemdService &Service, bool enable);
  20. };
  21. #endif // SYSTEMDMANAGER_H