Rabbit Remote Control 0.0.30
Loading...
Searching...
No Matches
Classes | Public Slots | Public Member Functions | Static Public Member Functions | Protected Member Functions | Private Slots | Private Member Functions | Private Attributes | Friends | List of all members
CConnectFreeRDP Class Reference
Inheritance diagram for CConnectFreeRDP:
CConnectDesktop CConnect

Classes

struct  ClientContext
 

Public Slots

virtual void slotClipBoardChanged () override
 
- Public Slots inherited from CConnectDesktop
virtual void slotClipBoardChanged ()=0
 Be called when the clip board change.
 
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)
 
- Public Slots inherited from CConnect
virtual int Connect ()
 Start connect.
 
virtual int Disconnect ()
 Disconnect.
 

Public Member Functions

 CConnectFreeRDP (CConnecterFreeRDP *pConnecter)
 
- Public Member Functions inherited from CConnectDesktop
 CConnectDesktop (CConnecter *pConnecter, bool bDirectConnection=true)
 
virtual bool event (QEvent *event) override
 
- Public Member Functions inherited from CConnect
 CConnect (CConnecter *pConnecter)
 

Static Public Member Functions

static BOOL cbGlobalInit ()
 
static void cbGlobalUninit ()
 
static BOOL cbClientNew (freerdp *instance, rdpContext *context)
 
static void cbClientFree (freerdp *instance, rdpContext *context)
 
static int cbClientStart (rdpContext *context)
 
static int cbClientStop (rdpContext *context)
 
static BOOL cb_pre_connect (freerdp *instance)
 Callback given to freerdp_connect() to process the pre-connect operations.
 
static BOOL cb_post_connect (freerdp *instance)
 Callback given to freerdp_connect() to perform post-connection operations.
 
static void cb_post_disconnect (freerdp *instance)
 
static int cb_logon_error_info (freerdp *instance, UINT32 data, UINT32 type)
 
static void OnChannelConnectedEventHandler (void *context, ChannelConnectedEventArgs *e)
 
static void OnChannelDisconnectedEventHandler (void *context, ChannelDisconnectedEventArgs *e)
 
static BOOL cb_authenticate (freerdp *instance, char **username, char **password, char **domain)
 
static BOOL cb_GatewayAuthenticate (freerdp *instance, char **username, char **password, char **domain)
 
static int cb_verify_x509_certificate (freerdp *instance, const BYTE *data, size_t length, const char *hostname, UINT16 port, DWORD flags)
 Callback used if user interaction is required to accept a certificate.
 
static DWORD cb_verify_certificate_ex (freerdp *instance, const char *host, UINT16 port, const char *common_name, const char *subject, const char *issuer, const char *fingerprint, DWORD flags)
 Callback set in the rdp_freerdp structure, and used to make a certificate validation when the connection requires it.
 
static DWORD cb_verify_changed_certificate_ex (freerdp *instance, const char *host, UINT16 port, const char *common_name, const char *subject, const char *issuer, const char *fingerprint, const char *old_subject, const char *old_issuer, const char *old_fingerprint, DWORD flags)
 Callback set in the rdp_freerdp structure, and used to make a certificate validation when a stored certificate does not match the remote counterpart.
 
static BOOL cb_present_gateway_message (freerdp *instance, UINT32 type, BOOL isDisplayMandatory, BOOL isConsentMandatory, size_t length, const WCHAR *message)
 
static BOOL cb_begin_paint (rdpContext *context)
 
static BOOL cb_end_paint (rdpContext *context)
 
static BOOL cb_desktop_resize (rdpContext *context)
 
static BOOL cb_play_bell_sound (rdpContext *context, const PLAY_SOUND_UPDATE *play_sound)
 
static BOOL cb_keyboard_set_indicators (rdpContext *context, UINT16 led_flags)
 
static BOOL cb_keyboard_set_ime_status (rdpContext *context, UINT16 imeId, UINT32 imeState, UINT32 imeConvMode)
 
static UINT32 GetImageFormat (QImage::Format format)
 
static const char * GetTitle (freerdp *instance)
 

Protected Member Functions

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 int WakeUp () override
 Wake up Connect thread(background thread)
 

Private Slots

void slotConnectProxyServer (QString szHost, quint16 nPort)
 

Private Member Functions

UINT32 GetImageFormat ()
 
BOOL CreateImage (rdpContext *context)
 
BOOL UpdateBuffer (INT32 x, INT32 y, INT32 w, INT32 h)
 
int RedirectionSound ()
 
int RedirectionMicrophone ()
 
int RedirectionDriver ()
 
int RedirectionPrinter ()
 
