1 | /* $Id: ClipboardProvider-HostService.cpp 78942 2019-06-03 19:10: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::ReadMetaData(uint32_t fFlags /* = 0 */)
|
---|
46 | {
|
---|
47 | RT_NOREF(fFlags);
|
---|
48 | return VERR_NOT_IMPLEMENTED;
|
---|
49 | }
|
---|
50 |
|
---|
51 | int SharedClipboardProviderHostService::WriteMetaData(const void *pvBuf, size_t cbBuf, size_t *pcbWritten, uint32_t fFlags /* = 0 */)
|
---|
52 | {
|
---|
53 | RT_NOREF(pvBuf, cbBuf, pcbWritten, fFlags);
|
---|
54 | return VERR_NOT_IMPLEMENTED;
|
---|
55 | }
|
---|
56 |
|
---|
57 | int SharedClipboardProviderVbglR3::ReadDirectory(PVBOXCLIPBOARDDIRDATA pDirData)
|
---|
58 | {
|
---|
59 | RT_NOREF(pDirData);
|
---|
60 |
|
---|
61 | LogFlowFuncEnter();
|
---|
62 |
|
---|
63 | int rc = VERR_NOT_IMPLEMENTED;
|
---|
64 |
|
---|
65 | LogFlowFuncLeaveRC(rc);
|
---|
66 | return rc;
|
---|
67 | }
|
---|
68 |
|
---|
69 | int SharedClipboardProviderVbglR3::WriteDirectory(const PVBOXCLIPBOARDDIRDATA pDirData)
|
---|
70 | {
|
---|
71 | RT_NOREF(pDirData);
|
---|
72 |
|
---|
73 | LogFlowFuncEnter();
|
---|
74 |
|
---|
75 | int rc = VERR_NOT_IMPLEMENTED;
|
---|
76 |
|
---|
77 | LogFlowFuncLeaveRC(rc);
|
---|
78 | return rc;
|
---|
79 | }
|
---|
80 |
|
---|
81 | int SharedClipboardProviderVbglR3::ReadFileHdr(PVBOXCLIPBOARDFILEHDR pFileHdr)
|
---|
82 | {
|
---|
83 | RT_NOREF(pFileHdr);
|
---|
84 |
|
---|
85 | LogFlowFuncEnter();
|
---|
86 |
|
---|
87 | int rc = VERR_NOT_IMPLEMENTED;
|
---|
88 |
|
---|
89 | LogFlowFuncLeaveRC(rc);
|
---|
90 | return rc;
|
---|
91 | }
|
---|
92 |
|
---|
93 | int SharedClipboardProviderVbglR3::WriteFileHdr(const PVBOXCLIPBOARDFILEHDR pFileHdr)
|
---|
94 | {
|
---|
95 | RT_NOREF(pFileHdr);
|
---|
96 |
|
---|
97 | LogFlowFuncEnter();
|
---|
98 |
|
---|
99 | int rc = VERR_NOT_IMPLEMENTED;
|
---|
100 |
|
---|
101 | LogFlowFuncLeaveRC(rc);
|
---|
102 | return rc;
|
---|
103 | }
|
---|
104 |
|
---|
105 | int SharedClipboardProviderVbglR3::ReadFileData(PVBOXCLIPBOARDFILEDATA pFileData)
|
---|
106 | {
|
---|
107 | RT_NOREF(pFileData);
|
---|
108 |
|
---|
109 | LogFlowFuncEnter();
|
---|
110 |
|
---|
111 | int rc = VERR_NOT_IMPLEMENTED;
|
---|
112 |
|
---|
113 | LogFlowFuncLeaveRC(rc);
|
---|
114 | return rc;
|
---|
115 | }
|
---|
116 |
|
---|
117 | int SharedClipboardProviderVbglR3::WriteFileData(const PVBOXCLIPBOARDFILEDATA pFileData)
|
---|
118 | {
|
---|
119 | RT_NOREF(pFileData);
|
---|
120 |
|
---|
121 | LogFlowFuncEnter();
|
---|
122 |
|
---|
123 | int rc = VERR_NOT_IMPLEMENTED;
|
---|
124 |
|
---|
125 | LogFlowFuncLeaveRC(rc);
|
---|
126 | return rc;
|
---|
127 | }
|
---|
128 |
|
---|
129 | void SharedClipboardProviderHostService::Reset(void)
|
---|
130 | {
|
---|
131 | }
|
---|
132 |
|
---|