Rabbit Remote Control
0.1.0-bate14
Toggle main menu visibility
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::CServiceManager
CServiceManager(int argc, char **argv, const QString &appName, const QString &name="Rabbit Remote control service")
The following command line arguments are recognized as service specific:
Definition
ServiceManager.cpp:20
Author: Kang Lin (kl222@126.com)
Copyright (c) Kang Lin Studios All Rights Reserved