int RedirectionSerial ()
 
bool SendMouseEvent (UINT16 flags, QPoint pos, bool isExtended)
 
virtual OnInitReturnValue OnInit () override
 Specific plug-in realizes connection initialization.
 
virtual int OnClean () override
 Clean.
 
virtual int OnProcess () override
 Specific operation processing of plug-in connection.
 

Private Attributes

ClientContextm_pContext
 
CParameterFreeRDPm_pParameter
 
RDP_CLIENT_ENTRY_POINTS m_ClientEntryPoints
 
QImage m_Image
 
CClipboardFreeRDP m_ClipBoard
 
CCursorFreeRDP m_Cursor
 
HANDLE m_writeEvent
 

Friends

class CCursorFreeRDP
 

Additional Inherited Members

- Signals inherited from CConnectDesktop
void sigSetDesktopSize (int width, int height)
 
void sigServerName (const QString &szName)
 
void sigUpdateRect (const QRect &r, const QImage &image)
 Notify the CFrmView update 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)
 
- Signals inherited from CConnect
void sigConnected ()
 Emitted when the plugin is successfully connected.
 
void sigDisconnect ()
 Notify the user to call disconnect.
 
void sigDisconnected ()
 Successful disconnection signal.
 
void sigError (const int nError, const QString &szError=QString())
 Triggered when an error is generated.
 
void sigInformation (const QString &szInfo)
 Triggering from a background thread displays information in the main thread without blocking the background thread.
 
void sigShowMessageBox (const QString &szTitle, const QString &szMessage, const QMessageBox::Icon &icon=QMessageBox::Information)
 Trigger the display of a message dialog (QMessageBox) in the main thread from a background thread without blocking the background thread.
 
void sigBlockShowMessageBox (const QString &szTitle, const QString &szMessage, QMessageBox::StandardButtons buttons, QMessageBox::StandardButton &nRet, bool &checkBox, QString checkBoxContext=QString())
 Block background threads and display message dialogs in foreground threads (QMessageBox)
 
void sigBlockInputDialog (const QString &szTitle, const QString &szLable, const QString &szMessage, QString &szText)
 Block background threads and display input dialogs in foreground threads (QInputDialog)
 
void sigBlockShowWidget (const QString &className, int &nRet, void *pContext)
 Blocks the background thread and displays the window in the foreground thread.
 
- Protected Types inherited from CConnect
enum class  OnInitReturnValue { Fail = -1 , Success = 0 , UseOnProcess = Success , NotUseOnProcess = 1 }
 
- Protected Slots inherited from CConnect
virtual void slotTimeOut ()
 a non-Qt event loop (that is, normal loop processing), It call OnProcess(), and start timer.
 

Detailed Description

Definition at line 17 of file ConnectFreeRDP.h.

Constructor & Destructor Documentation

◆ ~CConnectFreeRDP()

CConnectFreeRDP::~CConnectFreeRDP ( )
overridevirtual

Definition at line 63 of file ConnectFreeRDP.cpp.

Member Function Documentation

◆ cb_authenticate()

BOOL CConnectFreeRDP::cb_authenticate ( freerdp *  instance,
char **  username,
char **  password,
char **  domain 
)
static

Definition at line 1152 of file ConnectFreeRDP.cpp.

◆ cb_begin_paint()

BOOL CConnectFreeRDP::cb_begin_paint ( rdpContext *  context)
static

Definition at line 1468 of file ConnectFreeRDP.cpp.

◆ cb_desktop_resize()

BOOL CConnectFreeRDP::cb_desktop_resize ( rdpContext *  context)
static

Definition at line 1567 of file ConnectFreeRDP.cpp.

◆ cb_end_paint()

BOOL CConnectFreeRDP::cb_end_paint ( rdpContext *  context)
static

Definition at line 1503 of file ConnectFreeRDP.cpp.

◆ cb_GatewayAuthenticate()

BOOL CConnectFreeRDP::cb_GatewayAuthenticate ( freerdp *  instance,
char **  username,
char **  password,
char **  domain 
)
static

Definition at line 1183 of file ConnectFreeRDP.cpp.

◆ cb_keyboard_set_ime_status()

BOOL CConnectFreeRDP::cb_keyboard_set_ime_status ( rdpContext *  context,
UINT16  imeId,
UINT32  imeState,
UINT32  imeConvMode 
)
static

Definition at line 1633 of file ConnectFreeRDP.cpp.

◆ cb_keyboard_set_indicators()

BOOL CConnectFreeRDP::cb_keyboard_set_indicators ( rdpContext *  context,
UINT16  led_flags 
)
static

