玉兔远程控制 0.1.0-bate11
载入中...
搜索中...
未找到
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 ()
 开始。根据 OnInit() 返回值来决定是否开始定时器来支持非 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 OnInitReturnValue OnInit () override
 初始化
virtual int OnClean () override
 清理
virtual int OnProcess () override
 插件连接的具体操作处理。因为此插件是非Qt事件,所以在此函数中等待。
virtual int WakeUp () override
 唤醒后台线程。

Private 成员函数

quint32 TranslateRfbKey (quint32 inkey, bool modifier)
 CBackendVnc::TranslateRfbKey
QString ConnectInformation ()
int SetPara ()
void autoSelectFormatAndEncoding ()
void updatePixelFormat ()
int SocketInit ()
int SetChannelConnect (QSharedPointer< CChannel > channel)
int IceInit ()
int SSHInit ()

Private 属性

QSharedPointer< CChannelm_DataChannel
QSharedPointer< rdr::InStream > m_InStream
QSharedPointer< rdr::OutStream > m_OutStream
COperateDesktopm_pOperate
CParameterVncm_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  OnInitReturnValue { Fail = -1 , Success = 0 , UseOnProcess = Success , NotUseOnProcess = 1 }
Protected 槽 继承自 CBackend
virtual void slotTimeOut ()
 一个非 Qt 事件处理,它调用 OnProcess(),并根据其返回值开始新的定时器。 如果是不是一个非 Qt 事件循环(就是普通的循环处理), 可以重载它,或者 OnInit() 返回值 OnInitReturnValue::NotUseOnProcess

详细描述

在文件 BackendVnc.h23 行定义.

构造及析构函数说明

◆ CBackendVnc()

CBackendVnc::CBackendVnc ( COperateDesktop * pOperate)
explicit

在文件 BackendVnc.cpp98 行定义.

◆ ~CBackendVnc()

CBackendVnc::~CBackendVnc ( )
overridevirtual

在文件 BackendVnc.cpp128 行定义.

成员函数说明

◆ authSuccess()

void CBackendVnc::authSuccess ( )
overridevirtual

在文件 BackendVnc.cpp1319 行定义.

◆ bell()

void CBackendVnc::bell ( )
overridevirtual

在文件 BackendVnc.cpp644 行定义.

◆ ConnectInformation()

QString CBackendVnc::ConnectInformation ( )
private

在文件 BackendVnc.cpp964 行定义.

◆ fence()

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

在文件 BackendVnc.cpp678 行定义.

◆ framebufferUpdateEnd()

void CBackendVnc::framebufferUpdateEnd ( )
overridevirtual

在文件 BackendVnc.cpp767 行定义.

◆ framebufferUpdateStart()

void CBackendVnc::framebufferUpdateStart ( )
overridevirtual

在文件 BackendVnc.cpp757 行定义.

◆ getUserPasswd()

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

在文件 BackendVnc.cpp691 行定义.

◆ getX509File()

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

在文件 BackendVnc.cpp712 行定义.

◆ handleClipboardAnnounce()

void CBackendVnc::handleClipboardAnnounce ( bool available)
overridevirtual

在文件 BackendVnc.cpp1301 行定义.

◆ handleClipboardData()

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

在文件 BackendVnc.cpp1309 行定义.

◆ handleClipboardRequest()

void CBackendVnc::handleClipboardRequest ( )
overridevirtual

在文件 BackendVnc.cpp1269 行定义.

◆ IceInit()

int CBackendVnc::IceInit ( )
private

在文件 BackendVnc.cpp220 行定义.

◆ initDone()

void CBackendVnc::initDone ( )
overridevirtual

在文件 BackendVnc.cpp602 行定义.

◆ InputMethodEvent()

void CBackendVnc::InputMethodEvent ( QInputMethodEvent * event)
overrideprotectedvirtual

实现了 CBackendDesktop.

在文件 BackendVnc.cpp960 行定义.

◆ keyPressEvent()

void CBackendVnc::keyPressEvent ( QKeyEvent * event)
overrideprotectedvirtual

实现了 CBackendDesktop.

在文件 BackendVnc.cpp924 行定义.

◆ keyReleaseEvent()

void CBackendVnc::keyReleaseEvent ( QKeyEvent * event)
overrideprotectedvirtual

实现了 CBackendDesktop.

在文件 BackendVnc.cpp942 行定义.

◆ mouseMoveEvent()

void CBackendVnc::mouseMoveEvent ( QMouseEvent * event)
overrideprotectedvirtual

