Rabbit Remote Control 0.0.30
Loading...
Searching...
No Matches
Public Member Functions | Protected Member Functions | Protected Attributes | List of all members
CServiceManager Class Reference

Manage service. More...

#include <ServiceManager.h>

Inheritance diagram for CServiceManager:

Public Member Functions

 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:
 

Protected Member Functions

virtual void start () override
 
virtual void stop () override
 

Protected Attributes

QSharedPointer< CManagePluginsm_Plugins
 

Detailed Description

Manage service.

Manage system service

Usge:

CServiceManager s(argc, argv, "RabbitRemoteControlService");
s.exec();
Manage service.
See also
CManagerPlugins CPluginService

Definition at line 39 of file ServiceManager.h.

Constructor & Destructor Documentation

◆ 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 argumentsStart the service

Definition at line 20 of file ServiceManager.cpp.

◆ ~CServiceManager()

CServiceManager::~CServiceManager ( )
virtual

Definition at line 77 of file ServiceManager.cpp.

Member Function Documentation

◆ start()

void CServiceManager::start ( )
overrideprotectedvirtual

Definition at line 82 of file ServiceManager.cpp.

◆ stop()

void CServiceManager::stop ( )
overrideprotectedvirtual

Definition at line 96 of file ServiceManager.cpp.

Member Data Documentation

◆ m_Plugins

QSharedPointer<CManagePlugins> CServiceManager::m_Plugins
protected

Definition at line 99 of file ServiceManager.h.


The documentation for this class was generated from the following files: