VirtualBox

Changeset 83159 in vbox


Ignore:
Timestamp:
Feb 26, 2020 11:46:03 AM (5 years ago)
Author:
vboxsync
Message:

FE/Qt: bugref:9653: UICloudMachine: Encapsulate member data access.

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

Legend:

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

    r83151 r83159  
    5656}
    5757
     58CCloudClient UICloudMachineData::cloudClient() const
     59{
     60    return m_comCloudClient;
     61}
     62
     63QString UICloudMachineData::id() const
     64{
     65    return m_strId;
     66}
     67
     68QString UICloudMachineData::name() const
     69{
     70    return m_strName;
     71}
     72
     73bool UICloudMachineData::isAccessible() const
     74{
     75    return m_fAccessible;
     76}
     77
     78QString UICloudMachineData::osType()
     79{
     80    return m_strOsType;
     81}
     82
     83int UICloudMachineData::memorySize()
     84{
     85    return m_iMemorySize;
     86}
     87
     88int UICloudMachineData::cpuCount()
     89{
     90    return m_iCpuCount;
     91}
     92
    5893
    5994/*********************************************************************************************************************************
  • trunk/src/VBox/Frontends/VirtualBox/src/globals/UICloudMachine.h

    r83151 r83159  
    5050    virtual ~UICloudMachineData();
    5151
     52    /** Returns cloud client object reference. */
     53    CCloudClient cloudClient() const;
     54
     55    /** Returns cloud VM id. */
     56    QString id() const;
     57    /** Returns cloud VM name. */
     58    QString name() const;
     59
     60    /** Returns whether cloud VM is accessible. */
     61    bool isAccessible() const;
     62
     63    /** Returns cloud VM OS type. */
     64    QString osType();
     65    /** Returns cloud VM memory size. */
     66    int memorySize();
     67    /** Returns cloud VM CPU count. */
     68    int cpuCount();
     69
     70private:
     71
    5272    /** Holds the cloud client object reference. */
    5373    CCloudClient  m_comCloudClient;
     
    93113
    94114    /** Returns cloud client object reference. */
    95     CCloudClient client() const { return d->m_comCloudClient; }
     115    CCloudClient client() const { return d->cloudClient(); }
    96116
    97117    /** Returns cloud VM id. */
    98     QString id() const { return d->m_strId; }
     118    QString id() const { return d->id(); }
    99119    /** Returns cloud VM name. */
    100     QString name() const { return d->m_strName; }
     120    QString name() const { return d->name(); }
    101121
    102122    /** Returns whether cloud VM is accessible. */
    103     bool isAccessible() const { return d->m_fAccessible; }
     123    bool isAccessible() const { return d->isAccessible(); }
    104124
    105125    /** Returns cloud VM OS type. */
    106     QString osType() const { return d->m_strOsType; }
     126    QString osType() const { return d->osType(); }
    107127    /** Returns cloud VM memory size. */
    108     int memorySize() const { return d->m_iMemorySize; }
     128    int memorySize() const { return d->memorySize(); }
    109129    /** Returns cloud VM CPU count. */
    110     int cpuCount() const { return d->m_iCpuCount; }
     130    int cpuCount() const { return d->cpuCount(); }
    111131
    112132private:
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