25 static BOOL cbGlobalInit();
26 static void cbGlobalUninit();
27 static BOOL cbClientNew(freerdp* instance, rdpContext* context);
28 static void cbClientFree(freerdp* instance, rdpContext* context);
29 static int cbClientStart(rdpContext* context);
30 static int cbClientStop(rdpContext* context);
50 static void cb_post_disconnect(freerdp* instance);
51 static int cb_logon_error_info(freerdp* instance, UINT32 data, UINT32 type);
53 static void OnChannelConnectedEventHandler(
void* context,
54 #
if FreeRDP_VERSION_MAJOR >= 3
57 ChannelConnectedEventArgs* e);
58 static void OnChannelDisconnectedEventHandler(
void* context,
59 #
if FreeRDP_VERSION_MAJOR >= 3
62 ChannelDisconnectedEventArgs* e);
64 static BOOL cb_authenticate(freerdp* instance,
65 char** username,
char** password,
char** domain);
66 static BOOL cb_GatewayAuthenticate(freerdp* instance,
67 char** username,
char** password,
char** domain);
68#if FreeRDP_VERSION_MAJOR >= 3
69 static BOOL cb_authenticate_ex(freerdp* instance,
70 char** username,
char** password,
71 char** domain, rdp_auth_reason reason);
72 static BOOL cb_choose_smartcard(freerdp* instance,
73 SmartcardCertInfo** cert_list,
75 DWORD* choice, BOOL gateway);
91 const BYTE* data,
size_t length,
92 const char* hostname, UINT16 port, DWORD flags);
94 const char* host, UINT16 port,
95 const char* common_name,
const char* subject,
96 const char* issuer,
const char* fingerprint, DWORD flags);
98 const char* host, UINT16 port,
99 const char* common_name,
const char* subject,
100 const char* issuer,
const char* fingerprint,
101 const char* old_subject,
const char* old_issuer,
102 const char* old_fingerprint, DWORD flags);
103 static BOOL cb_present_gateway_message(freerdp* instance,
104 UINT32 type, BOOL isDisplayMandatory,
105 BOOL isConsentMandatory,
size_t length,
const WCHAR* message);
107 static BOOL cb_begin_paint(rdpContext* context);
108 static BOOL cb_end_paint(rdpContext* context);
109 static BOOL cb_desktop_resize(rdpContext* context);
110 static BOOL cb_play_bell_sound(rdpContext* context,
111 const PLAY_SOUND_UPDATE* play_sound);
112 static BOOL cb_keyboard_set_indicators(rdpContext* context, UINT16 led_flags);
113 static BOOL cb_keyboard_set_ime_status(rdpContext* context, UINT16 imeId, UINT32 imeState,
116 static UINT32 GetImageFormat(QImage::Format format);
117 static const char* GetTitle(freerdp *instance);
120 UINT32 GetImageFormat();
121 BOOL CreateImage(rdpContext* context);
122 BOOL UpdateBuffer(INT32 x, INT32 y, INT32 w, INT32 h);
124 int RedirectionSound();
125 int RedirectionMicrophone();
126 int RedirectionDriver();
127 int RedirectionPrinter();
128 int RedirectionSerial();
130 bool SendMouseEvent(UINT16 flags, QPoint pos,
bool isExtended);
134 virtual void slotClipBoardChanged()
override;
137 virtual void mousePressEvent(QMouseEvent* event)
override;
138 virtual void mouseReleaseEvent(QMouseEvent* event)
override;
139 virtual void mouseMoveEvent(QMouseEvent* event)
override;
140 virtual void wheelEvent(QWheelEvent* event)
override;
141 virtual void keyPressEvent(QKeyEvent *event)
override;
142 virtual void keyReleaseEvent(QKeyEvent *event)
override;
143 virtual int WakeUp()
override;
147 virtual OnInitReturnValue
OnInit()
override;
148 virtual int OnClean()
override;
153 #if FreeRDP_VERSION_MAJOR >= 3
154 rdpClientContext Context;
163 RDP_CLIENT_ENTRY_POINTS m_ClientEntryPoints;
177 void slotConnectProxyServer(QString szHost, quint16 nPort);
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 ce...
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 connect...