VirtualBox

Ignore:
Timestamp:
Jun 29, 2020 9:09:03 AM (4 years ago)
Author:
vboxsync
Message:

DnD/DroppedFiles: Docs, a bit of renaming.

File:
1 edited

Legend:

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

    r82968 r84983  
    5151}
    5252
     53/**
     54 * Adds a file reference to a dropped files directory.
     55 *
     56 * @returns VBox status code.
     57 * @param   pszFile             Path of file entry to add.
     58 */
    5359int DnDDroppedFiles::AddFile(const char *pszFile)
    5460{
     
    6066}
    6167
     68/**
     69 * Adds a directory reference to a dropped files directory.
     70 * Note: This does *not* (recursively) add sub entries.
     71 *
     72 * @returns VBox status code.
     73 * @param   pszDir              Path of directory entry to add.
     74 */
    6275int DnDDroppedFiles::AddDir(const char *pszDir)
    6376{
     
    6982}
    7083
     84/**
     85 * Closes the dropped files directory handle, internal version.
     86 *
     87 * @returns VBox status code.
     88 */
    7189int DnDDroppedFiles::closeInternal(void)
    7290{
     
    85103}
    86104
     105/**
     106 * Closes the dropped files directory handle.
     107 *
     108 * @returns VBox status code.
     109 */
    87110int DnDDroppedFiles::Close(void)
    88111{
     
    90113}
    91114
     115/**
     116 * Returns the absolute path of the dropped files directory.
     117 *
     118 * @returns Pointer to absolute path of the dropped files directory.
     119 */
    92120const char *DnDDroppedFiles::GetDirAbs(void) const
    93121{
     
    95123}
    96124
     125/**
     126 * Returns whether the dropped files directory has been opened or not.
     127 *
     128 * @returns \c true if open, \c false if not.
     129 */
    97130bool DnDDroppedFiles::IsOpen(void) const
    98131{
     
    100133}
    101134
     135/**
     136 * Opens (creates) the dropped files directory.
     137 *
     138 * @returns VBox status code.
     139 * @param   pszPath             Absolute path where to create the dropped files directory.
     140 * @param   fFlags              Dropped files flags to use for this directory.
     141 */
    102142int DnDDroppedFiles::OpenEx(const char *pszPath, DNDURIDROPPEDFILEFLAGS fFlags /* = DNDURIDROPPEDFILE_FLAGS_NONE */)
    103143{
     
    167207}
    168208
     209/**
     210 * Opens (creates) the dropped files directory in the system's temp directory.
     211 *
     212 * @returns VBox status code.
     213 * @param   fFlags              Dropped files flags to use for this directory.
     214 */
    169215int DnDDroppedFiles::OpenTemp(DNDURIDROPPEDFILEFLAGS fFlags /* = DNDURIDROPPEDFILE_FLAGS_NONE */)
    170216{
     
    184230}
    185231
    186 int DnDDroppedFiles::Reset(bool fRemoveDropDir)
     232/**
     233 * Resets a droppped files directory.
     234 *
     235 * @returns VBox status code.
     236 * @param   fDelete             Whether to physically delete the directory and its content
     237 *                              or just clear the internal references.
     238 */
     239int DnDDroppedFiles::Reset(bool fDelete)
    187240{
    188241    int rc = closeInternal();
    189242    if (RT_SUCCESS(rc))
    190243    {
    191         if (fRemoveDropDir)
     244        if (fDelete)
    192245        {
    193246            rc = Rollback();
     
    204257}
    205258
     259/**
     260 * Re-opens a droppes files directory.
     261 *
     262 * @returns VBox status code, or VERR_NOT_FOUND if the dropped files directory has not been opened before.
     263 */
    206264int DnDDroppedFiles::Reopen(void)
    207265{
     
    212270}
    213271
     272/**
     273 * Performs a rollback of a dropped files directory.
     274 * This cleans the directory by physically deleting all files / directories which have been added before.
     275 *
     276 * @returns VBox status code.
     277 */
    214278int DnDDroppedFiles::Rollback(void)
    215279{
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