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

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 *pConnecter)
 
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, 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 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 OnInitReturnValue OnInit () override
 初始化
 
virtual int OnClean () override
 清理
 
virtual int OnProcess () override
 插件连接的具体操作处理。因为此插件是非Qt事件,所以在此函数中等待。
 
virtual int WakeUp () override
 唤醒后台线程
 
- Protected 成员函数 继承自 CBackendDesktop
virtual void InputMethodEvent (QInputMethodEvent *event)
 

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
 
CParameterVncm_pPara
 

额外继承的成员函数

- 信号 继承自 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)
 阻塞后台线程,并在前台线程中显示窗口。
 
- Protected 类型 继承自 CBackend
enum class  OnInitReturnValue { Fail = -1 , Success = 0 , UseOnProcess = Success , NotUseOnProcess = 1 }
 
- Protected 槽 继承自 CBackend
virtual void slotTimeOut ()
 一个非 Qt 事件处理,它调用 OnProcess(),并根据其返回值开始新的定时器。 如果是不是一个非 Qt 事件循环(就是普通的循环处理), 可以重载它,或者 OnInit() 返回值大于 0
 

详细描述

在文件 BackendVnc.h23 行定义.

构造及析构函数说明

◆ CBackendVnc()

CBackendVnc::CBackendVnc ( COperateDesktop pConnecter)
explicit

在文件 BackendVnc.cpp96 行定义.

◆ ~CBackendVnc()

CBackendVnc::~CBackendVnc ( )
overridevirtual

在文件 BackendVnc.cpp124 行定义.

成员函数说明

◆ authSuccess()

void CBackendVnc::authSuccess ( )
overridevirtual

在文件 BackendVnc.cpp1298 行定义.

◆ bell()

void CBackendVnc::bell ( )
overridevirtual

在文件 BackendVnc.cpp629 行定义.

◆ ConnectInformation()

QString CBackendVnc::ConnectInformation ( )
private

在文件 BackendVnc.cpp943 行定义.

◆ fence()

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

在文件 BackendVnc.cpp663 行定义.

◆ framebufferUpdateEnd()

void CBackendVnc::framebufferUpdateEnd ( )
overridevirtual

在文件 BackendVnc.cpp750 行定义.

◆ framebufferUpdateStart()

void CBackendVnc::framebufferUpdateStart ( )
overridevirtual

在文件 BackendVnc.cpp740 行定义.

◆ getUserPasswd()

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

在文件 BackendVnc.cpp676 行定义.

◆ getX509File()

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

在文件 BackendVnc.cpp695 行定义.

◆ handleClipboardAnnounce()

void CBackendVnc::handleClipboardAnnounce ( bool  available)
overridevirtual

在文件 BackendVnc.cpp1280 行定义.

◆ handleClipboardData()

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

在文件 BackendVnc.cpp1288 行定义.

◆ handleClipboardRequest()

void CBackendVnc::handleClipboardRequest ( )
overridevirtual

在文件 BackendVnc.cpp1248 行定义.

◆ IceInit()

int CBackendVnc::IceInit ( )
private

在文件 BackendVnc.cpp216 行定义.

◆ initDone()

void CBackendVnc::initDone ( )
overridevirtual

在文件 BackendVnc.cpp588 行定义.

◆ keyPressEvent()

void CBackendVnc::keyPressEvent ( QKeyEvent *  event)
overrideprotectedvirtual

重载 CBackendDesktop .

在文件 BackendVnc.cpp907 行定义.

◆ keyReleaseEvent()

void CBackendVnc::keyReleaseEvent ( QKeyEvent *  event)
overrideprotectedvirtual

重载 CBackendDesktop .

在文件 BackendVnc.cpp925 行定义.

◆ mouseMoveEvent()

void CBackendVnc::mouseMoveEvent ( QMouseEvent *  event)
overrideprotectedvirtual

重载 CBackendDesktop .

在文件 BackendVnc.cpp834 行定义.

◆ mousePressEvent()

