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

The service interface. More...

#include <Service.h>

Inheritance diagram for CService:
CServiceFreeRDP CServiceLibVNCServer CServiceRabbitVNC CServiceTigerVNC

Public Member Functions

 CService (CPluginService *plugin)
 
virtual int Init ()
 Load parameters, support non-Qt event loop.
 
virtual int Clean ()
 
CParameterServiceGetParameters ()
 
virtual int LoadConfigure (const QString &szDir=QString())
 
virtual int SaveConfigure (const QString &szDir=QString())
 

Protected Slots

virtual void slotProcess ()
 Support non-Qt event loop.
 

Protected Member Functions

virtual int OnInit ()=0
 Init service.
 
virtual int OnClean ()=0
 Clean service.
 
virtual int OnProcess ()
 Process service.
 

Protected Attributes

CParameterServicem_pPara
 
CPluginServicem_pPlugin
 

Detailed Description

The service interface.

by specific protocol implement. The interface only is implemented and used by plugin. Support non-Qt event loop. see: Init(), slotProcess(). If don't use non-Qt event loop. then OnInit() return > 0

Implement the interface:

See also
CPluginServiceThread CPluginService

Definition at line 37 of file Service.h.

Constructor & Destructor Documentation

◆ CService()

CService::CService ( CPluginService plugin)
explicit

Definition at line 13 of file Service.cpp.

◆ ~CService()

CService::~CService ( )
virtual

Definition at line 19 of file Service.cpp.

Member Function Documentation

◆ Clean()

int CService::Clean ( )
virtual

Definition at line 47 of file Service.cpp.

◆ GetParameters()

CParameterService * CService::GetParameters ( )

Definition at line 87 of file Service.cpp.

◆ Init()

int CService::Init ( )
virtual

Load parameters, support non-Qt event loop.

See also
OnInit()

Definition at line 24 of file Service.cpp.

◆ LoadConfigure()

int CService::LoadConfigure ( const QString &  szDir = QString())
virtual

Definition at line 92 of file Service.cpp.

◆ OnClean()

virtual int CService::OnClean ( )
protectedpure virtual

Clean service.

Returns

Implemented in CServiceFreeRDP, CServiceLibVNCServer, CServiceRabbitVNC, and CServiceTigerVNC.

◆ OnInit()

virtual int CService::OnInit ( )
protectedpure virtual

Init service.

Returns
  • < 0: error
  • = 0: Use OnProcess (non-Qt event loop)
  • > 0: Don't use OnProcess (qt event loop)

Implemented in CServiceFreeRDP, CServiceLibVNCServer, CServiceRabbitVNC, and CServiceTigerVNC.

◆ OnProcess()

int CService::OnProcess ( )
protectedvirtual

Process service.

Returns
  • < 0: error or stop
  • >= 0: Call interval. Unit: milliseconds

Reimplemented in CServiceLibVNCServer.

Definition at line 81 of file Service.cpp.

◆ SaveConfigure()

int CService::SaveConfigure ( const QString &  szDir = QString())
virtual

Definition at line 124 of file Service.cpp.

◆ slotProcess

void CService::slotProcess ( )
protectedvirtualslot

Support non-Qt event loop.

Definition at line 61 of file Service.cpp.

Member Data Documentation

◆ m_pPara

CParameterService* CService::m_pPara
protected

Definition at line 116 of file Service.h.

◆ m_pPlugin

CPluginService* CService::m_pPlugin
protected

Definition at line 117 of file Service.h.


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