22 int Init(CliprdrClientContext *context,
bool bEnable);
23 int UnInit(CliprdrClientContext* context,
bool bEnable);
25 static UINT cb_cliprdr_server_capabilities(CliprdrClientContext* context,
26 const CLIPRDR_CAPABILITIES* capabilities);
28 static UINT cb_cliprdr_server_format_list(CliprdrClientContext* context,
29 const CLIPRDR_FORMAT_LIST* formatList);
31 cb_cliprdr_server_format_list_response(CliprdrClientContext* context,
32 const CLIPRDR_FORMAT_LIST_RESPONSE* formatListResponse);
35 cb_cliprdr_server_format_data_response(CliprdrClientContext* context,
36 const CLIPRDR_FORMAT_DATA_RESPONSE* formatDataResponse);
38 cb_cliprdr_server_file_contents_request(CliprdrClientContext* context,
39 const CLIPRDR_FILE_CONTENTS_REQUEST* fileContentsRequest);
41 cb_cliprdr_server_file_contents_response(CliprdrClientContext* context,
42 const CLIPRDR_FILE_CONTENTS_RESPONSE* fileContentsResponse);
45 static UINT cb_cliprdr_monitor_ready(CliprdrClientContext* context,
46 const CLIPRDR_MONITOR_READY* monitorReady);
47 static UINT SendClientFormatList(CliprdrClientContext *context);
51 cb_cliprdr_server_format_data_request(CliprdrClientContext* context,
52 const CLIPRDR_FORMAT_DATA_REQUEST* formatDataRequest);
53 static UINT SendFormatDataResponse(CliprdrClientContext* context,
54 const BYTE* data,
size_t size);
56 static UINT slotSendFormatDataRequest(CliprdrClientContext* context,
61 static UINT SendFileContentsFailure(CliprdrClientContext* context,
62 const CLIPRDR_FILE_CONTENTS_REQUEST* fileContentsRequest);
63 UINT ServerFileSizeRequest(
64 const CLIPRDR_FILE_CONTENTS_REQUEST* fileContentsRequest);
65 UINT ServerFileRangeRequest(
66 const CLIPRDR_FILE_CONTENTS_REQUEST* fileContentsRequest);
67 static UINT cb_clipboard_file_size_success(wClipboardDelegate* delegate,
68 const wClipboardFileSizeRequest* request,
70 static UINT cb_clipboard_file_size_failure(
71 wClipboardDelegate* delegate,
72 const wClipboardFileSizeRequest* request,
74 static UINT cb_clipboard_file_range_success(
75 wClipboardDelegate* delegate,
76 const wClipboardFileRangeRequest* request,
77 const BYTE* data, UINT32 size);
78 static UINT cb_clipboard_file_range_failure(
79 wClipboardDelegate* delegate,
80 const wClipboardFileRangeRequest* request,
82 static BOOL cbIsFileNameComponentValid(LPCWSTR lpFileName);
85 virtual void slotClipBoardChanged();
96 void sigServerFileContentsRespose(UINT32 streamId, QByteArray& data);
100 CliprdrClientContext* m_pCliprdrClientContext;
102 QList<qint32> m_lstClipboardMimeDataId;
103 wClipboard* m_pClipboard;
105 UINT32 m_RequestFormatId;
108 UINT32 m_FileCapabilityFlags;
109 bool m_bFileSupported;
110 BOOL m_bFileFormatsRegistered;