Rabbit Remote Control 0.1.0-bate14
Loading...
Searching...
No Matches
COperatePlayer Class Reference

#include <OperatePlayer.h>

Inheritance diagram for COperatePlayer:
Collaboration diagram for COperatePlayer:

Public Slots

virtual void slotScreenShot () override
Public Slots inherited from COperateDesktop
virtual int Start () override
virtual int Stop () override
virtual void slotScreenShot ()

Signals

void sigStart (bool bStart)
void sigPause (bool bPause)
void sigChangePosition (qint64 pos)
void sigScreenShot ()
Signals inherited from COperate
void sigViewerFocusIn (QWidget *pView)
 The view is focus.
void sigFullScreen (bool bFullScreen)
 Full screen.
void sigUpdateName (const QString &szName)
void sigUpdateParameters (COperate *pOperate)
 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 ()
void sigSecurityLevel ()
 Triggered when the security level changes.
void sigRunning ()
 Start success signal.
void sigStop ()
 Notify the user to stop.
void sigFinished ()
 Successful disconnection signal.

Public Member Functions

 COperatePlayer (CPlugin *plugin)
virtual const qint16 Version () const override
 [The description of the desktop operate]
Public Member Functions inherited from COperateDesktop
 COperateDesktop (CPlugin *plugin)
virtual CParameterDesktopGetParameter () const
 Get parameter.
virtual int SetParameter (CParameterDesktop *p)
 Set parameter pointer.
virtual const QString Id () override
virtual const QString Name () override
 [The name of the desktop operate]
virtual const QString Description () override
 [The name of the desktop operate]
virtual QWidget * GetViewer () override
 Get Viewer.
Public Member Functions inherited from COperate
 COperate (CPlugin *plugin)
virtual int OpenDialogSettings (QWidget *parent=nullptr)
 Open settings dialog.
virtual QMenu * GetMenu (QWidget *parent=nullptr)
 Get menu.
virtual const QString Protocol () const
virtual const QIcon Icon () const
virtual const QString GetTypeName () const
virtual QString GetSettingsFile ()
virtual int SetSettingsFile (const QString &szFile)
virtual CStatsGetStats ()
 Get statistics.
virtual CSecurityLevel::Levels GetSecurityLevel () const
 Get Security Level.
virtual int Start ()=0
 Start.
virtual int Stop ()=0
 Stop.

Protected Member Functions

virtual CBackendInstanceBackend () override
 New CBackend.
virtual int Initial () override
 Initial parameters and resource.
virtual int Clean () override
 Clean parameters and resource.
virtual int InitialMenu () override
Protected Member Functions inherited from COperateDesktop
virtual int SetPluginParameters (CParameterPlugin *pPara) override
 Set Global Parameters.
virtual Q_INVOKABLE int Load (QSettings &set) override
 Load parameters.
virtual Q_INVOKABLE int Save (QSettings &set) override
 Save parameters.
virtual QString ServerName ()
 Current connect server name (remote desktop name, if not present, then IP:PORT).
Protected Member Functions inherited from COperate
Q_INVOKABLE CPluginGetPlugin () const
 Get plugin.
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 Member Functions

virtual QDialog * OnOpenDialogSettings (QWidget *parent) override
 Open settgins dialog.

Private Attributes

CParameterPlayer m_Parameters
QAction * m_pPause

Additional Inherited Members

Protected Slots inherited from COperate
void slotUpdateName ()
void slotSetSecurityLevel (CSecurityLevel::Levels level)
Static Protected Member Functions inherited from COperate
static QObject * createObject (const QString &className, QObject *parent=NULL)
 Create Object.
Protected Attributes inherited from COperateDesktop
QAction * m_pMenuZoom
QAction * m_pZoomToWindow
QAction * m_pZoomAspectRatio
QAction * m_pZoomOriginal
QAction * m_pZoomIn
QAction * m_pZoomOut
QSpinBox * m_psbZoomFactor
QAction * m_pScreenShot
Protected Attributes inherited from COperate
QMenu m_Menu
QAction * m_pActionSettings

Detailed Description

Constructor & Destructor Documentation

◆ ~COperatePlayer()

COperatePlayer::~COperatePlayer ( )
virtual

Definition at line 17 of file OperatePlayer.cpp.

Member Function Documentation

◆ Clean()

int COperatePlayer::Clean ( )
overrideprotectedvirtual

Clean parameters and resource.

See also
CManager::DeleteOperate

Reimplemented from COperateDesktop.

Definition at line 176 of file OperatePlayer.cpp.

◆ Initial()

int COperatePlayer::Initial ( )
overrideprotectedvirtual

Initial parameters and resource.

Note
Call before Load()
See also
CManager::CreateOperate Load

Reimplemented from COperateDesktop.

Definition at line 27 of file OperatePlayer.cpp.

◆ InitialMenu()

int COperatePlayer::InitialMenu ( )
overrideprotectedvirtual

Reimplemented from COperateDesktop.

Definition at line 46 of file OperatePlayer.cpp.

◆ InstanceBackend()

CBackend * COperatePlayer::InstanceBackend ( )
nodiscardoverrideprotectedvirtual

New CBackend.

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

Implements COperateDesktop.

Definition at line 190 of file OperatePlayer.cpp.

◆ OnOpenDialogSettings()

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

Open settgins dialog.

Parameters
parentthe parent windows of the dialog of return
Returns
QDialog*: then QDialog must be allocated in heap memory, the ownership is caller.
See also
OpenDialogSettings

Implements COperate.

Definition at line 184 of file OperatePlayer.cpp.

◆ slotScreenShot

void COperatePlayer::slotScreenShot ( )
overridevirtualslot

Definition at line 196 of file OperatePlayer.cpp.

◆ Version()

const qint16 COperatePlayer::Version ( ) const
nodiscardoverridevirtual

[The description of the desktop operate]

Reimplemented from COperateDesktop.

Definition at line 22 of file OperatePlayer.cpp.

Member Data Documentation

◆ m_Parameters

CParameterPlayer COperatePlayer::m_Parameters
private

Definition at line 56 of file OperatePlayer.h.

◆ m_pPause

QAction* COperatePlayer::m_pPause
private

Definition at line 72 of file OperatePlayer.h.


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