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

Public Slots

virtual void slotStart ()
 
virtual void slotStop ()
 
virtual void slotClipBoardChanged () override
 
- Public Slots inherited from CConnectDesktop
virtual void slotClipBoardChanged ()=0
 Be called when the clip board change.
 
virtual void slotMousePressEvent (QMouseEvent *event, QPoint pos)
 
virtual void slotMouseReleaseEvent (QMouseEvent *event, QPoint pos)
 
virtual void slotMouseMoveEvent (QMouseEvent *event, QPoint pos)
 
virtual void slotWheelEvent (QWheelEvent *event, QPoint pos)
 
virtual void slotKeyPressEvent (QKeyEvent *event)
 
virtual void slotKeyReleaseEvent (QKeyEvent *event)
 
- Public Slots inherited from CConnect
virtual int Connect ()
 Start connect.
 
virtual int Disconnect ()
 Disconnect.
 

Signals

void sigPositionChanged (qint64 pos, qint64 duration)
 
- Signals inherited from CConnectDesktop
void sigSetDesktopSize (int width, int height)
 
void sigServerName (const QString &szName)
 
void sigUpdateRect (const QRect &r, const QImage &image)
 Notify the CFrmView update image.
 
void sigUpdateRect (const QImage &image)
 Notify the CFrmView update image.
 
void sigUpdateCursor (const QCursor &cursor)
 
void sigUpdateCursorPosition (const QPoint &pos)
 
void sigUpdateLedState (unsigned int state)
 
void sigSetClipboard (QMimeData *data)
 
- Signals inherited from CConnect
void sigConnected ()
 Emitted when the plugin is successfully connected.
 
void sigDisconnect ()
 Notify the user to call disconnect.
 
void sigDisconnected ()
 Successful disconnection 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.
 

Public Member Functions

 CConnectPlayer (CConnecterPlayer *pConnecter)
 
- Public Member Functions inherited from CConnectDesktop
 CConnectDesktop (CConnecter *pConnecter, bool bDirectConnection=true)
 
virtual bool event (QEvent *event) override
 
- Public Member Functions inherited from CConnect
 CConnect (CConnecter *pConnecter)
 

Protected Member Functions

virtual OnInitReturnValue OnInit () override
 Specific plug-in realizes connection initialization.
 
virtual int OnClean () override
 Clean.
 
- Protected Member Functions inherited from CConnectDesktop
virtual int WakeUp ()
 Wake up Connect thread(background thread)
 
virtual void mousePressEvent (QMouseEvent *event)
 
virtual void mouseReleaseEvent (QMouseEvent *event)
 
virtual void mouseMoveEvent (QMouseEvent *event)
 
virtual void wheelEvent (QWheelEvent *event)
 
virtual void keyPressEvent (QKeyEvent *event)
 
virtual void keyReleaseEvent (QKeyEvent *event)
 
- Protected Member Functions inherited from CConnect
virtual int OnProcess ()
 Specific operation processing of plug-in connection.
 

Private Slots

void slotVideoFrameChanged (const QVideoFrame &frame)
 
void slotEnableAudioInput (bool bEnable)
 
void slotEnableAudioOutput (bool bEnable)
 
void slotPositionChanged (qint64 pos)
 
void slotDurationChanged (qint64 duration)
 

Private Attributes

QRect m_Video
 
QCamera * m_pCamera
 
QMediaPlayer m_Player
 
QVideoSink m_VideoSink
 
bool m_bScreenShot
 
QAudioOutput m_AudioOutput
 
QAudioInput m_AudioInput
 
CParameterPlayerm_pParameters
 
qint64 m_nPosition
 
qint64 m_nDuration
 
QString m_szRecordFile
 

Additional Inherited Members

- Protected Types inherited from CConnect
enum class  OnInitReturnValue { Fail = -1 , Success = 0 , UseOnProcess = Success , NotUseOnProcess = 1 }
 
