VirtualBox

Changeset 71231 in vbox for trunk/src/VBox/Main/src-client


Ignore:
Timestamp:
Mar 6, 2018 10:08:58 AM (7 years ago)
Author:
vboxsync
Message:

Main/Guest Control: Renamed FsObjMoveFlags, DirectoryCopyFlags and FileOpenExFlags to FsObjMoveFlag, DirectoryCopyFlag and FileOpenExFlag accordingly to match the rest of the API.

Location:
trunk/src/VBox/Main/src-client
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/Main/src-client/GuestSessionImpl.cpp

    r71221 r71231  
    25912591
    25922592HRESULT GuestSession::directoryCopy(const com::Utf8Str &aSource, const com::Utf8Str &aDestination,
    2593                                     const std::vector<DirectoryCopyFlags_T> &aFlags, ComPtr<IProgress> &aProgress)
     2593                                    const std::vector<DirectoryCopyFlag_T> &aFlags, ComPtr<IProgress> &aProgress)
    25942594{
    25952595    RT_NOREF(aSource, aDestination, aFlags, aProgress);
     
    25982598
    25992599HRESULT GuestSession::directoryCopyFromGuest(const com::Utf8Str &aSource, const com::Utf8Str &aDestination,
    2600                                              const std::vector<DirectoryCopyFlags_T> &aFlags, ComPtr<IProgress> &aProgress)
     2600                                             const std::vector<DirectoryCopyFlag_T> &aFlags, ComPtr<IProgress> &aProgress)
    26012601{
    26022602    RT_NOREF(aSource, aDestination, aFlags, aProgress);
     
    26052605
    26062606HRESULT GuestSession::directoryCopyToGuest(const com::Utf8Str &aSource, const com::Utf8Str &aDestination,
    2607                                            const std::vector<DirectoryCopyFlags_T> &aFlags, ComPtr<IProgress> &aProgress)
     2607                                           const std::vector<DirectoryCopyFlag_T> &aFlags, ComPtr<IProgress> &aProgress)
    26082608{
    26092609    LogFlowThisFuncEnter();
     
    26182618        return setError(E_INVALIDARG, tr("Source directory \"%s\" does not exist"), aSource.c_str());
    26192619
    2620     uint32_t fFlags = DirectoryCopyFlags_None;
     2620    uint32_t fFlags = DirectoryCopyFlag_None;
    26212621    if (aFlags.size())
    26222622    {
     
    31313131{
    31323132    LogFlowThisFuncEnter();
    3133     const std::vector<FileOpenExFlags_T> EmptyFlags;
     3133    const std::vector<FileOpenExFlag_T> EmptyFlags;
    31343134    return fileOpenEx(aPath, aAccessMode, aOpenAction, FileSharingMode_All, aCreationMode, EmptyFlags, aFile);
    31353135}
     
    31373137HRESULT GuestSession::fileOpenEx(const com::Utf8Str &aPath, FileAccessMode_T aAccessMode, FileOpenAction_T aOpenAction,
    31383138                                 FileSharingMode_T aSharingMode, ULONG aCreationMode,
    3139                                  const std::vector<FileOpenExFlags_T> &aFlags, ComPtr<IGuestFile> &aFile)
     3139                                 const std::vector<FileOpenExFlag_T> &aFlags, ComPtr<IGuestFile> &aFile)
    31403140{
    31413141    LogFlowThisFuncEnter();
     
    32053205        fOpenEx = aFlags[i];
    32063206    if (fOpenEx)
    3207         return setError(E_INVALIDARG, tr("Unsupported FileOpenExFlags values in aFlags (%#x)"), fOpenEx);
     3207        return setError(E_INVALIDARG, tr("Unsupported FileOpenExFlag value(s) in aFlags (%#x)"), fOpenEx);
    32083208    openInfo.mfOpenEx = fOpenEx;
    32093209
     
    34223422
    34233423HRESULT GuestSession::fsObjMove(const com::Utf8Str &aSource, const com::Utf8Str &aDestination,
    3424                                 const std::vector<FsObjMoveFlags_T> &aFlags, ComPtr<IProgress> &aProgress)
     3424                                const std::vector<FsObjMoveFlag_T> &aFlags, ComPtr<IProgress> &aProgress)
    34253425{
    34263426    RT_NOREF(aSource, aDestination, aFlags, aProgress);
  • trunk/src/VBox/Main/src-client/GuestSessionImplTasks.cpp

    r71220 r71231  
    631631SessionTaskCopyDirTo::SessionTaskCopyDirTo(GuestSession *pSession,
    632632                                           const Utf8Str &strSource, const Utf8Str &strDest, const Utf8Str &strFilter,
    633                                            DirectoryCopyFlags_T enmDirCopyFlags)
     633                                           DirectoryCopyFlag_T enmDirCopyFlags)
    634634                                           : GuestSessionTask(pSession)
    635635                                           , mSource(strSource)
     
    797797    int rc = directoryCreate(mDest, DirectoryCreateFlag_None, uDirMode, fFollowSymlinks);
    798798    if (   rc == VWRN_ALREADY_EXISTS
    799         && !(mDirCopyFlags & DirectoryCopyFlags_CopyIntoExisting))
     799        && !(mDirCopyFlags & DirectoryCopyFlag_CopyIntoExisting))
    800800    {
    801801        setProgressErrorMsg(VBOX_E_IPRT_ERROR,
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