mirror of
https://github.com/amnezia-vpn/amnezia-client.git
synced 2026-06-22 02:01:08 +07:00
25 lines
369 B
C++
25 lines
369 B
C++
|
|
#ifndef SYSTEMSERVICE_H
|
||
|
|
#define SYSTEMSERVICE_H
|
||
|
|
|
||
|
|
#include <QCoreApplication>
|
||
|
|
|
||
|
|
#include "qtservice.h"
|
||
|
|
|
||
|
|
class LocalServer;
|
||
|
|
|
||
|
|
class SystemService : public QtService<QCoreApplication>
|
||
|
|
{
|
||
|
|
|
||
|
|
public:
|
||
|
|
SystemService(int argc, char** argv);
|
||
|
|
|
||
|
|
protected:
|
||
|
|
void start() override;
|
||
|
|
void stop() override;
|
||
|
|
|
||
|
|
private:
|
||
|
|
LocalServer* m_localServer;
|
||
|
|
};
|
||
|
|
|
||
|
|
#endif // SYSTEMSERVICE_H
|