Rabbit Remote Control 0.0.30
|
Connecter interface. More...
#include <Connecter.h>
Public Slots | |
virtual int | Connect ()=0 |
Start connect. | |
virtual int | DisConnect ()=0 |
Close connect. | |
Signals | |
void | sigConnected () |
Successful connection signal. | |
void | sigDisconnect () |
Notify the user to disconnect. | |
void | sigDisconnected () |
Successful disconnection signal. | |
void | sigUpdateName (const QString &szName) |
void | sigUpdateParameters (CConnecter *pConnecter) |
Update parameters, notify application to save or show parameters. | |
void | sigError (const int nError, const QString &szError) |
Triggered when an error is generated. | |
void | sigInformation (const QString &szInfo) |
Show information in main windows. | |
void | sigShowMessageBox (const QString &title, const QString &message, 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 | sigClipBoardChanged () |
Public Member Functions | |
CConnecter (CPluginClient *plugin) | |
virtual const QString | Id () |
Identity. | |
virtual const QString | Name () |
Name. | |
virtual const QString | Description () |
Description. | |
virtual const QString | Protocol () const |
Protocol. | |
virtual qint16 | Version ()=0 |
Version. | |
virtual const QIcon | Icon () const |
Icon. | |
virtual QWidget * | GetViewer ()=0 |
Get Viewer. | |
virtual int | OpenDialogSettings (QWidget *parent=nullptr) |
Open settings dialog. | |
virtual QMenu * | GetMenu (QWidget *parent=nullptr) |
Get operate menu. | |
Protected Member Functions | |
virtual int | SetParameter (CParameter *p) |
Set parameters. | |
CParameter * | GetParameter () |
Q_INVOKABLE CPluginClient * | GetPlugClient () const |
virtual int | Load (QSettings &set) |
Load parameters. | |
virtual int | Save (QSettings &set) |
Save parameters. | |
virtual Q_INVOKABLE int | Load (QString szFile=QString()) |
Load parameters from file. | |
virtual Q_INVOKABLE int | Save (QString szFile=QString()) |
Save parameters to file. | |
Static Protected Member Functions | |
static QObject * | createObject (const QString &className, QObject *parent=NULL) |
Protected Attributes | |
QMenu | m_Menu |
QAction * | m_pSettings |
Private Slots | |
void | slotShowServerName () |
void | slotUpdateName () |
virtual void | slotBlockShowWidget (const QString &className, int &nRet, void *pContext) |
Blocks the background thread and displays the window in the foreground thread. | |
virtual void | slotBlockShowMessageBox (const QString &szTitle, const QString &szMessage, QMessageBox::StandardButtons buttons, QMessageBox::StandardButton &nRet, bool &checkBox, QString szCheckBoxContext=QString()) |
Block background threads and display message dialogs in foreground threads (QMessageBox) | |
virtual void | slotBlockInputDialog (const QString &szTitle, const QString &szLable, const QString &szMessage, QString &szText) |
Block background threads and display input dialogs in foreground threads (QInputDialog) | |
virtual void | slotSetClipboard (QMimeData *data) |
virtual void | slotSettings () |
Private Member Functions | |
virtual Q_INVOKABLE int | Initial ()=0 |
Initial parameters and resource. | |
virtual Q_INVOKABLE int | Clean ()=0 |
Clean parameters and resource. | |
virtual Q_INVOKABLE int | SetParameterClient (CParameterClient *pPara) |
Set CParameterClient. | |
virtual QDialog * | OnOpenDialogSettings (QWidget *parent=nullptr)=0 |
Open settgins dialog. | |
Private Attributes | |
CPluginClient * | m_pPluginClient |
CParameter * | m_pParameter |
Connecter interface.
Sequen diagram:
Basic implementations of the following types have been provided:
Definition at line 61 of file Connecter.h.
|
explicit |
plugin | The plugin pointer must be specified as the corresponding CPluginClient derived class |
|
virtual |
Definition at line 42 of file Connecter.cpp.
|
privatepure virtual |
Clean parameters and resource.
Implemented in CConnecterThread, CConnecterFreeRDP, CConnecterLibVNCServer, CConnecterPlayer, CScreenCapture, CConnecterVnc, and CConnecterWakeOnLan.
|
pure virtualslot |
Start connect.
|
staticprotected |
Definition at line 218 of file Connecter.cpp.
|
virtual |
|
pure virtualslot |
Close connect.
|
virtual |
Get operate menu.
Definition at line 113 of file Connecter.cpp.
|
protected |
Definition at line 198 of file Connecter.cpp.
|
protected |
Definition at line 203 of file Connecter.cpp.
|
pure virtual |
Get Viewer.
Implemented in CConnecterThread, CConnecterTerminal, CScreenCapture, and CConnecterWakeOnLan.
|
virtual |
Icon.
Definition at line 74 of file Connecter.cpp.
|
virtual |
Identity.
Reimplemented in CConnecterConnect, CConnecterVnc, and CConnecterWakeOnLan.
Definition at line 47 of file Connecter.cpp.
|
privatepure virtual |
Initial parameters and resource.
Implemented in CConnecterThread, CConnecterFreeRDP, CConnecterLibVNCServer, CConnecterPlayer, CScreenCapture, CConnecterVnc, and CConnecterWakeOnLan.
|
protectedvirtual |
Load parameters.
Reimplemented in CConnecterThread, CConnecterTerminal, and CConnecterWakeOnLan.
Definition at line 144 of file Connecter.cpp.
|
protectedvirtual |
Load parameters from file.
Definition at line 120 of file Connecter.cpp.
|
virtual |
Name.
Reimplemented in CConnecterConnect, and CConnecterWakeOnLan.
Definition at line 53 of file Connecter.cpp.
|
privatepure virtual |
Open settgins dialog.
parent | the parent windows of the dialog of return |
Implemented in CConnecterFreeRDP, CConnecterLibVNCServer, CConnecterPlayer, CScreenCapture, CConnecterWakeOnLan, and CConnecterVnc.
|
virtual |
Open settings dialog.
parent |
Definition at line 93 of file Connecter.cpp.
|
virtual |
Protocol.
Definition at line 69 of file Connecter.cpp.
|
protectedvirtual |
Save parameters.
Reimplemented in CConnecterThread, CConnecterTerminal, and CConnecterWakeOnLan.
Definition at line 153 of file Connecter.cpp.
|
protectedvirtual |
Save parameters to file.
szFile | File name. |
Definition at line 132 of file Connecter.cpp.
|
protectedvirtual |
Set parameters.
Definition at line 188 of file Connecter.cpp.
|
privatevirtual |
Set CParameterClient.
Reimplemented in CConnecterConnect, and CConnecterWakeOnLan.
Definition at line 163 of file Connecter.cpp.
|
signal |
Successful connection signal.
Triggered only by plugins. The application needs to set the view property Enabled to true at this point. enable accept keyboard and mouse event
|
signal |
Notify the user to disconnect.
Triggered only by plugins Emit when you need to disconnect from the plug-in. For example, the peer disconnect or reset the connection or the connection is error. When the applicatioin receive the signal, call DisConnect() to close connect
|
signal |
Successful disconnection signal.
Triggered only by plugins
|
signal |
Show information in main windows.
szInfo |
|
signal |
Trigger the display of a message dialog (QMessageBox) in the main thread from a background thread without blocking the background thread.
|
signal |
|
signal |
Update parameters, notify application to save or show parameters.
|
privatevirtualslot |
Block background threads and display input dialogs in foreground threads (QInputDialog)
Definition at line 312 of file Connecter.cpp.
|
privatevirtualslot |
Block background threads and display message dialogs in foreground threads (QMessageBox)
Definition at line 291 of file Connecter.cpp.
|
privatevirtualslot |
Blocks the background thread and displays the window in the foreground thread.
className | show windows class name The class must have follower public functions: Q_INVOKABLE void SetContext(void* pContext); Q_INVOKABLE void SetConnecter(CConnecter *pConnecter); |
nRet | If className is QDialog derived class, QDialog::exec() return value. Otherwise, ignore |
pContext | pass context from CConnect::sigBlockShowWidget() |
Definition at line 248 of file Connecter.cpp.
|
privatevirtualslot |
Definition at line 79 of file Connecter.cpp.
|
privatevirtualslot |
Definition at line 327 of file Connecter.cpp.
|
privateslot |
Definition at line 208 of file Connecter.cpp.
|
privateslot |
Definition at line 213 of file Connecter.cpp.
|
pure virtual |
Version.
Implemented in CConnecterTerminal, CConnecterFreeRDP, CConnecterLibVNCServer, CConnecterPlayer, CScreenCapture, CConnecterVnc, and CConnecterWakeOnLan.
|
protected |
Definition at line 404 of file Connecter.h.
|
private |
Definition at line 413 of file Connecter.h.
|
private |
Definition at line 410 of file Connecter.h.
|
protected |
Definition at line 405 of file Connecter.h.