VirtualBox

Ignore:
Timestamp:
Aug 11, 2020 9:36:37 AM (4 years ago)
Author:
vboxsync
Message:

DnD: Lots of documentation.

Location:
trunk/src/VBox/GuestHost/DragAndDrop
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/GuestHost/DragAndDrop/DnDDroppedFiles.cpp

    r85456 r85681  
    4040
    4141
     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 */
    4248static int dndDroppedFilesInitInternal(PDNDDROPPEDFILES pDF)
    4349{
     
    5258}
    5359
     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 */
    5467int DnDDroppedFilesInitEx(PDNDDROPPEDFILES pDF,
    5568                          const char *pszPath, DNDURIDROPPEDFILEFLAGS fFlags /* = DNDURIDROPPEDFILE_FLAGS_NONE */)
     
    6275}
    6376
     77/**
     78 * Initializes a DnD Dropped Files struct.
     79 *
     80 * @returns VBox status code.
     81 * @param   pDF                 DnD Dropped Files to initialize.
     82 */
    6483int DnDDroppedFilesInit(PDNDDROPPEDFILES pDF)
    6584{
     
    6786}
    6887
     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 */
    6996void DnDDroppedFilesDestroy(PDNDDROPPEDFILES pDF)
    7097{
     
    78105
    79106/**
    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.
    83111 * @param   pszFile             Path of file entry to add.
    84112 */
     
    103131
    104132/**
    105  * Adds a directory reference to a dropped files directory.
     133 * Adds a directory reference to a Dropped Files directory.
     134 *
    106135 * Note: This does *not* (recursively) add sub entries.
    107136 *
    108137 * @returns VBox status code.
     138 * @param   pDF                 DnD Dropped Files to add directory to.
    109139 * @param   pszDir              Path of directory entry to add.
    110140 */
     
    132162 *
    133163 * @returns VBox status code.
     164 * @param   pDF                 DnD Dropped Files to close.
    134165 */
    135166static int dndDroppedFilesCloseInternal(PDNDDROPPEDFILES pDF)
     
    153184 *
    154185 * @returns VBox status code.
     186 * @param   pDF                 DnD Dropped Files to close.
    155187 */
    156188int DnDDroppedFilesClose(PDNDDROPPEDFILES pDF)
     
    163195 *
    164196 * @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.
    165198 */
    166199const char *DnDDroppedFilesGetDirAbs(PDNDDROPPEDFILES pDF)
     
    173206 *
    174207 * @returns \c true if open, \c false if not.
     208 * @param   pDF                 DnD Dropped Files to return open status for.
    175209 */
    176210bool DnDDroppedFilesIsOpen(PDNDDROPPEDFILES pDF)
     
    183217 *
    184218 * @returns VBox status code.
     219 * @param   pDF                 DnD Dropped Files to open.
    185220 * @param   pszPath             Absolute path where to create the dropped files directory.
    186221 * @param   fFlags              Dropped files flags to use for this directory.
     
    259294 *
    260295 * @returns VBox status code.
     296 * @param   pDF                 DnD Dropped Files to open.
    261297 * @param   fFlags              Dropped files flags to use for this directory.
    262298 */
     
    278314}
    279315
     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 */
    280321static void dndDroppedFilesEntryFree(PDNDDROPPEDFILESENTRY pEntry)
    281322{
     
    287328}
    288329
     330/**
     331 * Resets an internal DnD Dropped Files list.
     332 *
     333 * @param   pListAnchor         Pointer to list (anchor) to reset.
     334 */
    289335static void dndDroppedFilesResetList(PRTLISTANCHOR pListAnchor)
    290336{
     
    299345 *
    300346 * @returns VBox status code.
     347 * @param   pDF                 DnD Dropped Files to reset.
    301348 * @param   fDelete             Whether to physically delete the directory and its content
    302349 *                              or just clear the internal references.
     
    326373 *
    327374 * @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.
    328376 */
    329377int DnDDroppedFilesReopen(PDNDDROPPEDFILES pDF)
     
    340388 *
    341389 * @returns VBox status code.
     390 * @param   pDF                 DnD Dropped Files to roll back.
    342391 */
    343392int DnDDroppedFilesRollback(PDNDDROPPEDFILES pDF)
  • trunk/src/VBox/GuestHost/DragAndDrop/DnDMIME.cpp

    r85371 r85681  
    2626
    2727
     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 */
    2835bool DnDMIMEHasFileURLs(const char *pcszFormat, size_t cchFormatMax)
    2936{
     
    3340}
    3441
     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 */
    3549bool DnDMIMENeedsDropDir(const char *pcszFormat, size_t cchFormatMax)
    3650{
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