VirtualBox

Changeset 39882 in vbox for trunk/src/VBox/Frontends


Ignore:
Timestamp:
Jan 26, 2012 12:54:50 AM (13 years ago)
Author:
vboxsync
Message:

Config.kmk,VMMDev,Main,QtGui,VBoxManage: Refactored IGuest::additionsVersion and associated acts, splitting it up into additionsVersion and additionsRevision like IVirtualBox and IExtPack handles versioning. Fixed missing saved state in VMMDev where the VMMDevReq_ReportGuestInfo2 info was not saved and Main+Frontends led to believe we were running guest additions older than 3.2. The changes have be subjected to limited testing. Added TODOs for another missing save in VMMDev.

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

Legend:

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

    r39119 r39882  
    21932193                && !guestString.isEmpty())
    21942194            {
     2195                ULONG uRevision;
     2196                rc = guest->COMGETTER(AdditionsRevision)(&uRevision);
     2197                if (FAILED(rc))
     2198                    uRevision = 0;
     2199
    21952200                if (details == VMINFO_MACHINEREADABLE)
    2196                     RTPrintf("GuestAdditionsVersion=\"%ls\"\n", guestString.raw());
     2201                    RTPrintf("GuestAdditionsVersion=\"%ls r%u\"\n", guestString.raw(), uRevision);
    21972202                else
    2198                     RTPrintf("Additions version:                   %ls\n\n", guestString.raw());
     2203                    RTPrintf("Additions version:                   %ls r%u\n\n", guestString.raw(), uRevision);
    21992204            }
    22002205
  • trunk/src/VBox/Frontends/VirtualBox/src/VBoxVMInformationDlg.cpp

    r35761 r39882  
    452452    {
    453453        CConsole console = mSession.GetConsole();
     454
    454455        ULONG width = 0;
    455456        ULONG height = 0;
     
    461462        if (bpp)
    462463            resolution += QString ("x%1").arg (bpp);
    463         QString virtualization = console.GetDebugger().GetHWVirtExEnabled() ?
     464
     465        CMachineDebugger debugger = console.GetDebugger();
     466        QString virtualization = debugger.GetHWVirtExEnabled() ?
    464467            VBoxGlobal::tr ("Enabled", "details report (VT-x/AMD-V)") :
    465468            VBoxGlobal::tr ("Disabled", "details report (VT-x/AMD-V)");
    466         QString nested = console.GetDebugger().GetHWVirtExNestedPagingEnabled() ?
     469        QString nested = debugger.GetHWVirtExNestedPagingEnabled() ?
    467470            VBoxGlobal::tr ("Enabled", "details report (Nested Paging)") :
    468471            VBoxGlobal::tr ("Disabled", "details report (Nested Paging)");
    469         QString addVersionStr = console.GetGuest().GetAdditionsVersion();
     472
     473        CGuest guest = console.GetGuest();
     474        QString addVersionStr = guest.GetAdditionsVersion();
    470475        if (addVersionStr.isEmpty())
    471             addVersionStr = tr ("Not Detected", "guest additions");
    472         QString osType = console.GetGuest().GetOSTypeId();
     476            addVersionStr = tr("Not Detected", "guest additions");
     477        else
     478        {
     479            ULONG revision = guest.GetAdditionsRevision();
     480            if (revision != 0)
     481                addVersionStr += QString(" r%1").arg(revision);
     482        }
     483        QString osType = guest.GetOSTypeId();
    473484        if (osType.isEmpty())
    474485            osType = tr ("Not Detected", "guest os type");
    475486        else
    476487            osType = vboxGlobal().vmGuestOSTypeDescription (osType);
     488
    477489        int vrdePort = console.GetVRDEServerInfo().GetPort();
    478490        QString vrdeInfo = (vrdePort == 0 || vrdePort == -1)?
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