Definition at line 1612 of file ConnectFreeRDP.cpp.

◆ cb_logon_error_info()

int CConnectFreeRDP::cb_logon_error_info ( freerdp *  instance,
UINT32  data,
UINT32  type 
)
static

Definition at line 826 of file ConnectFreeRDP.cpp.

◆ cb_play_bell_sound()

BOOL CConnectFreeRDP::cb_play_bell_sound ( rdpContext *  context,
const PLAY_SOUND_UPDATE *  play_sound 
)
static

Definition at line 1589 of file ConnectFreeRDP.cpp.

◆ cb_post_connect()

BOOL CConnectFreeRDP::cb_post_connect ( freerdp *  instance)
static

Callback given to freerdp_connect() to perform post-connection operations.

It will be called only if the connection was initialized properly, and will continue the initialization based on the newly created connection.

Definition at line 753 of file ConnectFreeRDP.cpp.

◆ cb_post_disconnect()

void CConnectFreeRDP::cb_post_disconnect ( freerdp *  instance)
static

Definition at line 809 of file ConnectFreeRDP.cpp.

◆ cb_pre_connect()

BOOL CConnectFreeRDP::cb_pre_connect ( freerdp *  instance)
static

Callback given to freerdp_connect() to process the pre-connect operations.

Called before a connection is established.

It will fill the rdp_freerdp structure (instance) with the appropriate options to use for the connection.

Parameters
instance- pointer to the rdp_freerdp structure that contains the connection's parameters, and will be filled with the appropriate information.
Returns
TRUE if successful. FALSE otherwise. Can exit with error code XF_EXIT_PARSE_ARGUMENTS if there is an error in the parameters.

Set all configuration options to support and load channels here.

Callback given to freerdp_connect() to process the pre-connect operations. It will fill the rdp_freerdp structure (instance) with the appropriate options to use for the connection.

Parameters
instance- pointer to the rdp_freerdp structure that contains the connection's parameters, and will be filled with the appropriate information.
Returns
TRUE if successful. FALSE otherwise. Can exit with error code XF_EXIT_PARSE_ARGUMENTS if there is an error in the parameters.

Definition at line 589 of file ConnectFreeRDP.cpp.

◆ cb_present_gateway_message()

BOOL CConnectFreeRDP::cb_present_gateway_message ( freerdp *  instance,
UINT32  type,
BOOL  isDisplayMandatory,
BOOL  isConsentMandatory,
size_t  length,
const WCHAR *  message 
)
static

Definition at line 1418 of file ConnectFreeRDP.cpp.

◆ cb_verify_certificate_ex()

DWORD CConnectFreeRDP::cb_verify_certificate_ex ( freerdp *  instance,
const char *  host,
UINT16  port,
const char *  common_name,
const char *  subject,
const char *  issuer,
const char *  fingerprint,
DWORD  flags 
)
static

Callback set in the rdp_freerdp structure, and used to make a certificate validation when the connection requires it.

This function will actually be called by tls_verify_certificate().

See also
rdp_client_connect() and tls_connect()
Parameters
instancepointer to the rdp_freerdp structure that contains the connection settings
hostThe host currently connecting to
portThe port currently connecting to
common_nameThe common name of the certificate, should match host or an alias of it
subjectThe subject of the certificate
issuerThe certificate issuer name
fingerprintThe fingerprint of the certificate
flagsSee VERIFY_CERT_FLAG_* for possible values.
Returns
1 if the certificate is trusted, 2 if temporary trusted, 0 otherwise.

Definition at line 1249 of file ConnectFreeRDP.cpp.

◆ cb_verify_changed_certificate_ex()

DWORD CConnectFreeRDP::cb_verify_changed_certificate_ex ( freerdp *  instance,
const char *  host,
UINT16  port,
const char *  common_name,
const char *  subject,
const char *  issuer,
const char *  fingerprint,
const char *  old_subject,
const char *  old_issuer,
const char *  old_fingerprint,
DWORD  flags 
)
static

Callback set in the rdp_freerdp structure, and used to make a certificate validation when a stored certificate does not match the remote counterpart.

This function will actually be called by tls_verify_certificate().

See also
rdp_client_connect() and tls_connect()
Parameters
instancepointer to the rdp_freerdp structure that contains the connection settings
hostThe host currently connecting to
portThe port currently connecting to
common_nameThe common name of the certificate, should match host or an alias of it
subjectThe subject of the certificate
issuerThe certificate issuer name
fingerprintThe fingerprint of the certificate
old_subjectThe subject of the previous certificate
old_issuerThe previous certificate issuer name
old_fingerprintThe fingerprint of the previous certificate
flagsSee VERIFY_CERT_FLAG_* for possible values.
Returns
1 if the certificate is trusted, 2 if temporary trusted, 0 otherwise.

