Rabbit Remote Control 0.0.30
Loading...
Searching...
No Matches
Signals | Public Member Functions | Private Slots | Private Member Functions | Private Attributes | List of all members
CConnection Class Reference
Inheritance diagram for CConnection:

Signals

void sigDisconnected ()
 
void sigError (int nErr, const QString &szErr)
 
void sigDisconnected ()
 
void sigError (int nErr, const QString &szErr)
 

Public Member Functions

 CConnection (QSharedPointer< CChannel > channel, CParameterServiceRabbitVNC *pPara)
 
virtual void queryConnection (const char *userName) override
 
virtual void authSuccess () override
 
virtual void clientInit (bool shared) override
 
virtual void setDesktopSize (int fb_width, int fb_height, const rfb::ScreenSet &layout) override
 
virtual void setPixelFormat (const rfb::PixelFormat &pf) override
 
virtual void framebufferUpdateRequest (const rfb::Rect &r, bool incremental) override
 
virtual void fence (rdr::U32 flags, unsigned len, const char data[]) override
 
virtual void enableContinuousUpdates (bool enable, int x, int y, int w, int h) override
 
virtual void keyEvent (rdr::U32 keysym, rdr::U32 keycode, bool down) override
 
virtual void pointerEvent (const rfb::Point &pos, int buttonMask) override
 
virtual void clientCutText (const char *str) override
 
 CConnection (QSharedPointer< CChannel > channel, CParameterServiceTigerVNC *pPara)
 
virtual void queryConnection (const char *userName) override
 
virtual void authSuccess () override
 
virtual void clientInit (bool shared) override
 
virtual void setDesktopSize (int fb_width, int fb_height, const rfb::ScreenSet &layout) override
 
virtual void setPixelFormat (const rfb::PixelFormat &pf) override
 
virtual void framebufferUpdateRequest (const rfb::Rect &r, bool incremental) override
 
virtual void fence (rdr::U32 flags, unsigned len, const char data[]) override
 
virtual void enableContinuousUpdates (bool enable, int x, int y, int w, int h) override
 
virtual void keyEvent (rdr::U32 keysym, rdr::U32 keycode, bool down) override
 
virtual void pointerEvent (const rfb::Point &pos, int buttonMask) override
 
virtual void clientCutText (const char *str) override
 

Private Slots

void slotConnected ()
 
void slotReadyRead ()
 
void slotDisconnected ()
 
void slotError (int nRet, const QString &szErr)
 
void slotDesktopUpdate (QImage img, QRect rect)
 
void slotConnected ()
 
void slotReadyRead ()
 
void slotDisconnected ()
 
void slotError (int nRet, const QString &szErr)
 
void slotDesktopUpdate (QImage img, QRect rect)
 

Private Member Functions

QSharedPointer< rfb::PixelBuffer > GetBufferFromQImage (QImage &img)
 
void writeNoDataUpdate ()
 
void writeDataUpdate (QImage img, QRect rect)
 
QSharedPointer< rfb::PixelBuffer > GetBufferFromQImage (QImage &img)
 
void writeNoDataUpdate ()
 
void writeDataUpdate (QImage img, QRect rect)
 

Private Attributes

QSharedPointer< CChannelm_Channel
 
QSharedPointer< rdr::InStream > m_InStream
 
QSharedPointer< rdr::OutStream > m_OutStream
 
CParameterServiceRabbitVNCm_pPara
 
QSharedPointer< CInputDevicem_InputDevice
 
rfb::PixelFormat m_PixelFormat
 
bool inProcessMessages
 
bool pendingSyncFence
 
bool syncFence
 
rdr::U32 fenceFlags
 
unsigned fenceDataLen
 
char * fenceData
 
rfb::EncodeManager m_EncodeManager
 
rfb::SimpleUpdateTracker m_Updates
 
rfb::Region requested
 
bool continuousUpdates
 
rfb::Region cuRegion
 
CParameterServiceTigerVNCm_pPara
 

Detailed Description

Definition at line 21 of file Connection.h.

Constructor & Destructor Documentation

◆ CConnection() [1/2]

CConnection::CConnection ( QSharedPointer< CChannel channel,
CParameterServiceRabbitVNC pPara 
)
explicit

Definition at line 35 of file Connection.cpp.

◆ ~CConnection()

CConnection::~CConnection ( )
virtual

Definition at line 68 of file Connection.cpp.

◆ CConnection() [2/2]

CConnection::CConnection ( QSharedPointer< CChannel channel,
CParameterServiceTigerVNC pPara 
)
explicit

Definition at line 35 of file Connection.cpp.

Member Function Documentation

◆ authSuccess()

void CConnection::authSuccess ( )
overridevirtual

Definition at line 174 of file Connection.cpp.

◆ clientCutText()

void CConnection::clientCutText ( const char *  str)
overridevirtual

Definition at line 369 of file Connection.cpp.

◆ clientInit()

void CConnection::clientInit ( bool  shared)
overridevirtual

