VirtualBox

Changeset 83162 in vbox


Ignore:
Timestamp:
Feb 26, 2020 2:39:39 PM (5 years ago)
Author:
vboxsync
Message:

FE/Qt: bugref:9653: Extend UICloudMachine with cloud VM state information.

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

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/Frontends/VirtualBox/src/globals/UICloudMachine.cpp

    r83161 r83162  
    3535    , m_strName(strName)
    3636    , m_fAccessible(true)
     37    , m_enmMachineState(KMachineState_PoweredOff)
    3738    , m_strOsType("Other")
    3839    , m_iMemorySize(0)
     
    4849    , m_strName(other.m_strName)
    4950    , m_fAccessible(other.m_fAccessible)
     51    , m_enmMachineState(other.m_enmMachineState)
    5052    , m_strOsType(other.m_strOsType)
    5153    , m_iMemorySize(other.m_iMemorySize)
     
    6971    m_iMemorySize = fetchMemorySize(infoMap);
    7072    m_iCpuCount = fetchCpuCount(infoMap);
     73    m_enmMachineState = fetchMachineState(infoMap);
    7174}
    7275
  • trunk/src/VBox/Frontends/VirtualBox/src/globals/UICloudMachine.h

    r83161 r83162  
    6464    bool isAccessible() const { return m_fAccessible; }
    6565
     66    /** Returns cloud VM state. */
     67    KMachineState machineState() const { return m_enmMachineState; }
     68
    6669    /** Returns cloud VM OS type. */
    6770    QString osType() const { return m_strOsType; }
     
    8386    /** Holds whether cloud VM is accessible. */
    8487    bool  m_fAccessible;
     88
     89    /** Holds the cloud VM state. */
     90    KMachineState  m_enmMachineState;
    8591
    8692    /** Holds the cloud VM OS type. */
     
    129135    bool isAccessible() const { return d->isAccessible(); }
    130136
     137    /** Returns cloud VM state. */
     138    KMachineState machineState() { return d->machineState(); }
     139
    131140    /** Returns cloud VM OS type. */
    132141    QString osType() const { return d->osType(); }
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