Rabbit Remote Control 0.0.30
Loading...
Searching...
No Matches
Public Slots | Signals | Public Member Functions | Protected Member Functions | Private Slots | Private Member Functions | Private Attributes | List of all members
CConnecterWakeOnLan Class Reference
Inheritance diagram for CConnecterWakeOnLan:
CConnecterConnect CConnecter

Public Slots

virtual int Connect () override
 
virtual int DisConnect () override
 
- Public Slots inherited from CConnecterConnect
virtual int Connect () override
 
virtual int DisConnect () override
 emit sigDisconnected() in here
 
- Public Slots inherited from CConnecter
virtual int Connect ()=0
 Start connect.
 
virtual int DisConnect ()=0
 Close connect.
 

Signals

void sigGetMac (CParameterWakeOnLan *p)
 
void sigWakeOnLan (CParameterWakeOnLan *p)
 
- Signals inherited from CConnecterConnect
void sigOpenConnect (CConnecterConnect *)
 
void sigCloseconnect (CConnecterConnect *)
 
- Signals inherited from CConnecter
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

 CConnecterWakeOnLan (CPluginClient *plugin)
 
virtual const QString Id () override
 Identity.
 
virtual const QString Name () override
 Display order:
 
virtual qint16 Version () override
 Version.
 
virtual QWidget * GetViewer () override
 Get Viewer.
 
virtual int Initial () override
 Initial parameters and resource.
 
virtual int Clean () override
 Clean parameters and resource.
 
virtual CConnectInstanceConnect () override
 New connect.
 
- Public Member Functions inherited from CConnecterConnect
 CConnecterConnect (CPluginClient *plugin)
 
virtual const QString Description () override
 Description.
 
virtual CParameterBaseGetParameter ()
 Get parameter.
 
virtual int SetParameter (CParameterBase *p)
 
- Public Member Functions inherited from CConnecter
 CConnecter (CPluginClient *plugin)
 
virtual const QString Protocol () const
 Protocol.
 
virtual const QIcon Icon () const
 Icon.
 
virtual int OpenDialogSettings (QWidget *parent=nullptr)
 Open settings dialog.
 
virtual QMenu * GetMenu (QWidget *parent=nullptr)
 Get operate menu.
 

Protected Member Functions

virtual int Load (QSettings &set) override
 Load parameters.
 
virtual int Save (QSettings &set) override
 Save parameters.
 
- Protected Member Functions inherited from CConnecterConnect
virtual QString ServerName ()
 Current connect server name (remote desktop name, if not present, then IP:PORT).
 
- Protected Member Functions inherited from CConnecter
virtual int SetParameter (CParameter *p)
 Set parameters.
 
CParameterGetParameter ()
 
Q_INVOKABLE CPluginClientGetPlugClient () const
 
virtual Q_INVOKABLE int Load (QString szFile=QString())
 Load parameters from file.
 
virtual Q_INVOKABLE int Save (QString szFile=QString())
 Save parameters to file.
 

Private Slots

void slotAdd ()
 

Private Member Functions

virtual QDialog * OnOpenDialogSettings (QWidget *parent) override
 Open settgins dialog.
 
virtual int SetParameterClient (CParameterClient *pPara) override
 Set CParameterClient.
 

Private Attributes

CFrmWakeOnLanm_pView
 
CWakeOnLanModelm_pModel
 
CArp m_Arp
 
CParameterClientm_pParameterClient
 

Additional Inherited Members

- Static Protected Member Functions inherited from CConnecter
static QObject * createObject (const QString &className, QObject *parent=NULL)
 
- Protected Attributes inherited from CConnecter
QMenu m_Menu
 
QAction * m_pSettings
 

Detailed Description

Definition at line 12 of file ConnecterWakeOnLan.h.

Constructor & Destructor Documentation

◆ ~CConnecterWakeOnLan()

CConnecterWakeOnLan::~CConnecterWakeOnLan ( )
virtual

Definition at line 26 of file ConnecterWakeOnLan.cpp.

Member Function Documentation

◆ Clean()

int CConnecterWakeOnLan::Clean ( )
overridevirtual

Clean parameters and resource.

See also
CClient::DeleteConnecter

Implements CConnecter.

Definition at line 129 of file ConnecterWakeOnLan.cpp.

