玉兔远程控制 0.1.0-bate11
载入中...
搜索中...
未找到
CBackendPlayer类 参考
类 CBackendPlayer 继承关系图:
CBackendPlayer 的协作图:

Public 槽

virtual void slotStart ()
virtual void slotStop ()
virtual void slotClipBoardChanged () override
Public 槽 继承自 CBackendDesktop
virtual void slotClipBoardChanged ()=0
 当剪切板发生改变时调用
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)

信号

void sigPositionChanged (qint64 pos, qint64 duration)
信号 继承自 CBackendDesktop
void sigSetDesktopSize (int width, int height)
void sigServerName (const QString &szName)
void sigUpdateRect (const QRect &r, const QImage &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)
信号 继承自 CBackend
void sigRunning ()
 当插件开始成功后触发。仅由插件触发
void sigStop ()
 需要通知用户停止时触发。仅由插件触发。 当从插件中需要停止时触发。例如:对端断开连接、重置连接或者连接出错。
void sigFinished ()
 停止成功信号。仅由插件触发
void sigError (const int nError, const QString &szError=QString())
 当有错误产生时触发
void sigInformation (const QString &szInfo)
 从后台线程中触发在主线程中显示信息,不阻塞后台线程
void sigShowMessageBox (const QString &szTitle, const QString &szMessage, const QMessageBox::Icon &icon=QMessageBox::Information)
 从后台线程中触发在主线程中显示消息对话框(QMessageBox),不阻塞后台线程
void sigBlockShowMessageBox (const QString &szTitle, const QString &szMessage, QMessageBox::StandardButtons buttons, QMessageBox::StandardButton &nRet, bool &checkBox, QString checkBoxContext=QString())
 阻塞后台线程,并在前台线程中显示消息对话框(QMessageBox)
void sigBlockInputDialog (const QString &szTitle, const QString &szLable, const QString &szMessage, QString &szText)
 阻塞后台线程,并在前台线程中显示输入对话框 (QInputDialog)
void sigBlockShowWidget (const QString &className, int &nRet, void *pContext)
 阻塞后台线程,并在前台线程中显示窗口。
void sigSecurityLevel (CSecurityLevel::Levels level)
 当安全级别改变时触发

Public 成员函数

 CBackendPlayer (COperatePlayer *pOperate)
Public 成员函数 继承自 CBackendDesktop
 CBackendDesktop (COperateDesktop *pOperate=nullptr)
virtual bool event (QEvent *event) override
Public 成员函数 继承自 CBackend
 CBackend (COperate *pOperate=nullptr, bool bStopSignal=true)
 CBackend
virtual int Start ()
 开始。根据 OnInit() 返回值来决定是否开始定时器来支持非 qt 事件
virtual int Stop ()
 停止

Protected 成员函数

virtual OnInitReturnValue OnInit () override
 初始化
virtual int OnClean () override
 清理
virtual int WakeUp () override
 唤醒后台线程。
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 成员函数 继承自 CBackend
virtual int OnProcess ()
 具体操作处理

Private 槽

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

Private 属性

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

额外继承的成员函数

Protected 类型 继承自 CBackend
enum class  OnInitReturnValue { Fail = -1 , Success = 0 , UseOnProcess = Success , NotUseOnProcess = 1 }
Protected 槽 继承自 CBackend
virtual void slotTimeOut ()
 一个非 Qt 事件处理,它调用 OnProcess(),并根据其返回值开始新的定时器。 如果是不是一个非 Qt 事件循环(就是普通的循环处理), 可以重载它,或者 OnInit() 返回值 OnInitReturnValue::NotUseOnProcess

详细描述

在文件 BackendPlayer.h21 行定义.

构造及析构函数说明

◆ ~CBackendPlayer()

CBackendPlayer::~CBackendPlayer ( )
virtual

在文件 BackendPlayer.cpp183 行定义.

成员函数说明

◆ InputMethodEvent()

void CBackendPlayer::InputMethodEvent ( QInputMethodEvent * event)
overrideprotectedvirtual

实现了 CBackendDesktop.

在文件 BackendPlayer.cpp533 行定义.

◆ keyPressEvent()

void CBackendPlayer::keyPressEvent ( QKeyEvent * event)
overrideprotectedvirtual

实现了 CBackendDesktop.

在文件 BackendPlayer.cpp523 行定义.

◆ keyReleaseEvent()

void CBackendPlayer::keyReleaseEvent ( QKeyEvent * event)
overrideprotectedvirtual

实现了 CBackendDesktop.

在文件 BackendPlayer.cpp528 行定义.

◆ mouseMoveEvent()

