1 | /* $Id: ClipboardProvider-HostService.cpp 79036 2019-06-07 14:56:19Z vboxsync $ */
|
---|
2 | /** @file
|
---|
3 | * Shared Clipboard - Provider implementation for host service (host side).
|
---|
4 | */
|
---|
5 |
|
---|
6 | /*
|
---|
7 | * Copyright (C) 2019 Oracle Corporation
|
---|
8 | *
|
---|
9 | * This file is part of VirtualBox Open Source Edition (OSE), as
|
---|
10 | * available from http://www.virtualbox.org. This file is free software;
|
---|
11 | * you can redistribute it and/or modify it under the terms of the GNU
|
---|
12 | * General Public License (GPL) as published by the Free Software
|
---|
13 | * Foundation, in version 2 as it comes in the "COPYING" file of the
|
---|
14 | * VirtualBox OSE distribution. VirtualBox OSE is distributed in the
|
---|
15 | * hope that it will be useful, but WITHOUT ANY WARRANTY of any kind.
|
---|
16 | */
|
---|
17 |
|
---|
18 |
|
---|
19 | /*********************************************************************************************************************************
|
---|
20 | * Header Files *
|
---|
21 | *********************************************************************************************************************************/
|
---|
22 | #define LOG_GROUP LOG_GROUP_SHARED_CLIPBOARD
|
---|
23 | #include <VBox/GuestHost/SharedClipboard-uri.h>
|
---|
24 |
|
---|
25 | #include <iprt/asm.h>
|
---|
26 | #include <iprt/assert.h>
|
---|
27 | #include <iprt/dir.h>
|
---|
28 | #include <iprt/errcore.h>
|
---|
29 | #include <iprt/file.h>
|
---|
30 | #include <iprt/path.h>
|
---|
31 | #include <iprt/string.h>
|
---|
32 |
|
---|
33 | #include <VBox/log.h>
|
---|
34 |
|
---|
35 |
|
---|
36 | SharedClipboardProviderHostService::SharedClipboardProviderHostService(void)
|
---|
37 | {
|
---|
38 | LogFlowFuncEnter();
|
---|
39 | }
|
---|
40 |
|
---|
41 | SharedClipboardProviderHostService::~SharedClipboardProviderHostService(void)
|
---|
42 | {
|
---|
43 | }
|
---|
44 |
|
---|
45 | int SharedClipboardProviderHostService::ReadDataHdr(PVBOXCLIPBOARDDATAHDR pDataHdr)
|
---|
46 | {
|
---|
47 | RT_NOREF(pDataHdr);
|
---|
48 | return VERR_NOT_IMPLEMENTED;
|
---|
49 | }
|
---|
50 |
|
---|
51 | int SharedClipboardProviderHostService::WriteDataHdr(const PVBOXCLIPBOARDDATAHDR pDataHdr)
|
---|
52 | {
|
---|
53 | RT_NOREF(pDataHdr);
|
---|
54 | return VERR_NOT_IMPLEMENTED;
|
---|
55 | }
|
---|
56 |
|
---|
57 | int SharedClipboardProviderHostService::ReadMetaData(const PVBOXCLIPBOARDDATAHDR pDataHdr, void *pvMeta, uint32_t cbMeta, uint32_t *pcbRead,
|
---|
58 | uint32_t fFlags /* = 0 */)
|
---|
59 | {
|
---|
60 | RT_NOREF(pDataHdr, pvMeta, cbMeta, pcbRead, fFlags);
|
---|
61 | return VERR_NOT_IMPLEMENTED;
|
---|
62 | }
|
---|
63 |
|
---|
64 | int SharedClipboardProviderHostService::WriteMetaData(const PVBOXCLIPBOARDDATAHDR pDataHdr, const void *pvMeta, uint32_t cbMeta,
|
---|
65 | uint32_t *pcbWritten, uint32_t fFlags /* = 0 */)
|
---|
66 | {
|
---|
67 | RT_NOREF(pDataHdr, pvMeta, cbMeta, pcbWritten, fFlags);
|
---|
68 | return VERR_NOT_IMPLEMENTED;
|
---|
69 | }
|
---|
70 |
|
---|
71 | int SharedClipboardProviderHostService::ReadDirectory(PVBOXCLIPBOARDDIRDATA pDirData)
|
---|
72 | {
|
---|
73 | RT_NOREF(pDirData);
|
---|
74 |
|
---|
75 | LogFlowFuncEnter();
|
---|
76 |
|
---|
77 | int rc = VERR_NOT_IMPLEMENTED;
|
---|
78 |
|
---|
79 | LogFlowFuncLeaveRC(rc);
|
---|
80 | return rc;
|
---|
81 | }
|
---|
82 |
|
---|
83 | int SharedClipboardProviderHostService::WriteDirectory(const PVBOXCLIPBOARDDIRDATA pDirData)
|
---|
84 | {
|
---|
85 | RT_NOREF(pDirData);
|
---|
86 |
|
---|
87 | LogFlowFuncEnter();
|
---|
88 |
|
---|
89 | int rc = VERR_NOT_IMPLEMENTED;
|
---|
90 |
|
---|
91 | LogFlowFuncLeaveRC(rc);
|
---|
92 | return rc;
|
---|
93 | }
|
---|
94 |
|
---|
95 | int SharedClipboardProviderHostService::ReadFileHdr(PVBOXCLIPBOARDFILEHDR pFileHdr)
|
---|
96 | {
|
---|
97 | RT_NOREF(pFileHdr);
|
---|
98 |
|
---|
99 | LogFlowFuncEnter();
|
---|
100 |
|
---|
101 | int rc = VERR_NOT_IMPLEMENTED;
|
---|
102 |
|
---|
103 | LogFlowFuncLeaveRC(rc);
|
---|
104 | return rc;
|
---|
105 | }
|
---|
106 |
|
---|
107 | int SharedClipboardProviderHostService::WriteFileHdr(const PVBOXCLIPBOARDFILEHDR pFileHdr)
|
---|
108 | {
|
---|
109 | RT_NOREF(pFileHdr);
|
---|
110 |
|
---|
111 | LogFlowFuncEnter();
|
---|
112 |
|
---|
113 | int rc = VERR_NOT_IMPLEMENTED;
|
---|
114 |
|
---|
115 | LogFlowFuncLeaveRC(rc);
|
---|
116 | return rc;
|
---|
117 | }
|
---|
118 |
|
---|
119 | int SharedClipboardProviderHostService::ReadFileData(PVBOXCLIPBOARDFILEDATA pFileData, uint32_t *pcbRead)
|
---|
120 | {
|
---|
121 | RT_NOREF(pFileData, pcbRead);
|
---|
122 |
|
---|
123 | LogFlowFuncEnter();
|
---|
124 |
|
---|
125 | int rc = VERR_NOT_IMPLEMENTED;
|
---|
126 |
|
---|
127 | LogFlowFuncLeaveRC(rc);
|
---|
128 | return rc;
|
---|
129 | }
|
---|
130 |
|
---|
131 | int SharedClipboardProviderHostService::WriteFileData(const PVBOXCLIPBOARDFILEDATA pFileData, uint32_t *pcbWritten)
|
---|
132 | {
|
---|
133 | RT_NOREF(pFileData, pcbWritten);
|
---|
134 |
|
---|
135 | LogFlowFuncEnter();
|
---|
136 |
|
---|
137 | int rc = VERR_NOT_IMPLEMENTED;
|
---|
138 |
|
---|
139 | LogFlowFuncLeaveRC(rc);
|
---|
140 | return rc;
|
---|
141 | }
|
---|
142 |
|
---|
143 | void SharedClipboardProviderHostService::Reset(void)
|
---|
144 | {
|
---|
145 | }
|
---|
146 |
|
---|