VirtualBox

Changeset 100606 in vbox for trunk/src/VBox/Main/include


Ignore:
Timestamp:
Jul 17, 2023 4:32:44 PM (20 months ago)
Author:
vboxsync
svn:sync-xref-src-repo-rev:
158436
Message:

Shared Clipboard/Main + FE/Qt: Added clipboard error propagation from the host service via a newly added ClipboardErrorEvent. For that we now have a generic (private) Shared Clipboard handling class within Main, which does the HGCM service callback dispatching. The VRDP console object, which was in charge for this before, now is daisy-chained to this new class as a service extension. FE/QT in turn then shows the error(s) via the notification center. bugref:9437

Location:
trunk/src/VBox/Main/include
Files:
1 added
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/Main/include/ConsoleImpl.h

    r100038 r100606  
    220220    HRESULT i_onCPUChange(ULONG aCPU, BOOL aRemove);
    221221    HRESULT i_onCPUExecutionCapChange(ULONG aExecutionCap);
     222    HRESULT i_onClipboardError(const Utf8Str &aId, const Utf8Str &aErrMsg, LONG aRc);
    222223    HRESULT i_onClipboardModeChange(ClipboardMode_T aClipboardMode);
    223224    HRESULT i_onClipboardFileTransferModeChange(bool aEnabled);
     
    11901191#endif
    11911192
     1193#ifdef VBOX_WITH_SHARED_CLIPBOARD
     1194# ifdef VBOX_WITH_SHARED_CLIPBOARD_TRANSFERS
     1195    /* Service extension for the Shared Clipboard HGCM service. */
     1196    HGCMSVCEXTHANDLE                    m_hHgcmSvcExtShCl;
     1197# endif
     1198#endif
     1199
    11921200#ifdef VBOX_WITH_DRAG_AND_DROP
    1193     HGCMSVCEXTHANDLE m_hHgcmSvcExtDragAndDrop;
    1194 #endif
    1195 
     1201    /* Service extension for the Drag'n Drop HGCM service. */
     1202    HGCMSVCEXTHANDLE                    m_hHgcmSvcExtDragAndDrop;
     1203#endif
    11961204    /** Pointer to the progress object of a live cancelable task.
    11971205     *
  • trunk/src/VBox/Main/include/ConsoleVRDPServer.h

    r98296 r100606  
    232232
    233233    int mcClipboardRefs;
    234     HGCMSVCEXTHANDLE mhClipboard;
    235234    PFNVRDPCLIPBOARDEXTCALLBACK mpfnClipboardCallback;
    236235
Note: See TracChangeset for help on using the changeset viewer.

© 2025 Oracle Support Privacy / Do Not Sell My Info Terms of Use Trademark Policy Automated Access Etiquette