Rabbit Remote Control
0.0.30
Loading...
Searching...
No Matches
Service
ServiceManager.h
1
// Author: Kang Lin <kl222@126.com>
2
3
#ifndef CSERVICEMANAGER_H
4
#define CSERVICEMANAGER_H
5
6
#pragma once
7
8
#include "QtService/QtService"
9
#include "service_export.h"
10
#include <QCoreApplication>
11
#include <QSharedPointer>
12
#include "ManagerPlugins.h"
13
14
class
CPluginService
;
15
39
class
SERVICE_EXPORT
CServiceManager
:
public
QtService<QCoreApplication>
40
{
41
public
:
91
explicit
CServiceManager
(
int
argc,
char
**argv,
const
QString& appName,
const
QString &name =
"Rabbit Remote control service"
);
92
virtual
~CServiceManager
();
93
94
// QtServiceBase interface
95
protected
:
96
virtual
void
start()
override
;
97
virtual
void
stop()
override
;
98
99
QSharedPointer<CManagePlugins> m_Plugins;
100
};
101
102
#endif
// CSERVICEMANAGER_H
CPluginService
The service plugin interface.
Definition
PluginService.h:27
CServiceManager
Manage service.
Definition
ServiceManager.h:40
作者:康林 (kl222@126.com)
版权所有(c) 康林工作室 保留所有权力