VirtualBox

Changeset 50561 in vbox for trunk/include


Ignore:
Timestamp:
Feb 24, 2014 9:07:22 PM (11 years ago)
Author:
vboxsync
Message:

DnD: Update, bugfixes.

Location:
trunk/include/VBox
Files:
4 edited

Legend:

Unmodified
Added
Removed
  • trunk/include/VBox/GuestHost/DragAndDrop.h

    r50508 r50561  
    5656public:
    5757
    58     RTCString GetSourcePath(void) const { return m_strSrcPath; }
    59     RTCString GetDestPath(void) const { return m_strDstPath; }
     58    const RTCString &GetSourcePath(void) const { return m_strSrcPath; }
     59    const RTCString &GetDestPath(void) const { return m_strDstPath; }
    6060    uint32_t GetMode(void) const { return m_fMode; }
    6161    uint64_t GetSize(void) const { return m_cbSize; }
     
    110110    void RemoveFirst(void);
    111111    int RootFromURIData(const void *pvData, size_t cbData, uint32_t fFlags);
    112     RTCString RootToString(const RTCString &strBasePath = "");
     112    RTCString RootToString(const RTCString &strBasePath = "", const RTCString &strSeparator = "\r\n");
    113113    size_t RootCount(void) { return m_lstRoot.size(); }
    114114    size_t TotalBytes(void) { return m_cbTotal; }
  • trunk/include/VBox/HostServices/DragAndDropSvc.h

    r50508 r50561  
    7373
    7474    HOST_DND_HG_EVT_ENTER              = 200,
    75     HOST_DND_HG_EVT_MOVE,
    76     HOST_DND_HG_EVT_LEAVE,
    77     HOST_DND_HG_EVT_DROPPED,
    78     HOST_DND_HG_EVT_CANCEL,
     75    HOST_DND_HG_EVT_MOVE               = 201,
     76    HOST_DND_HG_EVT_LEAVE              = 202,
     77    HOST_DND_HG_EVT_DROPPED            = 203,
     78    HOST_DND_HG_EVT_CANCEL             = 204,
    7979    /** Gets the actual MIME data, based on
    8080     *  the format(s) specified by HOST_DND_HG_EVT_ENTER. */
    81     HOST_DND_HG_SND_DATA,
     81    HOST_DND_HG_SND_DATA               = 205,
    8282    /** Sent when the actual buffer for HOST_DND_HG_SND_DATA
    8383     *  was too small, issued by the DnD host service. */
    84     HOST_DND_HG_SND_MORE_DATA,
     84    HOST_DND_HG_SND_MORE_DATA          = 206,
    8585    /** Directory entry to be handled on the guest. */
    86     HOST_DND_HG_SND_DIR,
     86    HOST_DND_HG_SND_DIR                = 207,
    8787    /** File entry to be handled on the guest. */
    88     HOST_DND_HG_SND_FILE,
     88    HOST_DND_HG_SND_FILE               = 208,
    8989
    9090    /*
     
    101101
    102102    HOST_DND_GH_RECV_DIR               = 650,
    103     HOST_DND_GH_RECV_FILE
     103    HOST_DND_GH_RECV_FILE              = 670
    104104};
    105105
     
    124124    /** The guest requests the actual DnD data to be sent
    125125     *  from the host. */
    126     GUEST_DND_HG_REQ_DATA,
    127     GUEST_DND_HG_EVT_PROGRESS,
     126    GUEST_DND_HG_REQ_DATA              = 401,
     127    GUEST_DND_HG_EVT_PROGRESS          = 402,
    128128
    129129    /* G->H */
     
    135135    GUEST_DND_GH_ACK_PENDING           = 500,
    136136    /**
    137      * Sends data of the requsted MIME type to the host. There can
     137     * Sends data of the requested format to the host. There can
    138138     * be more than one message if the actual data does not fit
    139139     * into one.
    140140     */
    141     GUEST_DND_GH_SND_DATA,
    142     GUEST_DND_GH_EVT_ERROR,
     141    GUEST_DND_GH_SND_DATA              = 501,
     142    GUEST_DND_GH_EVT_ERROR             = 502,
    143143
    144144    GUEST_DND_GH_SND_DIR               = 700,
    145     GUEST_DND_GH_SND_FILE
     145    GUEST_DND_GH_SND_FILE              = 701
    146146};
    147147
     
    376376    /** Total bytes to send. This can be more than
    377377     *  the data block specified in pvData above, e.g.
    378      *  when sending over file objects. */
     378     *  when sending over file objects afterwards. */
    379379    HGCMFunctionParameter cbTotalBytes; /* OUT uint32_t */
    380380} VBOXDNDGHSENDDATAMSG;
     
    417417
    418418    /**
    419      * GH Cancel Data event.
    420      *
    421      * Used by:
    422      * GUEST_DND_GH_EVT_CANCEL
     419     * GH Error event.
     420     *
     421     * Used by:
     422     * GUEST_DND_GH_EVT_ERROR
    423423     */
    424424    HGCMFunctionParameter uRC;          /* OUT uint32_t */
  • trunk/include/VBox/HostServices/Service.h

    r44529 r50561  
    4343public:
    4444    Message(uint32_t uMsg, uint32_t cParms, VBOXHGCMSVCPARM aParms[])
    45       : m_uMsg(0)
    46       , m_cParms(0)
    47       , m_paParms(0)
     45        : m_uMsg(0)
     46        , m_cParms(0)
     47        , m_paParms(0)
    4848    {
    4949        setData(uMsg, cParms, aParms);
  • trunk/include/VBox/VBoxGuestLib.h

    r50508 r50561  
    724724VBGLR3DECL(int)     VbglR3DnDGHAcknowledgePending(uint32_t u32ClientId, uint32_t uDefAction, uint32_t uAllActions, const char* pcszFormats);
    725725VBGLR3DECL(int)     VbglR3DnDGHSendData(uint32_t u32ClientId, const char *pszFormat, void *pvData, uint32_t cbData);
    726 VBGLR3DECL(int)     VbglR3DnDGHErrorEvent(uint32_t u32ClientId, int rcOp);
     726VBGLR3DECL(int)     VbglR3DnDGHSendError(uint32_t u32ClientId, int rcOp);
    727727#  endif /* VBOX_WITH_DRAG_AND_DROP_GH */
    728728/** @} */
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