Manage service.
More...
#include <ServiceManager.h>
|
| 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:
|
|
|
virtual void | start () override |
|
virtual void | stop () override |
|
Manage service.
Manage system service
Usge:
- See also
- CManagerPlugins CPluginService
Definition at line 39 of file ServiceManager.h.
◆ CServiceManager()
CServiceManager::CServiceManager |
( |
int |
argc, |
|
|
char ** |
argv, |
|
|
const QString & |
appName, |
|
|
const QString & |
name = "Rabbit Remote control service" |
|
) |
| |
|
explicit |
The following command line arguments are recognized as service specific:
Short | Long | Explanation |
-i | -install | Install the service. |
-u | -uninstall | Uninstall the service. |
-e | -exec | Execute the service as a standalone application (useful for debug purposes). This is a blocking call, the service will be executed like a normal application. In this mode you will not be able to communicate with the service from the controller. |
-t | -terminate | Stop the service. |
-p | -pause | Pause the service. |
-r | -resume | Resume a paused service. |
-c {cmd} | -command {cmd} | Send the user defined command code {cmd} to the service application. |
-s | -save | Generate default configuration file in [Directory] |
-v | -version | Display version and status information. |
No arguments | Start the service |
Definition at line 20 of file ServiceManager.cpp.
◆ ~CServiceManager()
CServiceManager::~CServiceManager |
( |
| ) |
|
|
virtual |
◆ start()
void CServiceManager::start |
( |
| ) |
|
|
overrideprotectedvirtual |
◆ stop()
void CServiceManager::stop |
( |
| ) |
|
|
overrideprotectedvirtual |
◆ m_Plugins
The documentation for this class was generated from the following files: