Rabbit Remote Control 0.1.0-bate10
Loading...
Searching...
No Matches
Public Slots | Signals | Public Member Functions | Private Member Functions | List of all members
CBackendServer Class Referenceabstract

Server interface. More...

#include <BackendServer.h>

Inheritance diagram for CBackendServer:
Inheritance graph
[legend]
Collaboration diagram for CBackendServer:
Collaboration graph
[legend]

Public Slots

virtual void slotDisconnect (const QString &szIp, const quint16 port)=0
 Disconnect client.
 

Signals

void sigConnected (const QString &szIp, const quint16 port)
 emit when new client connected
 
void sigDisconnected (const QString &szIp, const quint16 port)
 emit when the client disconnected
 
- Signals inherited from CBackend
void sigRunning ()
 Emitted when the plugin is successfully started.
 
void sigStop ()
 Notify the user to stop.
 
void sigFinished ()
 Successful stopped signal.
 
void sigError (const int nError, const QString &szError=QString())
 Triggered when an error is generated.
 
void sigInformation (const QString &szInfo)
 Triggering from a background thread displays information in the main thread without blocking the background thread.
 
void sigShowMessageBox (const QString &szTitle, const QString &szMessage, const QMessageBox::Icon &icon=QMessageBox::Information)
 Trigger the display of a message dialog (QMessageBox) in the main thread from a background thread without blocking the background thread.
 
void sigBlockShowMessageBox (const QString &szTitle, const QString &szMessage, QMessageBox::StandardButtons buttons, QMessageBox::StandardButton &nRet, bool &checkBox, QString checkBoxContext=QString())
 Block background threads and display message dialogs in foreground threads (QMessageBox)
 
void sigBlockInputDialog (const QString &szTitle, const QString &szLable, const QString &szMessage, QString &szText)
 Block background threads and display input dialogs in foreground threads (QInputDialog)
 
void sigBlockShowWidget (const QString &className, int &nRet, void *pContext)
 Blocks the background thread and displays the window in the foreground thread.
 
void sigSecurityLevel (CSecurityLevel::Levels level)
 Triggered when the security level changes.
 

Public Member Functions

 CBackendServer (COperateServer *pOperate=nullptr, bool bStopSignal=true)
 
- Public Member Functions inherited from CBackend
 CBackend (COperate *pOperate=nullptr, bool bStopSignal=true)
 CBackend.
 
virtual int Start ()
 Start.
 
virtual int Stop ()
 Stop.
 
virtual int WakeUp ()
 Wake up backend thread(background thread).
 

Private Member Functions

int SetConnect (COperateServer *pOperate)
 

Additional Inherited Members

- Protected Types inherited from CBackend
enum class  OnInitReturnValue { Fail = -1 , Success = 0 , UseOnProcess = Success , NotUseOnProcess = 1 }
 
- Protected Slots inherited from CBackend
virtual void slotTimeOut ()
 a non-Qt event loop (that is, normal loop processing), It call OnProcess(), and start timer.
 
- Protected Member Functions inherited from CBackend
virtual OnInitReturnValue OnInit ()=0
 Initialization.
 
virtual int OnClean ()=0
 Clean.
 
virtual int OnProcess ()
 Specific operation processing of plug-in.
 

Detailed Description

Server interface.

It is implemented by the Protocol plugin.

See also
COperateServer CFrmViewServer

Definition at line 19 of file BackendServer.h.

Constructor & Destructor Documentation

◆ ~CBackendServer()

CBackendServer::~CBackendServer ( )
virtual

Definition at line 14 of file BackendServer.cpp.

Member Function Documentation

◆ SetConnect()

int CBackendServer::SetConnect ( COperateServer pOperate)
private

Definition at line 19 of file BackendServer.cpp.

◆ sigConnected

void CBackendServer::sigConnected ( const QString &  szIp,
const quint16  port 
)
signal

emit when new client connected

Parameters
szIp
port

◆ sigDisconnected

void CBackendServer::sigDisconnected ( const QString &  szIp,
const quint16  port 
)
signal

emit when the client disconnected

Parameters
szIp
port

◆ slotDisconnect

virtual void CBackendServer::slotDisconnect ( const QString &  szIp,
const quint16  port 
)
pure virtualslot

Disconnect client.

Parameters
szIp
port

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