Rabbit Remote Control 0.0.37
Loading...
Searching...
No Matches
Public Slots | Signals | Public Member Functions | Protected Member Functions | Private Slots | Private Attributes | List of all members
CBackendPlayer Class Reference
Inheritance diagram for CBackendPlayer:
Inheritance graph
[legend]
Collaboration diagram for CBackendPlayer:
Collaboration graph
[legend]

Public Slots

virtual void slotStart ()
 
virtual void slotStop ()
 
virtual void slotClipBoardChanged () override
 
- Public Slots inherited from CBackendDesktop
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)
 
virtual void slotInputMethodEvent (QInputMethodEvent *event)
 

Signals

void sigPositionChanged (qint64 pos, qint64 duration)
 
- Signals inherited from CBackendDesktop
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 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.
 

Public Member Functions

 CBackendPlayer (COperatePlayer *pOperate)
 
- Public Member Functions inherited from CBackendDesktop
 CBackendDesktop (COperateDesktop *pOperate=nullptr, bool bDirectConnection=true)
 
virtual bool event (QEvent *event) override
 
- Public Member Functions inherited from CBackend
 CBackend (COperate *pOperate=nullptr)
 
virtual int Start ()
 Start.
 
virtual int Stop ()
 Stop.
 

Protected Member Functions

virtual OnInitReturnValue OnInit () override
 Initialization.
 
virtual int OnClean () override
 Clean.
 
- Protected Member Functions inherited from CBackendDesktop
virtual int WakeUp () override
 Wake up Backend 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)
 
virtual void InputMethodEvent (QInputMethodEvent *event)
 
- Protected Member Functions inherited from CBackend
virtual int OnProcess ()
 Specific operation processing of plug-in.
 

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 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.
 

Detailed Description

Definition at line 21 of file BackendPlayer.h.

Constructor & Destructor Documentation

◆ ~CBackendPlayer()

CBackendPlayer::~CBackendPlayer ( )
virtual

Definition at line 149 of file BackendPlayer.cpp.

Member Function Documentation

◆ OnClean()

int CBackendPlayer::OnClean ( )
overrideprotectedvirtual

Clean.

See also
Stop()

Implements CBackend.

Definition at line 161 of file BackendPlayer.cpp.

◆ OnInit()

CBackend::OnInitReturnValue CBackendPlayer::OnInit ( )
overrideprotectedvirtual

Initialization.

Returns
See also
Start()

Implements CBackend.

Definition at line 154 of file BackendPlayer.cpp.

◆ slotClipBoardChanged

void CBackendPlayer::slotClipBoardChanged ( )
overridevirtualslot

Definition at line 293 of file BackendPlayer.cpp.

◆ slotDurationChanged

void CBackendPlayer::slotDurationChanged ( qint64  duration)
privateslot

Definition at line 457 of file BackendPlayer.cpp.

◆ slotEnableAudioInput

void CBackendPlayer::slotEnableAudioInput ( bool  bEnable)
privateslot

Definition at line 360 of file BackendPlayer.cpp.

◆ slotEnableAudioOutput

void CBackendPlayer::slotEnableAudioOutput ( bool  bEnable)
privateslot

Definition at line 391 of file BackendPlayer.cpp.

◆ slotPositionChanged

void CBackendPlayer::slotPositionChanged ( qint64  pos)
privateslot

Definition at line 435 of file BackendPlayer.cpp.

◆ slotStart

void CBackendPlayer::slotStart ( )
virtualslot

Definition at line 169 of file BackendPlayer.cpp.

◆ slotStop

void CBackendPlayer::slotStop ( )
virtualslot

Definition at line 216 of file BackendPlayer.cpp.

◆ slotVideoFrameChanged

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

Definition at line 297 of file BackendPlayer.cpp.

Member Data Documentation

◆ m_AudioInput

QAudioInput CBackendPlayer::m_AudioInput
private

Definition at line 61 of file BackendPlayer.h.

◆ m_AudioOutput

QAudioOutput CBackendPlayer::m_AudioOutput
private

Definition at line 60 of file BackendPlayer.h.

◆ m_bScreenShot

bool CBackendPlayer::m_bScreenShot
private

Definition at line 58 of file BackendPlayer.h.

◆ m_nDuration

qint64 CBackendPlayer::m_nDuration
private

Definition at line 65 of file BackendPlayer.h.

◆ m_nPosition

qint64 CBackendPlayer::m_nPosition
private

Definition at line 64 of file BackendPlayer.h.

◆ m_pCamera

QCamera* CBackendPlayer::m_pCamera
private

Definition at line 55 of file BackendPlayer.h.

◆ m_Player

QMediaPlayer CBackendPlayer::m_Player
private

Definition at line 56 of file BackendPlayer.h.

◆ m_pParameters

CParameterPlayer* CBackendPlayer::m_pParameters
private

Definition at line 63 of file BackendPlayer.h.

◆ m_szRecordFile

QString CBackendPlayer::m_szRecordFile
private

Definition at line 67 of file BackendPlayer.h.

◆ m_Video

QRect CBackendPlayer::m_Video
private

Definition at line 54 of file BackendPlayer.h.

◆ m_VideoSink

QVideoSink CBackendPlayer::m_VideoSink
private

Definition at line 57 of file BackendPlayer.h.


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