VirtualBox

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


Ignore:
Timestamp:
May 20, 2015 11:18:14 AM (10 years ago)
Author:
vboxsync
Message:

DnD: Fixed hang when reporting host errors such as inaccessible (locked) files.

Location:
trunk/src/VBox/Main/include
Files:
3 edited

Legend:

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

    r55640 r55963  
    5050    int Reset(void);
    5151
    52     int Notify(int rc);
     52    int Notify(int rc = VINF_SUCCESS);
    5353
    5454    int Result(void) const { return mRc; }
     
    367367    bool isProgressCanceled(void) const;
    368368    int setCallback(uint32_t uMsg, PFNGUESTDNDCALLBACK pfnCallback, void *pvUser = NULL);
    369     int setProgress(unsigned uPercentage, uint32_t uState, int rcOp = VINF_SUCCESS);
     369    int setProgress(unsigned uPercentage, uint32_t uState, int rcOp = VINF_SUCCESS, const Utf8Str &strMsg = "");
    370370    HRESULT resetProgress(const ComObjPtr<Guest>& pParent);
    371371    HRESULT queryProgressTo(IProgress **ppProgress);
     
    377377    int onDispatch(uint32_t u32Function, void *pvParms, uint32_t cbParms);
    378378    /** @}  */
    379 
    380 public:
    381 
    382     Utf8Str errorToString(const ComObjPtr<Guest>& pGuest, int guestRc);
    383379
    384380protected:
  • trunk/src/VBox/Main/include/GuestDnDSourceImpl.h

    r55549 r55963  
    7474protected:
    7575
     76    static Utf8Str i_guestErrorToString(int guestRc);
     77    static Utf8Str i_hostErrorToString(int hostRc);
     78
     79    /** @name Thread callbacks.
     80     * @{ */
    7681    static DECLCALLBACK(int) i_receiveDataThread(RTTHREAD Thread, void *pvUser);
     82    /** @}  */
    7783
    7884    /** @name Callbacks for dispatch handler.
  • trunk/src/VBox/Main/include/GuestDnDTargetImpl.h

    r55571 r55963  
    6868protected:
    6969
     70    static Utf8Str i_guestErrorToString(int guestRc);
     71    static Utf8Str i_hostErrorToString(int hostRc);
     72
     73    /** @name Thread callbacks.
     74     * @{ */
    7075    static DECLCALLBACK(int) i_sendDataThread(RTTHREAD Thread, void *pvUser);
     76    /** @}  */
     77
     78    /** @name Callbacks for dispatch handler.
     79     * @{ */
    7180    static DECLCALLBACK(int) i_sendURIDataCallback(uint32_t uMsg, void *pvParms, size_t cbParms, void *pvUser);
     81    /** @}  */
    7282
    7383protected:
Note: See TracChangeset for help on using the changeset viewer.

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