void CBackendPlayer::mouseMoveEvent ( QMouseEvent * event)
overrideprotectedvirtual

实现了 CBackendDesktop.

在文件 BackendPlayer.cpp513 行定义.

◆ mousePressEvent()

void CBackendPlayer::mousePressEvent ( QMouseEvent * event)
overrideprotectedvirtual

实现了 CBackendDesktop.

在文件 BackendPlayer.cpp503 行定义.

◆ mouseReleaseEvent()

void CBackendPlayer::mouseReleaseEvent ( QMouseEvent * event)
overrideprotectedvirtual

实现了 CBackendDesktop.

在文件 BackendPlayer.cpp508 行定义.

◆ OnClean()

int CBackendPlayer::OnClean ( )
overrideprotectedvirtual

清理

参见
Stop()

实现了 CBackend.

在文件 BackendPlayer.cpp195 行定义.

◆ OnInit()

CBackend::OnInitReturnValue CBackendPlayer::OnInit ( )
overrideprotectedvirtual

初始化

返回
  • OnInitReturnValue::Fail: 错误
  • OnInitReturnValue::Success/OnInitReturnValue::UseOnProcess: 使用 OnProcess() (非 Qt 事件循环)
  • OnInitReturnValue::NotUseOnProcess: 不使用 OnProcess() (qt 事件循环)
参见
Start()

实现了 CBackend.

在文件 BackendPlayer.cpp188 行定义.

◆ slotClipBoardChanged

void CBackendPlayer::slotClipBoardChanged ( )
overridevirtualslot

在文件 BackendPlayer.cpp333 行定义.

◆ slotDurationChanged

void CBackendPlayer::slotDurationChanged ( qint64 duration)
privateslot

在文件 BackendPlayer.cpp497 行定义.

◆ slotEnableAudioInput

void CBackendPlayer::slotEnableAudioInput ( bool bEnable)
privateslot

在文件 BackendPlayer.cpp400 行定义.

◆ slotEnableAudioOutput

void CBackendPlayer::slotEnableAudioOutput ( bool bEnable)
privateslot

在文件 BackendPlayer.cpp431 行定义.

◆ slotPositionChanged

void CBackendPlayer::slotPositionChanged ( qint64 pos)
privateslot

在文件 BackendPlayer.cpp475 行定义.

◆ slotStart

void CBackendPlayer::slotStart ( )
virtualslot

在文件 BackendPlayer.cpp208 行定义.

◆ slotStop

void CBackendPlayer::slotStop ( )
virtualslot

在文件 BackendPlayer.cpp256 行定义.

◆ slotVideoFrameChanged

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

在文件 BackendPlayer.cpp337 行定义.

◆ WakeUp()

int CBackendPlayer::WakeUp ( )
overrideprotectedvirtual

唤醒后台线程。

注解
调用者是主线程(UI线程)。

实现了 CBackend.

在文件 BackendPlayer.cpp203 行定义.

◆ wheelEvent()

void CBackendPlayer::wheelEvent ( QWheelEvent * event)
overrideprotectedvirtual

实现了 CBackendDesktop.

在文件 BackendPlayer.cpp518 行定义.

类成员变量说明

◆ m_AudioInput

QAudioInput CBackendPlayer::m_AudioInput
private

在文件 BackendPlayer.h68 行定义.

◆ m_AudioOutput

QAudioOutput CBackendPlayer::m_AudioOutput
private

在文件 BackendPlayer.h67 行定义.

◆ m_bScreenShot

bool CBackendPlayer::m_bScreenShot
private

在文件 BackendPlayer.h65 行定义.

◆ m_nDuration

qint64 CBackendPlayer::m_nDuration
private

在文件 BackendPlayer.h72 行定义.

◆ m_nPosition

qint64 CBackendPlayer::m_nPosition
private

在文件 BackendPlayer.h71 行定义.

◆ m_pCamera

QCamera* CBackendPlayer::m_pCamera
private

在文件 BackendPlayer.h62 行定义.

◆ m_Player

QMediaPlayer CBackendPlayer::m_Player
private

在文件 BackendPlayer.h63 行定义.

◆ m_pParameters

CParameterPlayer* CBackendPlayer::m_pParameters
private

在文件 BackendPlayer.h70 行定义.

◆ m_szRecordFile

QString CBackendPlayer::m_szRecordFile
private

在文件 BackendPlayer.h74 行定义.

◆ m_Video

QRect CBackendPlayer::m_Video
private

在文件 BackendPlayer.h61 行定义.

◆ m_VideoSink

QVideoSink CBackendPlayer::m_VideoSink
private

在文件 BackendPlayer.h64 行定义.


该类的文档由以下文件生成: