VirtualBox

Ignore:
Timestamp:
Sep 28, 2018 3:08:24 PM (6 years ago)
Author:
vboxsync
Message:

DnD: Renaming for DnDURIObject / DnDURIList classes, some typedefs to distinguish flags better. No functional changes.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/Main/include/GuestDnDPrivate.h

    r74439 r74526  
    66
    77/*
    8  * Copyright (C) 2011-2017 Oracle Corporation
     8 * Copyright (C) 2011-2018 Oracle Corporation
    99 *
    1010 * This file is part of VirtualBox Open Source Edition (OSE), as
     
    166166    int fromURIList(const DnDURIList &lstURI)
    167167    {
    168         return fromString(lstURI.RootToString());
     168        return fromString(lstURI.GetRootEntries());
    169169    }
    170170
     
    390390public:
    391391
    392     int createIntermediate(DnDURIObject::Type enmType = DnDURIObject::Unknown)
     392    int createIntermediate(DnDURIObject::Type enmType = DnDURIObject::Type_Unknown)
    393393    {
    394394        reset();
     
    564564        switch (Obj.GetType())
    565565        {
    566             case DnDURIObject::Directory:
    567             case DnDURIObject::File:
     566            case DnDURIObject::Type_Directory:
     567            case DnDURIObject::Type_File:
    568568                rc = VINF_SUCCESS;
    569569                break;
     
    647647                rc = lstURI.AppendURIPathsFromList(lstURIOrg, DNDURILIST_FLAGS_KEEP_OPEN);
    648648                if (RT_SUCCESS(rc))
    649                     cObjToProcess = lstURI.TotalCount();
     649                    cObjToProcess = lstURI.GetTotalCount();
    650650            }
    651651        }
     
    659659        LogFlowFuncEnter();
    660660
    661         int rc = lstURI.RootFromURIData(Data.getData(), Data.getSize(), 0 /* uFlags */);
     661        int rc = lstURI.SetFromURIData(Data.getData(), Data.getSize(), 0 /* uFlags */);
    662662        if (RT_SUCCESS(rc))
    663663        {
    664             const size_t cRootCount = lstURI.RootCount();
     664            const size_t cRootCount = lstURI.GetRootCount();
    665665            LogFlowFunc(("cRootCount=%zu, cObjToProcess=%RU64\n", cRootCount, cObjToProcess));
    666666            if (cRootCount > cObjToProcess)
     
    675675        const char *pszDroppedFilesDir = droppedFiles.GetDirAbs();
    676676
    677         Utf8Str strURIs = lstURI.RootToString(RTCString(pszDroppedFilesDir));
     677        Utf8Str strURIs = lstURI.GetRootEntries(RTCString(pszDroppedFilesDir));
    678678        size_t cbData = strURIs.length();
    679679
    680         LogFlowFunc(("%zu root URIs (%zu bytes)\n", lstURI.RootCount(), cbData));
     680        LogFlowFunc(("%zu root URIs (%zu bytes)\n", lstURI.GetRootCount(), cbData));
    681681
    682682        int rc;
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