void CBackendVnc::mousePressEvent ( QMouseEvent *  event)
overrideprotectedvirtual

重载 CBackendDesktop .

在文件 BackendVnc.cpp792 行定义.

◆ mouseReleaseEvent()

void CBackendVnc::mouseReleaseEvent ( QMouseEvent *  event)
overrideprotectedvirtual

重载 CBackendDesktop .

在文件 BackendVnc.cpp819 行定义.

◆ OnClean()

int CBackendVnc::OnClean ( )
overrideprotectedvirtual

清理

参见
Stop()

实现了 CBackend.

在文件 BackendVnc.cpp418 行定义.

◆ OnInit()

CBackendVnc::OnInitReturnValue CBackendVnc::OnInit ( )
overrideprotectedvirtual

初始化

返回
参见
Start()

实现了 CBackend.

在文件 BackendVnc.cpp194 行定义.

◆ OnProcess()

int CBackendVnc::OnProcess ( )
overrideprotectedvirtual

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

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

重载 CBackend .

在文件 BackendVnc.cpp442 行定义.

◆ resizeFramebuffer()

void CBackendVnc::resizeFramebuffer ( )
overridevirtual

在文件 BackendVnc.cpp608 行定义.

◆ SetChannelConnect()

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

在文件 BackendVnc.cpp400 行定义.

◆ setColourMapEntries()

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

在文件 BackendVnc.cpp624 行定义.

◆ setCursor()

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

在文件 BackendVnc.cpp641 行定义.

◆ setCursorPos()

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

在文件 BackendVnc.cpp657 行定义.

◆ setLEDState()

void CBackendVnc::setLEDState ( unsigned int  state)
overridevirtual

在文件 BackendVnc.cpp634 行定义.

◆ setName()

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

在文件 BackendVnc.cpp728 行定义.

◆ SetPara()

int CBackendVnc::SetPara ( )
private

在文件 BackendVnc.cpp129 行定义.

◆ showMsgBox()

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

在文件 BackendVnc.cpp705 行定义.

◆ slotChannelError

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

在文件 BackendVnc.cpp578 行定义.

◆ slotClipBoardChanged

void CBackendVnc::slotClipBoardChanged ( )
overridevirtualslot

在文件 BackendVnc.cpp1239 行定义.

◆ slotConnected

void CBackendVnc::slotConnected ( )
virtualslot

在文件 BackendVnc.cpp468 行定义.

◆ slotDisConnected

void CBackendVnc::slotDisConnected ( )
virtualslot

在文件 BackendVnc.cpp505 行定义.

◆ slotReadyRead

void CBackendVnc::slotReadyRead ( )
virtualslot

在文件 BackendVnc.cpp522 行定义.

◆ SocketInit()

int CBackendVnc::SocketInit ( )
private

在文件 BackendVnc.cpp261 行定义.

◆ SSHInit()

int CBackendVnc::SSHInit ( )
private

在文件 BackendVnc.cpp370 行定义.

◆ TranslateRfbKey()

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

◆ updatePixelFormat()

void CBackendVnc::updatePixelFormat ( )
private

在文件 BackendVnc.cpp764 行定义.

◆ WakeUp()

int CBackendVnc::WakeUp ( )
overrideprotectedvirtual

唤醒后台线程

重载 CBackendDesktop .

在文件 BackendVnc.cpp456 行定义.

◆ wheelEvent()

void CBackendVnc::wheelEvent ( QWheelEvent *  event)
overrideprotectedvirtual

重载 CBackendDesktop .

在文件 BackendVnc.cpp861 行定义.

类成员变量说明

◆ m_DataChannel

QSharedPointer<CChannel> CBackendVnc::m_DataChannel
private

在文件 BackendVnc.h86 行定义.

◆ m_InStream

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

在文件 BackendVnc.h87 行定义.

◆ m_OutStream

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

在文件 BackendVnc.h88 行定义.

◆ m_pPara

CParameterVnc* CBackendVnc::m_pPara
private

在文件 BackendVnc.h94 行定义.


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