Files
amnezia-client/service/server/systemservice.cpp
T

21 lines
417 B
C++
Raw Normal View History

2023-03-08 17:07:33 +03:00
#include "version.h"
2020-12-26 15:03:51 +03:00
#include "localserver.h"
#include "systemservice.h"
SystemService::SystemService(int argc, char **argv)
: QtService<QCoreApplication>(argc, argv, SERVICE_NAME)
{
setServiceDescription("Service for AmneziaVPN");
}
void SystemService::start()
{
QCoreApplication* app = application();
2020-12-26 23:17:20 +03:00
m_localServer = new LocalServer();
2020-12-26 15:03:51 +03:00
}
void SystemService::stop()
{
delete m_localServer;
}