Changeset 79299 in vbox for trunk/include
- Timestamp:
- Jun 24, 2019 10:18:19 AM (6 years ago)
- Location:
- trunk/include/VBox
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/include/VBox/GuestHost/SharedClipboard-uri.h
r79267 r79299 503 503 504 504 /** 505 * Enumeration to specify the Shared Clipboard provider source type.506 */ 507 typedef enum SHAREDCLIPBOARD PROVIDERSOURCE505 * Enumeration to specify the Shared Clipboard URI provider source type. 506 */ 507 typedef enum SHAREDCLIPBOARDURIPROVIDERSOURCE 508 508 { 509 509 /** Invalid source type. */ 510 SHAREDCLIPBOARD PROVIDERSOURCE_INVALID = 0,510 SHAREDCLIPBOARDURIPROVIDERSOURCE_INVALID = 0, 511 511 /** Source is VbglR3. */ 512 SHAREDCLIPBOARD PROVIDERSOURCE_VBGLR3,512 SHAREDCLIPBOARDURIPROVIDERSOURCE_VBGLR3, 513 513 /** Source is the host service. */ 514 SHAREDCLIPBOARD PROVIDERSOURCE_HOSTSERVICE515 } SHAREDCLIPBOARD PROVIDERSOURCE;514 SHAREDCLIPBOARDURIPROVIDERSOURCE_HOSTSERVICE 515 } SHAREDCLIPBOARDURIPROVIDERSOURCE; 516 516 517 517 class SharedClipboardProvider; … … 553 553 { 554 554 /** Specifies what the source of the provider is. */ 555 SHAREDCLIPBOARDPROVIDERSOURCE enmSource; 555 SHAREDCLIPBOARDURIPROVIDERSOURCE enmSource; 556 /** Specifies whether the provider will read or write data. */ 557 SHAREDCLIPBOARDURITRANSFERDIR enmDir; 556 558 /** Optional callback table; can be NULL if not needed. */ 557 559 PSHAREDCLIPBOARDPROVIDERCALLBACKS pCallbacks; … … 625 627 public: /* Interface to be implemented. */ 626 628 629 virtual int Prepare(void); 630 627 631 virtual int ReadDataHdr(PVBOXCLIPBOARDDATAHDR *ppDataHdr); 628 632 virtual int WriteDataHdr(const PVBOXCLIPBOARDDATAHDR pDataHdr); … … 697 701 /** Number of references to this instance. */ 698 702 volatile uint32_t m_cRefs; 703 /** The provider's transfer direction. */ 704 SHAREDCLIPBOARDURITRANSFERDIR m_enmDir; 699 705 /** The provider's callback table. */ 700 706 SHAREDCLIPBOARDPROVIDERCALLBACKS m_Callbacks; … … 759 765 public: 760 766 767 int Prepare(void); 768 761 769 int ReadDataHdr(PVBOXCLIPBOARDDATAHDR *ppDataHdr); 762 770 int WriteDataHdr(const PVBOXCLIPBOARDDATAHDR pDataHdr); … … 811 819 typedef FNSHAREDCLIPBOARDURITRANSFERSTARTED *PFNSHAREDCLIPBOARDURITRANSFERSTARTED; 812 820 821 typedef DECLCALLBACK(void) FNSHAREDCLIPBOARDURITRANSFERPREPARE(PSHAREDCLIPBOARDURITRANSFERCALLBACKDATA pData); 822 /** Pointer to a FNSHAREDCLIPBOARDURITRANSFERPREPARE function. */ 823 typedef FNSHAREDCLIPBOARDURITRANSFERPREPARE *PFNSHAREDCLIPBOARDURITRANSFERPREPARE; 824 825 typedef DECLCALLBACK(void) FNSHAREDCLIPBOARDURIMETADATACOMPLETE(PSHAREDCLIPBOARDURITRANSFERCALLBACKDATA pData); 826 /** Pointer to a FNSHAREDCLIPBOARDURIMETADATACOMPLETE function. */ 827 typedef FNSHAREDCLIPBOARDURIMETADATACOMPLETE *PFNSHAREDCLIPBOARDURIMETADATACOMPLETE; 828 813 829 typedef DECLCALLBACK(void) FNSHAREDCLIPBOARDURITRANSFERCANCELED(PSHAREDCLIPBOARDURITRANSFERCALLBACKDATA pData); 814 830 /** Pointer to a FNSHAREDCLIPBOARDURITRANSFERCANCELED function. */ … … 831 847 /** Saved user pointer. */ 832 848 void *pvUser; 849 /** Function pointer, called when the transfer is going to be prepared. */ 850 PFNSHAREDCLIPBOARDURITRANSFERPREPARE pfnTransferPrepare; 833 851 /** Function pointer, called when the transfer has been started. */ 834 852 PFNSHAREDCLIPBOARDURITRANSFERSTARTED pfnTransferStarted; 853 /** Function pointer, called when reading / writing meta data is complete. */ 854 PFNSHAREDCLIPBOARDURIMETADATACOMPLETE pfnMetaDataComplete; 835 855 /** Function pointer, called when the transfer is complete. */ 836 856 PFNSHAREDCLIPBOARDURITRANSFERCOMPLETE pfnTransferComplete; … … 933 953 SharedClipboardURIObject *SharedClipboardURITransferGetObject(PSHAREDCLIPBOARDURITRANSFER pTransfer, uint64_t uIdx); 934 954 int SharedClipboardURITransferRun(PSHAREDCLIPBOARDURITRANSFER pTransfer, bool fAsync); 935 void SharedClipboardURITransferSetCallbacks(PSHAREDCLIPBOARDURITRANSFER pTransfer, PSHAREDCLIPBOARDURITRANSFERCALLBACKS pCallbacks); 955 void SharedClipboardURITransferSetCallbacks(PSHAREDCLIPBOARDURITRANSFER pTransfer, 956 PSHAREDCLIPBOARDURITRANSFERCALLBACKS pCallbacks); 936 957 937 958 int SharedClipboardURITransferMetaDataAdd(PSHAREDCLIPBOARDURITRANSFER pTransfer, const void *pvMeta, uint32_t cbMeta); 938 959 bool SharedClipboardURITransferMetaDataIsComplete(PSHAREDCLIPBOARDURITRANSFER pTransfer); 939 int SharedClipboardURITransferMetaGet(PSHAREDCLIPBOARDURITRANSFER pTransfer, const void *pvMeta, uint32_t cbMeta);940 960 int SharedClipboardURITransferMetaDataRead(PSHAREDCLIPBOARDURITRANSFER pTransfer, uint32_t *pcbRead); 941 961 int SharedClipboardURITransferMetaDataWrite(PSHAREDCLIPBOARDURITRANSFER pTransfer, uint32_t *pcbWritten); -
trunk/include/VBox/GuestHost/SharedClipboard-win.h
r79267 r79299 216 216 217 217 int copyToHGlobal(const void *pvData, size_t cbData, UINT fFlags, HGLOBAL *phGlobal); 218 int createFileGroupDescriptorFromURIList(const SharedClipboardURIList &URIList, bool fUnicode, HGLOBAL *phGlobal); 218 int createFileGroupDescriptorFromTransfer(PSHAREDCLIPBOARDURITRANSFER pTransfer, 219 bool fUnicode, HGLOBAL *phGlobal); 219 220 220 221 bool lookupFormatEtc(LPFORMATETC pFormatEtc, ULONG *puIndex); 221 222 void registerFormat(LPFORMATETC pFormatEtc, CLIPFORMAT clipFormat, TYMED tyMed = TYMED_HGLOBAL, 222 223 LONG lindex = -1, DWORD dwAspect = DVASPECT_CONTENT, DVTARGETDEVICE *pTargetDevice = NULL); 224 225 protected: /* URI transfer callbacks */ 226 227 static DECLCALLBACK(void) onMetaDataCompleteCallback(PSHAREDCLIPBOARDURITRANSFERCALLBACKDATA pData); 223 228 224 229 protected: … … 232 237 IStream *m_pStream; 233 238 ULONG m_uObjIdx; 239 /** Event being triggered when reading the meta data has been completed.*/ 240 RTSEMEVENT m_EventMetaDataComplete; 234 241 }; 235 242 -
trunk/include/VBox/HostServices/VBoxClipboardSvc.h
r79267 r79299 449 449 #ifdef VBOX_WITH_SHARED_CLIPBOARD_URI_LIST 450 450 int VBoxSvcClipboardURIReadDataHdr(uint32_t cParms, VBOXHGCMSVCPARM paParms[], PVBOXCLIPBOARDDATAHDR pDataHdr); 451 int VBoxSvcClipboardURIWriteDataHdr(uint32_t cParms, VBOXHGCMSVCPARM paParms[], PVBOXCLIPBOARDDATAHDR pDataHdr); 451 452 int VBoxSvcClipboardURIReadDataChunk(uint32_t cParms, VBOXHGCMSVCPARM paParms[], PVBOXCLIPBOARDDATACHUNK pDataChunk); 453 int VBoxSvcClipboardURIWriteDataChunk(uint32_t cParms, VBOXHGCMSVCPARM paParms[], PVBOXCLIPBOARDDATACHUNK pDataChunk); 452 454 int VBoxSvcClipboardURIReadDir(uint32_t cParms, VBOXHGCMSVCPARM paParms[], PVBOXCLIPBOARDDIRDATA pDirData); 455 int VBoxSvcClipboardURIWriteDir(uint32_t cParms, VBOXHGCMSVCPARM paParms[], PVBOXCLIPBOARDDIRDATA pDirData); 453 456 int VBoxSvcClipboardURIReadFileHdr(uint32_t cParms, VBOXHGCMSVCPARM paParms[], PVBOXCLIPBOARDFILEHDR pFileHdr); 457 int VBoxSvcClipboardURIWriteFileHdr(uint32_t cParms, VBOXHGCMSVCPARM paParms[], PVBOXCLIPBOARDFILEHDR pFileHdr); 454 458 int VBoxSvcClipboardURIReadFileData(uint32_t cParms, VBOXHGCMSVCPARM paParms[], PVBOXCLIPBOARDFILEDATA pFileData); 459 int VBoxSvcClipboardURIWriteFileData(uint32_t cParms, VBOXHGCMSVCPARM paParms[], PVBOXCLIPBOARDFILEDATA pFileData); 455 460 #endif 456 461
Note:
See TracChangeset
for help on using the changeset viewer.