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

Public 槽

virtual void slotConnected ()
virtual void slotDisConnected ()
virtual void slotReadyRead ()
virtual void slotClipBoardChanged () override
void slotChannelError (int nErr, const QString &szErr)
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)

Public 成员函数

 CBackendVnc (COperateDesktop *pOperate)
virtual void initDone () override
virtual void authSuccess () override
virtual void resizeFramebuffer () override
virtual void getUserPasswd (bool secure, std::string *user, std::string *password) override
virtual int getX509File (std::string *ca, std::string *crl) override
virtual bool showMsgBox (rfb::MsgBoxFlags flags, const char *title, const char *text) override
virtual void setName (const char *name) override
virtual void framebufferUpdateStart () override
virtual void framebufferUpdateEnd () override
virtual void setColourMapEntries (int firstColour, int nColours, uint16_t *rgbs) override
virtual void bell () override
virtual void setLEDState (unsigned int state) override
virtual void setCursor (int width, int height, const rfb::Point &hotspot, const uint8_t *data) override
virtual void setCursorPos (const rfb::Point &pos) override
virtual void fence (uint32_t flags, unsigned int len, const uint8_t data[]) override
virtual void handleClipboardRequest () override
virtual void handleClipboardAnnounce (bool available) override
virtual void handleClipboardData (const char *data) override
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 ()
 开始。根据 OnStart() 返回值来决定是否开始定时器来支持非 qt 事件
virtual int Stop ()
 停止

Protected 成员函数

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
virtual OnStartReturnValue OnStart () override
 初始化
virtual int OnStop () override
 清理
virtual int OnProcess () override
 插件连接的具体操作处理。因为此插件是非Qt事件,所以在此函数中等待。
virtual int WakeUp () override
 唤醒后台线程。

Private 成员函数

QString ConnectInformation ()
int SetPara ()
void autoSelectFormatAndEncoding ()
void updatePixelFormat ()
int SocketInit ()
int SetChannelConnect (QSharedPointer< CChannel > channel)
int IceInit ()
int SSHInit ()

Private 属性

QSharedPointer< CChannel > m_DataChannel
QSharedPointer< rdr::InStream > m_InStream
QSharedPointer< rdr::OutStream > m_OutStream
COperateDesktop * m_pOperate
CParameterVnc * m_pPara
CSecurityLevel::Levels m_SecurityLevel

额外继承的成员函数

信号 继承自 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)
 当安全级别改变时触发
Protected 类型 继承自 CBackend
enum class  OnStartReturnValue { Fail = -1 , Success = 0 , UseOnProcess = Success , NotUseOnProcess = 1 }
Protected 槽 继承自 CBackend
virtual void slotTimeOut ()
 一个非 Qt 事件处理,它调用 OnProcess(),并根据其返回值开始新的定时器。 如果是不是一个非 Qt 事件循环(就是普通的循环处理), 可以重载它,或者 OnStart() 返回值 OnStartReturnValue::NotUseOnProcess

详细描述

在文件 BackendVnc.h 第 23 行定义.

构造及析构函数说明

◆ CBackendVnc()

CBackendVnc::CBackendVnc ( COperateDesktop * pOperate)
explicit

在文件 BackendVnc.cpp 第 90 行定义.

◆ ~CBackendVnc()

CBackendVnc::~CBackendVnc ( )
overridevirtual

在文件 BackendVnc.cpp 第 120 行定义.

成员函数说明

◆ authSuccess()

void CBackendVnc::authSuccess ( )
overridevirtual

在文件 BackendVnc.cpp 第 1063 行定义.

◆ bell()

void CBackendVnc::bell ( )
overridevirtual

在文件 BackendVnc.cpp 第 636 行定义.

◆ ConnectInformation()

QString CBackendVnc::ConnectInformation ( )
private

在文件 BackendVnc.cpp 第 976 行定义.

◆ fence()

void CBackendVnc::fence ( uint32_t flags,
unsigned int len,
const uint8_t data[] )
overridevirtual

在文件 BackendVnc.cpp 第 670 行定义.