- Protected Slots inherited from CConnect
virtual void slotTimeOut ()
 a non-Qt event loop (that is, normal loop processing), It call OnProcess(), and start timer.
 

Detailed Description

Definition at line 21 of file ConnectPlayer.h.

Constructor & Destructor Documentation

◆ ~CConnectPlayer()

CConnectPlayer::~CConnectPlayer ( )
virtual

Definition at line 144 of file ConnectPlayer.cpp.

Member Function Documentation

◆ OnClean()

int CConnectPlayer::OnClean ( )
overrideprotectedvirtual

Clean.

See also
Disconnect()

Implements CConnect.

Definition at line 156 of file ConnectPlayer.cpp.

◆ OnInit()

CConnect::OnInitReturnValue CConnectPlayer::OnInit ( )
overrideprotectedvirtual

Specific plug-in realizes connection initialization.

Returns
See also
Connect()

Implements CConnect.

Definition at line 149 of file ConnectPlayer.cpp.

◆ slotClipBoardChanged

void CConnectPlayer::slotClipBoardChanged ( )
overridevirtualslot

Definition at line 288 of file ConnectPlayer.cpp.

◆ slotDurationChanged

void CConnectPlayer::slotDurationChanged ( qint64  duration)
privateslot

Definition at line 452 of file ConnectPlayer.cpp.

◆ slotEnableAudioInput

void CConnectPlayer::slotEnableAudioInput ( bool  bEnable)
privateslot

Definition at line 355 of file ConnectPlayer.cpp.

◆ slotEnableAudioOutput

void CConnectPlayer::slotEnableAudioOutput ( bool  bEnable)
privateslot

Definition at line 386 of file ConnectPlayer.cpp.

◆ slotPositionChanged

void CConnectPlayer::slotPositionChanged ( qint64  pos)
privateslot

Definition at line 430 of file ConnectPlayer.cpp.

◆ slotStart

void CConnectPlayer::slotStart ( )
virtualslot

Definition at line 164 of file ConnectPlayer.cpp.

◆ slotStop

void CConnectPlayer::slotStop ( )
virtualslot

Definition at line 211 of file ConnectPlayer.cpp.

◆ slotVideoFrameChanged

void CConnectPlayer::slotVideoFrameChanged ( const QVideoFrame &  frame)
privateslot

Definition at line 292 of file ConnectPlayer.cpp.

Member Data Documentation

◆ m_AudioInput

QAudioInput CConnectPlayer::m_AudioInput
private

Definition at line 61 of file ConnectPlayer.h.

◆ m_AudioOutput

QAudioOutput CConnectPlayer::m_AudioOutput
private

Definition at line 60 of file ConnectPlayer.h.

◆ m_bScreenShot

bool CConnectPlayer::m_bScreenShot
private

Definition at line 58 of file ConnectPlayer.h.

◆ m_nDuration

qint64 CConnectPlayer::m_nDuration
private

Definition at line 65 of file ConnectPlayer.h.

◆ m_nPosition

qint64 CConnectPlayer::m_nPosition
private

Definition at line 64 of file ConnectPlayer.h.

◆ m_pCamera

QCamera* CConnectPlayer::m_pCamera
private

Definition at line 55 of file ConnectPlayer.h.

◆ m_Player

QMediaPlayer CConnectPlayer::m_Player
private

Definition at line 56 of file ConnectPlayer.h.

◆ m_pParameters

CParameterPlayer* CConnectPlayer::m_pParameters
private

Definition at line 63 of file ConnectPlayer.h.

◆ m_szRecordFile

QString CConnectPlayer::m_szRecordFile
private

Definition at line 67 of file ConnectPlayer.h.

◆ m_Video

QRect CConnectPlayer::m_Video
private

Definition at line 54 of file ConnectPlayer.h.

◆ m_VideoSink

QVideoSink CConnectPlayer::m_VideoSink
private

Definition at line 57 of file ConnectPlayer.h.


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