Rabbit Remote Control 0.0.30
Loading...
Searching...
No Matches
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
14class CPluginService;
15
39class SERVICE_EXPORT CServiceManager : public QtService<QCoreApplication>
40{
41public:
91 explicit CServiceManager(int argc, char **argv, const QString& appName, const QString &name = "Rabbit Remote control service");
92 virtual ~CServiceManager();
93
94 // QtServiceBase interface
95protected:
96 virtual void start() override;
97 virtual void stop() override;
98
99 QSharedPointer<CManagePlugins> m_Plugins;
100};
101
102#endif // CSERVICEMANAGER_H
The service plugin interface.
Manage service.