◆ framebufferUpdateEnd()

void CBackendVnc::framebufferUpdateEnd ( )
overridevirtual

在文件 BackendVnc.cpp 第 759 行定义.

◆ framebufferUpdateStart()

void CBackendVnc::framebufferUpdateStart ( )
overridevirtual

在文件 BackendVnc.cpp 第 749 行定义.

◆ getUserPasswd()

void CBackendVnc::getUserPasswd ( bool secure,
std::string * user,
std::string * password )
overridevirtual

在文件 BackendVnc.cpp 第 683 行定义.

◆ getX509File()

int CBackendVnc::getX509File ( std::string * ca,
std::string * crl )
overridevirtual

在文件 BackendVnc.cpp 第 704 行定义.

◆ handleClipboardAnnounce()

void CBackendVnc::handleClipboardAnnounce ( bool available)
overridevirtual

在文件 BackendVnc.cpp 第 1045 行定义.

◆ handleClipboardData()

void CBackendVnc::handleClipboardData ( const char * data)
overridevirtual

在文件 BackendVnc.cpp 第 1053 行定义.

◆ handleClipboardRequest()

void CBackendVnc::handleClipboardRequest ( )
overridevirtual

在文件 BackendVnc.cpp 第 1013 行定义.

◆ IceInit()

int CBackendVnc::IceInit ( )
private

在文件 BackendVnc.cpp 第 212 行定义.

◆ initDone()

void CBackendVnc::initDone ( )
overridevirtual

在文件 BackendVnc.cpp 第 594 行定义.

◆ InputMethodEvent()

void CBackendVnc::InputMethodEvent ( QInputMethodEvent * event)
overrideprotectedvirtual

实现了 CBackendDesktop.

在文件 BackendVnc.cpp 第 952 行定义.

◆ keyPressEvent()

void CBackendVnc::keyPressEvent ( QKeyEvent * event)
overrideprotectedvirtual

实现了 CBackendDesktop.

在文件 BackendVnc.cpp 第 916 行定义.

◆ keyReleaseEvent()

void CBackendVnc::keyReleaseEvent ( QKeyEvent * event)
overrideprotectedvirtual

实现了 CBackendDesktop.

在文件 BackendVnc.cpp 第 934 行定义.

◆ mouseMoveEvent()

void CBackendVnc::mouseMoveEvent ( QMouseEvent * event)
overrideprotectedvirtual

实现了 CBackendDesktop.

在文件 BackendVnc.cpp 第 843 行定义.

◆ mousePressEvent()

void CBackendVnc::mousePressEvent ( QMouseEvent * event)
overrideprotectedvirtual

实现了 CBackendDesktop.

在文件 BackendVnc.cpp 第 801 行定义.

◆ mouseReleaseEvent()

void CBackendVnc::mouseReleaseEvent ( QMouseEvent * event)
overrideprotectedvirtual

实现了 CBackendDesktop.

在文件 BackendVnc.cpp 第 828 行定义.

◆ OnProcess()

int CBackendVnc::OnProcess ( )
overrideprotectedvirtual

插件连接的具体操作处理。因为此插件是非Qt事件,所以在此函数中等待。

返回
  • >= 0: continue, Interval call time (msec)
  • = -1: stop
  • < -1: error
参见
CConnect::Connect() CConnect::slotTimeOut()

重载 CBackend .

在文件 BackendVnc.cpp 第 448 行定义.

◆ OnStart()

CBackendVnc::OnStartReturnValue CBackendVnc::OnStart ( )
overrideprotectedvirtual

初始化

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

实现了 CBackend.

在文件 BackendVnc.cpp 第 190 行定义.

◆ OnStop()

int CBackendVnc::OnStop ( )
overrideprotectedvirtual

清理

参见
Stop()

实现了 CBackend.

在文件 BackendVnc.cpp 第 423 行定义.

◆ resizeFramebuffer()

void CBackendVnc::resizeFramebuffer ( )
overridevirtual

在文件 BackendVnc.cpp 第 615 行定义.

◆ SetChannelConnect()