Definition at line 1346 of file ConnectFreeRDP.cpp.

◆ cb_verify_x509_certificate()

int CConnectFreeRDP::cb_verify_x509_certificate ( freerdp *  instance,
const BYTE *  data,
size_t  length,
const char *  hostname,
UINT16  port,
DWORD  flags 
)
static

Callback used if user interaction is required to accept a certificate.

Parameters
instancePointer to the freerdp instance.
dataPointer to certificate data (full chain) in PEM format.
lengthThe length of the certificate data.
hostnameThe hostname connecting to.
portThe port connecting to.
flagsFlags of type VERIFY_CERT_FLAG*
Returns
1 to accept and store a certificate, 2 to accept a certificate only for this session, 0 otherwise.

Definition at line 1214 of file ConnectFreeRDP.cpp.

◆ cbClientFree()

void CConnectFreeRDP::cbClientFree ( freerdp *  instance,
rdpContext *  context 
)
static

Definition at line 446 of file ConnectFreeRDP.cpp.

◆ cbClientNew()

BOOL CConnectFreeRDP::cbClientNew ( freerdp *  instance,
rdpContext *  context 
)
static

Definition at line 421 of file ConnectFreeRDP.cpp.

◆ cbClientStart()

int CConnectFreeRDP::cbClientStart ( rdpContext *  context)
static

Definition at line 451 of file ConnectFreeRDP.cpp.

◆ cbClientStop()

int CConnectFreeRDP::cbClientStop ( rdpContext *  context)
static

Definition at line 555 of file ConnectFreeRDP.cpp.

◆ cbGlobalInit()

BOOL CConnectFreeRDP::cbGlobalInit ( )
static

Definition at line 410 of file ConnectFreeRDP.cpp.

◆ cbGlobalUninit()

void CConnectFreeRDP::cbGlobalUninit ( )
static

Definition at line 416 of file ConnectFreeRDP.cpp.

◆ CreateImage()

BOOL CConnectFreeRDP::CreateImage ( rdpContext *  context)
private

Definition at line 939 of file ConnectFreeRDP.cpp.

◆ GetImageFormat() [1/2]

UINT32 CConnectFreeRDP::GetImageFormat ( )
private

Definition at line 934 of file ConnectFreeRDP.cpp.

◆ GetImageFormat() [2/2]

UINT32 CConnectFreeRDP::GetImageFormat ( QImage::Format  format)
static

Definition at line 913 of file ConnectFreeRDP.cpp.

◆ GetTitle()

const char * CConnectFreeRDP::GetTitle ( freerdp *  instance)
static

Definition at line 711 of file ConnectFreeRDP.cpp.

◆ keyPressEvent()

void CConnectFreeRDP::keyPressEvent ( QKeyEvent *  event)
overrideprotectedvirtual

Reimplemented from CConnectDesktop.

Definition at line 1800 of file ConnectFreeRDP.cpp.

◆ keyReleaseEvent()

void CConnectFreeRDP::keyReleaseEvent ( QKeyEvent *  event)
overrideprotectedvirtual

Reimplemented from CConnectDesktop.

Definition at line 1817 of file ConnectFreeRDP.cpp.

◆ mouseMoveEvent()

void CConnectFreeRDP::mouseMoveEvent ( QMouseEvent *  event)
overrideprotectedvirtual

Reimplemented from CConnectDesktop.

Definition at line 1717 of file ConnectFreeRDP.cpp.

◆ mousePressEvent()

void CConnectFreeRDP::mousePressEvent ( QMouseEvent *  event)
overrideprotectedvirtual

Reimplemented from CConnectDesktop.

Definition at line 1726 of file ConnectFreeRDP.cpp.

◆ mouseReleaseEvent()

void CConnectFreeRDP::mouseReleaseEvent ( QMouseEvent *  event)
overrideprotectedvirtual

Reimplemented from CConnectDesktop.

Definition at line 1763 of file ConnectFreeRDP.cpp.

◆ OnChannelConnectedEventHandler()

void CConnectFreeRDP::OnChannelConnectedEventHandler ( void *  context,
ChannelConnectedEventArgs *  e 
)
static

Definition at line 841 of file ConnectFreeRDP.cpp.

◆ OnChannelDisconnectedEventHandler()

void CConnectFreeRDP::OnChannelDisconnectedEventHandler ( void *  context,
ChannelDisconnectedEventArgs *  e 
)
static

