玉兔远程控制 0.1.0-alpha.2
载入中...
搜索中...
未找到
Public 槽 | 信号 | Public 成员函数 | Protected 成员函数 | Private 槽 | Private 属性 | 所有成员列表
CBackendPlayer类 参考
类 CBackendPlayer 继承关系图:
Inheritance graph
[图例]
CBackendPlayer 的协作图:
Collaboration graph
[图例]

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)
 阻塞后台线程,并在前台线程中显示窗口。
 

Public 成员函数

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

Protected 成员函数

virtual OnInitReturnValue OnInit () override
 初始化
 
virtual int OnClean () override
 清理
 
- Protected 成员函数 继承自 CBackendDesktop
virtual int WakeUp () override
 唤醒后台线程
 
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 成员函数 继承自 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() 返回值大于 0
 

详细描述

在文件 BackendPlayer.h21 行定义.

构造及析构函数说明

◆ ~CBackendPlayer()

CBackendPlayer::~CBackendPlayer ( )
virtual

在文件 BackendPlayer.cpp149 行定义.

成员函数说明

◆ OnClean()

int CBackendPlayer::OnClean ( )
overrideprotectedvirtual

清理

参见
Stop()

实现了 CBackend.

在文件 BackendPlayer.cpp161 行定义.

◆ OnInit()

CBackend::OnInitReturnValue CBackendPlayer::OnInit ( )
overrideprotectedvirtual

初始化

返回
参见
Start()

实现了 CBackend.

在文件 BackendPlayer.cpp154 行定义.

◆ slotClipBoardChanged

void CBackendPlayer::slotClipBoardChanged ( )
overridevirtualslot

在文件 BackendPlayer.cpp293 行定义.

◆ slotDurationChanged

void CBackendPlayer::slotDurationChanged ( qint64  duration)
privateslot

在文件 BackendPlayer.cpp457 行定义.

◆ slotEnableAudioInput

void CBackendPlayer::slotEnableAudioInput ( bool  bEnable)
privateslot

在文件 BackendPlayer.cpp360 行定义.

◆ slotEnableAudioOutput

void CBackendPlayer::slotEnableAudioOutput ( bool  bEnable)
privateslot

在文件 BackendPlayer.cpp391 行定义.

◆ slotPositionChanged

void CBackendPlayer::slotPositionChanged ( qint64  pos)
privateslot

在文件 BackendPlayer.cpp435 行定义.

◆ slotStart

void CBackendPlayer::slotStart ( )
virtualslot

在文件 BackendPlayer.cpp169 行定义.

◆ slotStop

void CBackendPlayer::slotStop ( )
virtualslot

在文件 BackendPlayer.cpp216 行定义.

◆ slotVideoFrameChanged

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

在文件 BackendPlayer.cpp297 行定义.

类成员变量说明

◆ m_AudioInput

QAudioInput CBackendPlayer::m_AudioInput
private

在文件 BackendPlayer.h61 行定义.

◆ m_AudioOutput

QAudioOutput CBackendPlayer::m_AudioOutput
private

在文件 BackendPlayer.h60 行定义.

◆ m_bScreenShot

bool CBackendPlayer::m_bScreenShot
private

在文件 BackendPlayer.h58 行定义.

◆ m_nDuration

qint64 CBackendPlayer::m_nDuration
private

在文件 BackendPlayer.h65 行定义.

◆ m_nPosition

qint64 CBackendPlayer::m_nPosition
private

在文件 BackendPlayer.h64 行定义.

◆ m_pCamera

QCamera* CBackendPlayer::m_pCamera
private

在文件 BackendPlayer.h55 行定义.

◆ m_Player

QMediaPlayer CBackendPlayer::m_Player
private

在文件 BackendPlayer.h56 行定义.

◆ m_pParameters

CParameterPlayer* CBackendPlayer::m_pParameters
private

在文件 BackendPlayer.h63 行定义.

◆ m_szRecordFile

QString CBackendPlayer::m_szRecordFile
private

在文件 BackendPlayer.h67 行定义.

◆ m_Video

QRect CBackendPlayer::m_Video
private

在文件 BackendPlayer.h54 行定义.

◆ m_VideoSink

QVideoSink CBackendPlayer::m_VideoSink
private

在文件 BackendPlayer.h57 行定义.


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