The service interface.
More...
#include <Service.h>
|
virtual int | OnInit ()=0 |
| Init service.
|
|
virtual int | OnClean ()=0 |
| Clean service.
|
|
virtual int | OnProcess () |
| Process service.
|
|
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.
◆ CService()
◆ ~CService()
◆ Clean()
◆ GetParameters()
◆ Init()
◆ LoadConfigure()
int CService::LoadConfigure |
( |
const QString & |
szDir = QString() | ) |
|
|
virtual |
◆ OnClean()
virtual int CService::OnClean |
( |
| ) |
|
|
protectedpure virtual |
◆ OnInit()
virtual int CService::OnInit |
( |
| ) |
|
|
protectedpure virtual |
◆ 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 |
◆ slotProcess
void CService::slotProcess |
( |
| ) |
|
|
protectedvirtualslot |
Support non-Qt event loop.
Definition at line 61 of file Service.cpp.
◆ m_pPara
◆ m_pPlugin
The documentation for this class was generated from the following files:
- /home/runner/work/RabbitRemoteControl/RabbitRemoteControl/Service/Service.h
- /home/runner/work/RabbitRemoteControl/RabbitRemoteControl/Service/Service.cpp