Definition at line 880 of file ConnectFreeRDP.cpp.

◆ OnClean()

int CConnectFreeRDP::OnClean ( )
overrideprivatevirtual

Clean.

See also
Disconnect()

Implements CConnect.

Definition at line 259 of file ConnectFreeRDP.cpp.

◆ OnInit()

CConnect::OnInitReturnValue CConnectFreeRDP::OnInit ( )
overrideprivatevirtual

Specific plug-in realizes connection initialization.

Returns
See also
Connect()

Implements CConnect.

Definition at line 74 of file ConnectFreeRDP.cpp.

◆ OnProcess()

int CConnectFreeRDP::OnProcess ( )
overrideprivatevirtual

Specific operation processing of plug-in connection.

Because of it is a non-Qt event loop, so wait in here.

Returns
  • >= 0: continue, Interval call time (msec)
  • = -1: stop
  • < -1: error
See also
CConnect::Connect() CConnect::slotTimeOut()

Reimplemented from CConnect.

Definition at line 304 of file ConnectFreeRDP.cpp.

◆ RedirectionDriver()

int CConnectFreeRDP::RedirectionDriver ( )
private

Definition at line 1945 of file ConnectFreeRDP.cpp.

◆ RedirectionMicrophone()

int CConnectFreeRDP::RedirectionMicrophone ( )
private

Definition at line 1900 of file ConnectFreeRDP.cpp.

◆ RedirectionPrinter()

int CConnectFreeRDP::RedirectionPrinter ( )
private

Definition at line 1977 of file ConnectFreeRDP.cpp.

◆ RedirectionSerial()

int CConnectFreeRDP::RedirectionSerial ( )
private

Definition at line 2011 of file ConnectFreeRDP.cpp.

◆ RedirectionSound()

int CConnectFreeRDP::RedirectionSound ( )
private

Definition at line 1833 of file ConnectFreeRDP.cpp.

◆ SendMouseEvent()

bool CConnectFreeRDP::SendMouseEvent ( UINT16  flags,
QPoint  pos,
bool  isExtended 
)
private

Definition at line 1654 of file ConnectFreeRDP.cpp.

◆ slotClipBoardChanged

void CConnectFreeRDP::slotClipBoardChanged ( )
overridevirtualslot

Definition at line 402 of file ConnectFreeRDP.cpp.

◆ slotConnectProxyServer

void CConnectFreeRDP::slotConnectProxyServer ( QString  szHost,
quint16  nPort 
)
privateslot

Definition at line 2051 of file ConnectFreeRDP.cpp.

◆ UpdateBuffer()

BOOL CConnectFreeRDP::UpdateBuffer ( INT32  x,
INT32  y,
INT32  w,
INT32  h 
)
private

Definition at line 1486 of file ConnectFreeRDP.cpp.

◆ WakeUp()

int CConnectFreeRDP::WakeUp ( )
overrideprotectedvirtual

Wake up Connect thread(background thread)

Reimplemented from CConnectDesktop.

Definition at line 1646 of file ConnectFreeRDP.cpp.

◆ wheelEvent()

void CConnectFreeRDP::wheelEvent ( QWheelEvent *  event)
overrideprotectedvirtual

Reimplemented from CConnectDesktop.

Definition at line 1674 of file ConnectFreeRDP.cpp.

Friends And Related Symbol Documentation

◆ CCursorFreeRDP

friend class CCursorFreeRDP
friend

Definition at line 169 of file ConnectFreeRDP.h.

Member Data Documentation

◆ m_ClientEntryPoints

RDP_CLIENT_ENTRY_POINTS CConnectFreeRDP::m_ClientEntryPoints
private

Definition at line 163 of file ConnectFreeRDP.h.

◆ m_ClipBoard

CClipboardFreeRDP CConnectFreeRDP::m_ClipBoard
private

Definition at line 167 of file ConnectFreeRDP.h.

◆ m_Cursor

CCursorFreeRDP CConnectFreeRDP::m_Cursor
private

Definition at line 168 of file ConnectFreeRDP.h.

◆ m_Image

QImage CConnectFreeRDP::m_Image
private

Definition at line 165 of file ConnectFreeRDP.h.

◆ m_pContext

ClientContext* CConnectFreeRDP::m_pContext
private

Definition at line 160 of file ConnectFreeRDP.h.

◆ m_pParameter

CParameterFreeRDP* CConnectFreeRDP::m_pParameter
private

Definition at line 161 of file ConnectFreeRDP.h.

◆ m_writeEvent

HANDLE CConnectFreeRDP::m_writeEvent
private

Definition at line 171 of file ConnectFreeRDP.h.


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