Changeset 56909 in vbox for trunk/include/VBox/GuestHost
- Timestamp:
- Jul 10, 2015 6:09:14 AM (10 years ago)
- svn:sync-xref-src-repo-rev:
- 101596
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/include/VBox/GuestHost/DragAndDrop.h
r56903 r56909 177 177 178 178 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(); } 181 181 void RemoveFirst(void); 182 182 int RootFromURIData(const void *pvData, size_t cbData, uint32_t fFlags); 183 183 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; } 187 187 188 188 protected: … … 196 196 * Note: All paths are kept internally as UNIX paths for 197 197 * 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; 201 203 /** Total number of all URI objects. */ 202 uint32_t m_cTotal;204 uint32_t m_cTotal; /** @todo Really needed? m_lstTree.size()? */ 203 205 /** Total size of all URI objects, that is, the file 204 206 * size of all objects (in bytes). */ 205 size_t m_cbTotal;207 size_t m_cbTotal; 206 208 }; 207 209 #endif /* ___VBox_GuestHost_DragAndDrop_h */
Note:
See TracChangeset
for help on using the changeset viewer.