VirtualBox

Changeset 37778 in vbox


Ignore:
Timestamp:
Jul 5, 2011 12:10:49 PM (14 years ago)
Author:
vboxsync
svn:sync-xref-src-repo-rev:
72654
Message:

Frontends/VBoxManage: show temp eject config

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/Frontends/VBoxManage/VBoxManageInfo.cpp

    r37695 r37778  
    778778                                             mediumAttach.asOutParam());
    779779                BOOL fIsEjected = FALSE;
     780                BOOL fTempEject = FALSE;
    780781                DeviceType_T devType = DeviceType_Null;
    781782                if (mediumAttach)
    782783                {
     784                    mediumAttach->COMGETTER(TemporaryEject)(&fTempEject);
    783785                    mediumAttach->COMGETTER(IsEjected)(&fIsEjected);
    784786                    mediumAttach->COMGETTER(Type)(&devType);
     
    806808                                     fPassthrough ? "on" : "off");
    807809                        if (devType == DeviceType_DVD)
     810                        {
     811                            RTPrintf("\"%lS-tempeject\"=\"%s\"\n", storageCtlName.raw(),
     812                                     fTempEject ? "on" : "off");
    808813                            RTPrintf("\"%lS-IsEjected\"=\"%s\"\n", storageCtlName.raw(),
    809814                                     fIsEjected ? "on" : "off");
     815                        }
    810816                    }
    811817                    else
     
    816822                        if (fPassthrough)
    817823                            RTPrintf(" (passthrough enabled)");
     824                        if (fTempEject)
     825                            RTPrintf(" (temp eject)");
    818826                        if (fIsEjected)
    819827                            RTPrintf(" (ejected)");
     
    833841                    {
    834842                        RTPrintf("%lS (%d, %d): Empty", storageCtlName.raw(), i, k);
     843                        if (fTempEject)
     844                            RTPrintf(" (temp eject)");
    835845                        if (fIsEjected)
    836846                            RTPrintf(" (ejected)");
Note: See TracChangeset for help on using the changeset viewer.

© 2025 Oracle Support Privacy / Do Not Sell My Info Terms of Use Trademark Policy Automated Access Etiquette