Changeset 85681 in vbox for trunk/src/VBox/GuestHost/DragAndDrop
- Timestamp:
- Aug 11, 2020 9:36:37 AM (4 years ago)
- Location:
- trunk/src/VBox/GuestHost/DragAndDrop
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/GuestHost/DragAndDrop/DnDDroppedFiles.cpp
r85456 r85681 40 40 41 41 42 /** 43 * Initializes a DnD Dropped Files struct, internal version. 44 * 45 * @returns VBox status code. 46 * @param pDF DnD Dropped Files to initialize. 47 */ 42 48 static int dndDroppedFilesInitInternal(PDNDDROPPEDFILES pDF) 43 49 { … … 52 58 } 53 59 60 /** 61 * Initializes a DnD Dropped Files struct, extended version. 62 * 63 * @returns VBox status code. 64 * @param pDF DnD Dropped Files to initialize. 65 * @param fFlags Dropped Files flags to use for initialization. 66 */ 54 67 int DnDDroppedFilesInitEx(PDNDDROPPEDFILES pDF, 55 68 const char *pszPath, DNDURIDROPPEDFILEFLAGS fFlags /* = DNDURIDROPPEDFILE_FLAGS_NONE */) … … 62 75 } 63 76 77 /** 78 * Initializes a DnD Dropped Files struct. 79 * 80 * @returns VBox status code. 81 * @param pDF DnD Dropped Files to initialize. 82 */ 64 83 int DnDDroppedFilesInit(PDNDDROPPEDFILES pDF) 65 84 { … … 67 86 } 68 87 88 /** 89 * Destroys a DnD Dropped Files struct. 90 * 91 * Note: This does *not* (physically) delete any added content. 92 * Make sure to call DnDDroppedFilesReset() then. 93 * 94 * @param pDF DnD Dropped Files to destroy. 95 */ 69 96 void DnDDroppedFilesDestroy(PDNDDROPPEDFILES pDF) 70 97 { … … 78 105 79 106 /** 80 * Adds a file reference to a dropped files directory. 81 * 82 * @returns VBox status code. 107 * Adds a file reference to a Dropped Files directory. 108 * 109 * @returns VBox status code. 110 * @param pDF DnD Dropped Files to add file to. 83 111 * @param pszFile Path of file entry to add. 84 112 */ … … 103 131 104 132 /** 105 * Adds a directory reference to a dropped files directory. 133 * Adds a directory reference to a Dropped Files directory. 134 * 106 135 * Note: This does *not* (recursively) add sub entries. 107 136 * 108 137 * @returns VBox status code. 138 * @param pDF DnD Dropped Files to add directory to. 109 139 * @param pszDir Path of directory entry to add. 110 140 */ … … 132 162 * 133 163 * @returns VBox status code. 164 * @param pDF DnD Dropped Files to close. 134 165 */ 135 166 static int dndDroppedFilesCloseInternal(PDNDDROPPEDFILES pDF) … … 153 184 * 154 185 * @returns VBox status code. 186 * @param pDF DnD Dropped Files to close. 155 187 */ 156 188 int DnDDroppedFilesClose(PDNDDROPPEDFILES pDF) … … 163 195 * 164 196 * @returns Pointer to absolute path of the dropped files directory. 197 * @param pDF DnD Dropped Files return absolute path of the dropped files directory for. 165 198 */ 166 199 const char *DnDDroppedFilesGetDirAbs(PDNDDROPPEDFILES pDF) … … 173 206 * 174 207 * @returns \c true if open, \c false if not. 208 * @param pDF DnD Dropped Files to return open status for. 175 209 */ 176 210 bool DnDDroppedFilesIsOpen(PDNDDROPPEDFILES pDF) … … 183 217 * 184 218 * @returns VBox status code. 219 * @param pDF DnD Dropped Files to open. 185 220 * @param pszPath Absolute path where to create the dropped files directory. 186 221 * @param fFlags Dropped files flags to use for this directory. … … 259 294 * 260 295 * @returns VBox status code. 296 * @param pDF DnD Dropped Files to open. 261 297 * @param fFlags Dropped files flags to use for this directory. 262 298 */ … … 278 314 } 279 315 316 /** 317 * Free's an internal DnD Dropped Files entry. 318 * 319 * @param pEntry Pointer to entry to free. The pointer will be invalid after calling. 320 */ 280 321 static void dndDroppedFilesEntryFree(PDNDDROPPEDFILESENTRY pEntry) 281 322 { … … 287 328 } 288 329 330 /** 331 * Resets an internal DnD Dropped Files list. 332 * 333 * @param pListAnchor Pointer to list (anchor) to reset. 334 */ 289 335 static void dndDroppedFilesResetList(PRTLISTANCHOR pListAnchor) 290 336 { … … 299 345 * 300 346 * @returns VBox status code. 347 * @param pDF DnD Dropped Files to reset. 301 348 * @param fDelete Whether to physically delete the directory and its content 302 349 * or just clear the internal references. … … 326 373 * 327 374 * @returns VBox status code, or VERR_NOT_FOUND if the dropped files directory has not been opened before. 375 * @param pDF DnD Dropped Files to re-open. 328 376 */ 329 377 int DnDDroppedFilesReopen(PDNDDROPPEDFILES pDF) … … 340 388 * 341 389 * @returns VBox status code. 390 * @param pDF DnD Dropped Files to roll back. 342 391 */ 343 392 int DnDDroppedFilesRollback(PDNDDROPPEDFILES pDF) -
trunk/src/VBox/GuestHost/DragAndDrop/DnDMIME.cpp
r85371 r85681 26 26 27 27 28 /** 29 * Returns whether a given MIME format contains file URLs we can work with or not. 30 * 31 * @returns \c true if the format contains file URLs, \c false if not. 32 * @param pcszFormat MIME format to check. 33 * @param cchFormatMax Maximum characters of MIME format to check. 34 */ 28 35 bool DnDMIMEHasFileURLs(const char *pcszFormat, size_t cchFormatMax) 29 36 { … … 33 40 } 34 41 42 /** 43 * Returns whether a given MIME format needs an own "Dropped Files" directory or not. 44 * 45 * @returns \c true if the format needs an own "Dropped Files" directory, \c false if not. 46 * @param pcszFormat MIME format to check. 47 * @param cchFormatMax Maximum characters of MIME format to check. 48 */ 35 49 bool DnDMIMENeedsDropDir(const char *pcszFormat, size_t cchFormatMax) 36 50 {
Note:
See TracChangeset
for help on using the changeset viewer.