◆ Connect

int CConnecterWakeOnLan::Connect ( )
overridevirtualslot

Definition at line 165 of file ConnecterWakeOnLan.cpp.

◆ DisConnect

int CConnecterWakeOnLan::DisConnect ( )
overridevirtualslot

Definition at line 192 of file ConnecterWakeOnLan.cpp.

◆ GetViewer()

QWidget * CConnecterWakeOnLan::GetViewer ( )
overridevirtual

Get Viewer.

Returns
QWidget*: the ownership is a instance of this class or its derivative class
See also
sigConnected CFrmViewer::CFrmViewer

Implements CConnecter.

Definition at line 139 of file ConnecterWakeOnLan.cpp.

◆ Id()

const QString CConnecterWakeOnLan::Id ( )
overridevirtual

Identity.

Reimplemented from CConnecterConnect.

Definition at line 149 of file ConnecterWakeOnLan.cpp.

◆ Initial()

int CConnecterWakeOnLan::Initial ( )
overridevirtual

Initial parameters and resource.

See also
CClient::CreateConnecter

Implements CConnecter.

Definition at line 36 of file ConnecterWakeOnLan.cpp.

◆ InstanceConnect()

CConnect * CConnecterWakeOnLan::InstanceConnect ( )
overridevirtual

New connect.

the ownership is caller. if don't use, the caller must delete it.

Implements CConnecterConnect.

Definition at line 198 of file ConnecterWakeOnLan.cpp.

◆ Load()

int CConnecterWakeOnLan::Load ( QSettings &  set)
overrideprotectedvirtual

Load parameters.

Reimplemented from CConnecter.

Definition at line 209 of file ConnecterWakeOnLan.cpp.

◆ Name()

const QString CConnecterWakeOnLan::Name ( )
overridevirtual

Display order:

  • User parameter Name()
  • if enable, Server name
  • Host and port
See also
ServerName()

Reimplemented from CConnecterConnect.

Definition at line 155 of file ConnecterWakeOnLan.cpp.

◆ OnOpenDialogSettings()

QDialog * CConnecterWakeOnLan::OnOpenDialogSettings ( QWidget *  parent)
overrideprivatevirtual

Open settgins dialog.

Parameters
parentthe parent windows of the dialog of return
Returns
QDialog*: then QDialog must set attribute Qt::WA_DeleteOnClose; The ownership is caller.
See also
OpenDialogSettings

Implements CConnecter.

Definition at line 144 of file ConnecterWakeOnLan.cpp.

◆ Save()

int CConnecterWakeOnLan::Save ( QSettings &  set)
overrideprotectedvirtual

Save parameters.

Reimplemented from CConnecter.

Definition at line 215 of file ConnecterWakeOnLan.cpp.

◆ SetParameterClient()

int CConnecterWakeOnLan::SetParameterClient ( CParameterClient pPara)
overrideprivatevirtual

Set CParameterClient.

Note
If CParameterConnecter isn't need CParameterClient. please overload this function.
See also
CClient::CreateConnecter CParameterConnecter CParameterClient

Reimplemented from CConnecterConnect.

Definition at line 203 of file ConnecterWakeOnLan.cpp.

◆ slotAdd

void CConnecterWakeOnLan::slotAdd ( )
privateslot

Definition at line 221 of file ConnecterWakeOnLan.cpp.

◆ Version()

qint16 CConnecterWakeOnLan::Version ( )
overridevirtual

Version.

Implements CConnecter.

Definition at line 31 of file ConnecterWakeOnLan.cpp.

Member Data Documentation

◆ m_Arp

CArp CConnecterWakeOnLan::m_Arp
private

Definition at line 48 of file ConnecterWakeOnLan.h.

◆ m_pModel

CWakeOnLanModel* CConnecterWakeOnLan::m_pModel
private

Definition at line 47 of file ConnecterWakeOnLan.h.

◆ m_pParameterClient

CParameterClient* CConnecterWakeOnLan::m_pParameterClient
private

Definition at line 49 of file ConnecterWakeOnLan.h.

◆ m_pView

CFrmWakeOnLan* CConnecterWakeOnLan::m_pView
private

Definition at line 46 of file ConnecterWakeOnLan.h.


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