int CBackendVnc::SetChannelConnect ( QSharedPointer< CChannel > channel)
private

在文件 BackendVnc.cpp 第 397 行定义.

◆ setColourMapEntries()

void CBackendVnc::setColourMapEntries ( int firstColour,
int nColours,
uint16_t * rgbs )
overridevirtual

在文件 BackendVnc.cpp 第 631 行定义.

◆ setCursor()

void CBackendVnc::setCursor ( int width,
int height,
const rfb::Point & hotspot,
const uint8_t * data )
overridevirtual

在文件 BackendVnc.cpp 第 648 行定义.

◆ setCursorPos()

void CBackendVnc::setCursorPos ( const rfb::Point & pos)
overridevirtual

在文件 BackendVnc.cpp 第 664 行定义.

◆ setLEDState()

void CBackendVnc::setLEDState ( unsigned int state)
overridevirtual

在文件 BackendVnc.cpp 第 641 行定义.

◆ setName()

void CBackendVnc::setName ( const char * name)
overridevirtual

在文件 BackendVnc.cpp 第 737 行定义.

◆ SetPara()

int CBackendVnc::SetPara ( )
private

在文件 BackendVnc.cpp 第 125 行定义.

◆ showMsgBox()

bool CBackendVnc::showMsgBox ( rfb::MsgBoxFlags flags,
const char * title,
const char * text )
overridevirtual

在文件 BackendVnc.cpp 第 714 行定义.

◆ slotChannelError

void CBackendVnc::slotChannelError ( int nErr,
const QString & szErr )
slot

在文件 BackendVnc.cpp 第 584 行定义.

◆ slotClipBoardChanged

void CBackendVnc::slotClipBoardChanged ( )
overridevirtualslot

在文件 BackendVnc.cpp 第 1004 行定义.

◆ slotConnected

void CBackendVnc::slotConnected ( )
virtualslot

在文件 BackendVnc.cpp 第 474 行定义.

◆ slotDisConnected

void CBackendVnc::slotDisConnected ( )
virtualslot

在文件 BackendVnc.cpp 第 511 行定义.

◆ slotReadyRead

void CBackendVnc::slotReadyRead ( )
virtualslot

在文件 BackendVnc.cpp 第 528 行定义.

◆ SocketInit()

int CBackendVnc::SocketInit ( )
private

在文件 BackendVnc.cpp 第 257 行定义.

◆ SSHInit()

int CBackendVnc::SSHInit ( )
private

在文件 BackendVnc.cpp 第 366 行定义.

◆ updatePixelFormat()

void CBackendVnc::updatePixelFormat ( )
private

在文件 BackendVnc.cpp 第 773 行定义.

◆ WakeUp()

int CBackendVnc::WakeUp ( )
overrideprotectedvirtual

唤醒后台线程。

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

实现了 CBackend.

在文件 BackendVnc.cpp 第 462 行定义.

◆ wheelEvent()

void CBackendVnc::wheelEvent ( QWheelEvent * event)
overrideprotectedvirtual

实现了 CBackendDesktop.

在文件 BackendVnc.cpp 第 870 行定义.

类成员变量说明

◆ m_DataChannel

QSharedPointer<CChannel> CBackendVnc::m_DataChannel
private

在文件 BackendVnc.h 第 87 行定义.

◆ m_InStream

QSharedPointer<rdr::InStream> CBackendVnc::m_InStream
private

在文件 BackendVnc.h 第 88 行定义.

◆ m_OutStream

QSharedPointer<rdr::OutStream> CBackendVnc::m_OutStream
private

在文件 BackendVnc.h 第 89 行定义.

◆ m_pOperate

COperateDesktop* CBackendVnc::m_pOperate
private

在文件 BackendVnc.h 第 94 行定义.

◆ m_pPara

CParameterVnc* CBackendVnc::m_pPara
private

在文件 BackendVnc.h 第 95 行定义.

◆ m_SecurityLevel

CSecurityLevel::Levels CBackendVnc::m_SecurityLevel
private

在文件 BackendVnc.h 第 106 行定义.


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