Definition at line 197 of file Connection.cpp.

◆ enableContinuousUpdates()

void CConnection::enableContinuousUpdates ( bool  enable,
int  x,
int  y,
int  w,
int  h 
)
overridevirtual

Definition at line 316 of file Connection.cpp.

◆ fence()

void CConnection::fence ( rdr::U32  flags,
unsigned  len,
const char  data[] 
)
overridevirtual

Definition at line 271 of file Connection.cpp.

◆ framebufferUpdateRequest()

void CConnection::framebufferUpdateRequest ( const rfb::Rect &  r,
bool  incremental 
)
overridevirtual

Definition at line 228 of file Connection.cpp.

◆ GetBufferFromQImage()

QSharedPointer< rfb::PixelBuffer > CConnection::GetBufferFromQImage ( QImage &  img)
private

Definition at line 374 of file Connection.cpp.

◆ keyEvent()

void CConnection::keyEvent ( rdr::U32  keysym,
rdr::U32  keycode,
bool  down 
)
overridevirtual

Definition at line 339 of file Connection.cpp.

◆ pointerEvent()

void CConnection::pointerEvent ( const rfb::Point &  pos,
int  buttonMask 
)
overridevirtual

Definition at line 346 of file Connection.cpp.

◆ queryConnection()

void CConnection::queryConnection ( const char *  userName)
overridevirtual

Definition at line 167 of file Connection.cpp.

◆ setDesktopSize()

void CConnection::setDesktopSize ( int  fb_width,
int  fb_height,
const rfb::ScreenSet &  layout 
)
overridevirtual

Definition at line 207 of file Connection.cpp.

◆ setPixelFormat()

void CConnection::setPixelFormat ( const rfb::PixelFormat &  pf)
overridevirtual

Definition at line 217 of file Connection.cpp.

◆ slotConnected

void CConnection::slotConnected ( )
privateslot

Definition at line 73 of file Connection.cpp.

◆ slotDesktopUpdate

void CConnection::slotDesktopUpdate ( QImage  img,
QRect  rect 
)
privateslot

Definition at line 430 of file Connection.cpp.

◆ slotDisconnected

void CConnection::slotDisconnected ( )
privateslot

Definition at line 156 of file Connection.cpp.

◆ slotError

void CConnection::slotError ( int  nRet,
const QString &  szErr 
)
privateslot

Definition at line 162 of file Connection.cpp.

◆ slotReadyRead

void CConnection::slotReadyRead ( )
privateslot

Definition at line 106 of file Connection.cpp.

◆ writeDataUpdate()

void CConnection::writeDataUpdate ( QImage  img,
QRect  rect 
)
private

Definition at line 400 of file Connection.cpp.

◆ writeNoDataUpdate()

void CConnection::writeNoDataUpdate ( )
private

Definition at line 389 of file Connection.cpp.

Member Data Documentation

◆ continuousUpdates

bool CConnection::continuousUpdates
private

Definition at line 82 of file Connection.h.

◆ cuRegion

rfb::Region CConnection::cuRegion
private

Definition at line 83 of file Connection.h.

◆ fenceData

char * CConnection::fenceData
private

Definition at line 77 of file Connection.h.

◆ fenceDataLen

unsigned CConnection::fenceDataLen
private

Definition at line 76 of file Connection.h.

◆ fenceFlags

rdr::U32 CConnection::fenceFlags
private

Definition at line 75 of file Connection.h.

◆ inProcessMessages

bool CConnection::inProcessMessages
private

Definition at line 72 of file Connection.h.

◆ m_Channel

QSharedPointer< CChannel > CConnection::m_Channel
private

Definition at line 64 of file Connection.h.

◆ m_EncodeManager

rfb::EncodeManager CConnection::m_EncodeManager
private

Definition at line 79 of file Connection.h.

◆ m_InputDevice

QSharedPointer< CInputDevice > CConnection::m_InputDevice
private

Definition at line 68 of file Connection.h.

◆ m_InStream

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

Definition at line 65 of file Connection.h.

◆ m_OutStream

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

Definition at line 66 of file Connection.h.

◆ m_PixelFormat

rfb::PixelFormat CConnection::m_PixelFormat
private

Definition at line 70 of file Connection.h.

◆ m_pPara [1/2]

CParameterServiceRabbitVNC* CConnection::m_pPara
private

Definition at line 67 of file Connection.h.

◆ m_pPara [2/2]

CParameterServiceTigerVNC* CConnection::m_pPara
private

Definition at line 67 of file Connection.h.

◆ m_Updates

rfb::SimpleUpdateTracker CConnection::m_Updates
private

Definition at line 80 of file Connection.h.

◆ pendingSyncFence

bool CConnection::pendingSyncFence
private

Definition at line 74 of file Connection.h.

◆ requested

rfb::Region CConnection::requested
private

Definition at line 81 of file Connection.h.

◆ syncFence

bool CConnection::syncFence
private

Definition at line 74 of file Connection.h.


The documentation for this class was generated from the following files: