20 lines
417 B
C++
20 lines
417 B
C++
#include "version.h"
|
|
#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();
|
|
m_localServer = new LocalServer();
|
|
}
|
|
|
|
void SystemService::stop()
|
|
{
|
|
delete m_localServer;
|
|
}
|