实现了 CBackendDesktop.

在文件 BackendVnc.cpp851 行定义.

◆ mousePressEvent()

void CBackendVnc::mousePressEvent ( QMouseEvent * event)
overrideprotectedvirtual

实现了 CBackendDesktop.

在文件 BackendVnc.cpp809 行定义.

◆ mouseReleaseEvent()

void CBackendVnc::mouseReleaseEvent ( QMouseEvent * event)
overrideprotectedvirtual

实现了 CBackendDesktop.

在文件 BackendVnc.cpp836 行定义.

◆ OnClean()

int CBackendVnc::OnClean ( )
overrideprotectedvirtual

清理

参见
Stop()

实现了 CBackend.

在文件 BackendVnc.cpp431 行定义.

◆ OnInit()

CBackendVnc::OnInitReturnValue CBackendVnc::OnInit ( )
overrideprotectedvirtual

初始化

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

实现了 CBackend.

在文件 BackendVnc.cpp198 行定义.

◆ OnProcess()

int CBackendVnc::OnProcess ( )
overrideprotectedvirtual

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

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

重载 CBackend .

在文件 BackendVnc.cpp456 行定义.

◆ resizeFramebuffer()

void CBackendVnc::resizeFramebuffer ( )
overridevirtual

在文件 BackendVnc.cpp623 行定义.

◆ SetChannelConnect()

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

在文件 BackendVnc.cpp405 行定义.

◆ setColourMapEntries()

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

在文件 BackendVnc.cpp639 行定义.

◆ setCursor()

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

在文件 BackendVnc.cpp656 行定义.

◆ setCursorPos()

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

在文件 BackendVnc.cpp672 行定义.

◆ setLEDState()

void CBackendVnc::setLEDState ( unsigned int state)
overridevirtual

在文件 BackendVnc.cpp649 行定义.

◆ setName()

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

在文件 BackendVnc.cpp745 行定义.

◆ SetPara()

int CBackendVnc::SetPara ( )
private

在文件 BackendVnc.cpp133 行定义.

◆ showMsgBox()

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

在文件 BackendVnc.cpp722 行定义.

◆ slotChannelError

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

在文件 BackendVnc.cpp592 行定义.

◆ slotClipBoardChanged

void CBackendVnc::slotClipBoardChanged ( )
overridevirtualslot

在文件 BackendVnc.cpp1260 行定义.

◆ slotConnected

void CBackendVnc::slotConnected ( )
virtualslot

在文件 BackendVnc.cpp482 行定义.

◆ slotDisConnected

void CBackendVnc::slotDisConnected ( )
virtualslot

在文件 BackendVnc.cpp519 行定义.

◆ slotReadyRead

void CBackendVnc::slotReadyRead ( )
virtualslot

在文件 BackendVnc.cpp536 行定义.

◆ SocketInit()

int CBackendVnc::SocketInit ( )
private

在文件 BackendVnc.cpp265 行定义.

◆ SSHInit()

int CBackendVnc::SSHInit ( )
private

在文件 BackendVnc.cpp374 行定义.

◆ TranslateRfbKey()

quint32 CBackendVnc::TranslateRfbKey ( quint32 inkey,
bool modifier )
private

◆ updatePixelFormat()

void CBackendVnc::updatePixelFormat ( )
private

在文件 BackendVnc.cpp781 行定义.

◆ WakeUp()

int CBackendVnc::WakeUp ( )
overrideprotectedvirtual

唤醒后台线程。

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

实现了 CBackend.

在文件 BackendVnc.cpp470 行定义.

◆ wheelEvent()

void CBackendVnc::wheelEvent ( QWheelEvent * event)
overrideprotectedvirtual

实现了 CBackendDesktop.

在文件 BackendVnc.cpp878 行定义.

类成员变量说明

◆ m_DataChannel

QSharedPointer<CChannel> CBackendVnc::m_DataChannel
private

在文件 BackendVnc.h87 行定义.

◆ m_InStream

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

在文件 BackendVnc.h88 行定义.

◆ m_OutStream

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

在文件 BackendVnc.h89 行定义.

◆ m_pOperate

COperateDesktop* CBackendVnc::m_pOperate
private

在文件 BackendVnc.h95 行定义.

◆ m_pPara

CParameterVnc* CBackendVnc::m_pPara
private

在文件 BackendVnc.h96 行定义.

◆ m_SecurityLevel

CSecurityLevel::Levels CBackendVnc::m_SecurityLevel
private

在文件 BackendVnc.h107 行定义.


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