VirtualBox

Changeset 56909 in vbox for trunk/include/VBox/GuestHost


Ignore:
Timestamp:
Jul 10, 2015 6:09:14 AM (10 years ago)
Author:
vboxsync
svn:sync-xref-src-repo-rev:
101596
Message:

DnD: Changed DnDURIList's allocation scheme for stored DnDURIObject objects.

File:
1 edited

Legend:

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

    r56903 r56909  
    177177
    178178    void Clear(void);
    179     DnDURIObject &First(void) { return m_lstTree.first(); }
    180     bool IsEmpty(void) { return m_lstTree.isEmpty(); }
     179    DnDURIObject *First(void) { return m_lstTree.first(); }
     180    bool IsEmpty(void) const { return m_lstTree.isEmpty(); }
    181181    void RemoveFirst(void);
    182182    int RootFromURIData(const void *pvData, size_t cbData, uint32_t fFlags);
    183183    RTCString RootToString(const RTCString &strPathBase = "", const RTCString &strSeparator = "\r\n");
    184     size_t RootCount(void) { return m_lstRoot.size(); }
    185     uint32_t TotalCount(void) { return m_cTotal; }
    186     size_t TotalBytes(void) { return m_cbTotal; }
     184    size_t RootCount(void) const { return m_lstRoot.size(); }
     185    uint32_t TotalCount(void) const { return m_cTotal; }
     186    size_t TotalBytes(void) const { return m_cbTotal; }
    187187
    188188protected:
     
    196196     *  Note: All paths are kept internally as UNIX paths for
    197197     *        easier conversion/handling!  */
    198     RTCList<RTCString>     m_lstRoot;
    199     /** List of all URI objects added. */
    200     RTCList<DnDURIObject>  m_lstTree;
     198    RTCList<RTCString>      m_lstRoot;
     199    /** List of all URI objects added. The list's content
     200     *  might vary depending on how the objects are being
     201     *  added (lazy or not). */
     202    RTCList<DnDURIObject *> m_lstTree;
    201203    /** Total number of all URI objects. */
    202     uint32_t               m_cTotal;
     204    uint32_t                m_cTotal; /** @todo Really needed? m_lstTree.size()? */
    203205    /** Total size of all URI objects, that is, the file
    204206     *  size of all objects (in bytes). */
    205     size_t                 m_cbTotal;
     207    size_t                  m_cbTotal;
    206208};
    207209#endif /* ___VBox_GuestHost_DragAndDrop_h */
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