Rabbit Remote Control 0.1.0-bate14
Loading...
Searching...
No Matches
CBackendPlayer Class Reference
Inheritance diagram for CBackendPlayer:
Collaboration diagram for CBackendPlayer:

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.
void sigSecurityLevel (CSecurityLevel::Levels level)
 Triggered when the security level changes.

Public Member Functions

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

Protected Member Functions

virtual OnInitReturnValue OnInit () override
 Initialization.
virtual int OnClean () override
 Clean.
virtual int WakeUp () override
 Wake up backend thread(background thread).
virtual void mousePressEvent (QMouseEvent *event) override
virtual void mouseReleaseEvent (QMouseEvent *event) override
virtual void mouseMoveEvent (QMouseEvent *event) override
virtual void wheelEvent (QWheelEvent *event) override
virtual void keyPressEvent (QKeyEvent *event) override
virtual void keyReleaseEvent (QKeyEvent *event) override
virtual void InputMethodEvent (QInputMethodEvent *event) override
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 183 of file BackendPlayer.cpp.

Member Function Documentation

◆ InputMethodEvent()

void CBackendPlayer::InputMethodEvent ( QInputMethodEvent * event)
overrideprotectedvirtual

Implements CBackendDesktop.

Definition at line 533 of file BackendPlayer.cpp.

◆ keyPressEvent()

void CBackendPlayer::keyPressEvent ( QKeyEvent * event)
overrideprotectedvirtual

Implements CBackendDesktop.

Definition at line 523 of file BackendPlayer.cpp.

◆ keyReleaseEvent()

void CBackendPlayer::keyReleaseEvent ( QKeyEvent * event)
overrideprotectedvirtual

Implements CBackendDesktop.

Definition at line 528 of file BackendPlayer.cpp.

◆ mouseMoveEvent()

void CBackendPlayer::mouseMoveEvent ( QMouseEvent * event)
overrideprotectedvirtual

Implements CBackendDesktop.

Definition at line 513 of file BackendPlayer.cpp.

◆ mousePressEvent()

void CBackendPlayer::mousePressEvent ( QMouseEvent * event)
overrideprotectedvirtual

Implements CBackendDesktop.

Definition at line 503 of file BackendPlayer.cpp.

◆ mouseReleaseEvent()

void CBackendPlayer::mouseReleaseEvent ( QMouseEvent * event)
overrideprotectedvirtual

Implements CBackendDesktop.

Definition at line 508 of file BackendPlayer.cpp.

◆ OnClean()

int CBackendPlayer::OnClean ( )
overrideprotectedvirtual

Clean.

See also
Stop()

Implements CBackend.

Definition at line 195 of file BackendPlayer.cpp.

◆ OnInit()

CBackend::OnInitReturnValue CBackendPlayer::OnInit ( )
overrideprotectedvirtual

Initialization.

Returns
CBackend::OnInitReturnValue
  • OnInitReturnValue::Fail: error
  • OnInitReturnValue::Success/OnInitReturnValue::UseOnProcess: Use OnProcess() (non-Qt event loop)
  • OnInitReturnValue::NotUseOnProcess: Don't use OnProcess() (qt event loop)
See also
Start()

Implements CBackend.

Definition at line 188 of file BackendPlayer.cpp.

◆ slotClipBoardChanged

void CBackendPlayer::slotClipBoardChanged ( )
overridevirtualslot

Definition at line 333 of file BackendPlayer.cpp.

◆ slotDurationChanged

void CBackendPlayer::slotDurationChanged ( qint64 duration)
privateslot

Definition at line 497 of file BackendPlayer.cpp.

◆ slotEnableAudioInput

void CBackendPlayer::slotEnableAudioInput ( bool bEnable)
privateslot

Definition at line 400 of file BackendPlayer.cpp.

◆ slotEnableAudioOutput

void CBackendPlayer::slotEnableAudioOutput ( bool bEnable)
privateslot

Definition at line 431 of file BackendPlayer.cpp.

◆ slotPositionChanged

void CBackendPlayer::slotPositionChanged ( qint64 pos)
privateslot

Definition at line 475 of file BackendPlayer.cpp.

◆ slotStart

void CBackendPlayer::slotStart ( )
virtualslot

Definition at line 208 of file BackendPlayer.cpp.

◆ slotStop

void CBackendPlayer::slotStop ( )
virtualslot

Definition at line 256 of file BackendPlayer.cpp.

◆ slotVideoFrameChanged

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

Definition at line 337 of file BackendPlayer.cpp.

◆ WakeUp()

int CBackendPlayer::WakeUp ( )
overrideprotectedvirtual

Wake up backend thread(background thread).

When it is block(a non-Qt event loop)

Note
The caller is main thread(UI thread)

Implements CBackend.

Definition at line 203 of file BackendPlayer.cpp.

◆ wheelEvent()

void CBackendPlayer::wheelEvent ( QWheelEvent * event)
overrideprotectedvirtual

Implements CBackendDesktop.

Definition at line 518 of file BackendPlayer.cpp.

Member Data Documentation

◆ m_AudioInput

QAudioInput CBackendPlayer::m_AudioInput
private

Definition at line 68 of file BackendPlayer.h.

◆ m_AudioOutput

QAudioOutput CBackendPlayer::m_AudioOutput
private

Definition at line 67 of file BackendPlayer.h.

◆ m_bScreenShot

bool CBackendPlayer::m_bScreenShot
private

Definition at line 65 of file BackendPlayer.h.

◆ m_nDuration

qint64 CBackendPlayer::m_nDuration
private

Definition at line 72 of file BackendPlayer.h.

◆ m_nPosition

qint64 CBackendPlayer::m_nPosition
private

Definition at line 71 of file BackendPlayer.h.

◆ m_pCamera

QCamera* CBackendPlayer::m_pCamera
private

Definition at line 62 of file BackendPlayer.h.

◆ m_Player

QMediaPlayer CBackendPlayer::m_Player
private

Definition at line 63 of file BackendPlayer.h.

◆ m_pParameters

CParameterPlayer* CBackendPlayer::m_pParameters
private

Definition at line 70 of file BackendPlayer.h.

◆ m_szRecordFile

QString CBackendPlayer::m_szRecordFile
private

Definition at line 74 of file BackendPlayer.h.

◆ m_Video

QRect CBackendPlayer::m_Video
private

Definition at line 61 of file BackendPlayer.h.

◆ m_VideoSink

QVideoSink CBackendPlayer::m_VideoSink
private

Definition at line 64 of file BackendPlayer.h.


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