VirtualBox

Changeset 98667 in vbox for trunk/src/VBox/Main


Ignore:
Timestamp:
Feb 21, 2023 9:21:27 AM (2 years ago)
Author:
vboxsync
Message:

Guest Control: Implemented GuestSession::i_directoryCreate() + GuestSession::i_fileRemove(). bugref:9783

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

Legend:

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

    r98666 r98667  
    489489    AssertPtrReturn(pcszWhat, "");
    490490
     491#define CASE_MSG(a_iRc, ...) \
     492        case a_iRc: strErr.printf(__VA_ARGS__); break;
     493
    491494    Utf8Str strErr;
    492495    switch (vrcGuest)
    493496    {
    494 #define CASE_MSG(a_iRc, ...) \
    495         case a_iRc: strErr.printf(__VA_ARGS__); break;
    496         CASE_MSG(VERR_CANT_CREATE  , tr("Access to guest directory \"%s\" is denied"), pcszWhat);
    497         CASE_MSG(VERR_DIR_NOT_EMPTY, tr("Guest directory \"%s\" is not empty"), pcszWhat);
     497        CASE_MSG(VERR_ACCESS_DENIED,  tr("Access to guest directory \"%s\" is denied"), pcszWhat);
     498        CASE_MSG(VERR_ALREADY_EXISTS, tr("Guest directory \"%s\" already exists"), pcszWhat);
     499        CASE_MSG(VERR_CANT_CREATE,    tr("Guest directory \"%s\" cannot be created"), pcszWhat);
     500        CASE_MSG(VERR_DIR_NOT_EMPTY,  tr("Guest directory \"%s\" is not empty"), pcszWhat);
    498501        default:
    499502            strErr.printf(tr("Error %Rrc for guest directory \"%s\" occurred\n"), vrcGuest, pcszWhat);
  • trunk/src/VBox/Main/src-client/GuestSessionImpl.cpp

    r98666 r98667  
    983983            if (RT_SUCCESS(vrc))
    984984            {
    985                 /// @todo To be implemented
     985                // Nothing to do here.
    986986            }
     987            else if (pEvent->HasGuestError() && pvrcGuest)
     988                *pvrcGuest = pEvent->GuestResult();
    987989        }
    988990    }
     
    17221724            if (RT_SUCCESS(vrc))
    17231725            {
    1724                 /// @todo To be implemented
     1726                // Nothing to do here.
    17251727            }
     1728            else if (pEvent->HasGuestError() && pvrcGuest)
     1729                *pvrcGuest = pEvent->GuestResult();
    17261730        }
    17271731    }
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