VirtualBox

Ignore:
Timestamp:
Feb 9, 2023 11:24:06 AM (2 years ago)
Author:
vboxsync
Message:

FE/Qt: bugref:10322: Runtime UI: Rework CMachineDebugger wrapper usage the way it's fully encapsulated inside UISession.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/Frontends/VirtualBox/src/runtime/UIMachine.cpp

    r98503 r98516  
    534534}
    535535
    536 void UIMachine::acquireCpuLoadPercentage(int &iPercentage)
    537 {
    538     uisession()->acquireCpuLoadPercentage(iPercentage);
    539 }
    540 
    541536void UIMachine::acquireFeaturesStatusInfo(QString &strInfo, KVMExecutionEngine &enmEngine)
    542537{
     
    546541                                           isHWVirtExUXEnabled(),
    547542                                           paravirtProvider());
     543}
     544
     545void UIMachine::setLogEnabled(bool fEnabled)
     546{
     547    uisession()->setLogEnabled(fEnabled);
     548}
     549
     550bool UIMachine::isLogEnabled()
     551{
     552    return uisession()->isLogEnabled();
     553}
     554
     555int UIMachine::cpuLoadPercentage()
     556{
     557    return uisession()->cpuLoadPercentage();
    548558}
    549559
     
    18901900void UIMachine::updateVirtualizationState()
    18911901{
    1892     m_enmVMExecutionEngine = uisession()->debugger().GetExecutionEngine();
    1893     m_fIsHWVirtExNestedPagingEnabled = uisession()->debugger().GetHWVirtExNestedPagingEnabled();
    1894     m_fIsHWVirtExUXEnabled = uisession()->debugger().GetHWVirtExUXEnabled();
     1902    m_enmVMExecutionEngine = uisession()->executionEngineType();
     1903    m_fIsHWVirtExNestedPagingEnabled = uisession()->isHwVirtExNestedPagingEnabled();
     1904    m_fIsHWVirtExUXEnabled = uisession()->isHwVirtExUXEnabled();
    18951905    m_enmParavirtProvider = uisession()->machine().GetEffectiveParavirtProvider();
    18961906}
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