VirtualBox

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


Ignore:
Timestamp:
Oct 26, 2022 2:24:59 PM (2 years ago)
Author:
vboxsync
Message:

Main/Guest Control: Added GuestBase::fsObjTypeToStr(). ​bugref:10286

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

Legend:

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

    r97276 r97303  
    12911291
    12921292    static FsObjType_T fileModeToFsObjType(RTFMODE fMode);
     1293    static const char *fsObjTypeToStr(FsObjType_T enmType);
    12931294    static Utf8Str getErrorAsString(const Utf8Str &strAction, const GuestErrorInfo& guestErrorInfo);
    12941295    static Utf8Str getErrorAsString(const GuestErrorInfo &guestErrorInfo);
  • trunk/src/VBox/Main/src-client/GuestCtrlPrivate.cpp

    r97276 r97303  
    13981398}
    13991399
     1400/**
     1401 * Converts a FsObjType_T to a human-readable string.
     1402 *
     1403 * @returns Human-readable string of FsObjType_T.
     1404 * @param   enmType             FsObjType_T to convert.
     1405 */
     1406/* static */
     1407const char *GuestBase::fsObjTypeToStr(FsObjType_T enmType)
     1408{
     1409    switch (enmType)
     1410    {
     1411        case FsObjType_Directory: return "directory";
     1412        case FsObjType_Symlink:   return "symbolic link";
     1413        case FsObjType_File:      return "file";
     1414        default:                  break;
     1415    }
     1416
     1417    return "unknown";
     1418}
     1419
    14001420GuestObject::GuestObject(void)
    14011421    : mSession(NULL),
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