Changeset 83182 in vbox for trunk/src/VBox/Frontends/VirtualBox
- Timestamp:
- Mar 2, 2020 9:55:12 AM (5 years ago)
- svn:sync-xref-src-repo-rev:
- 136308
- Location:
- trunk/src/VBox/Frontends/VirtualBox/src/globals
- Files:
-
- 4 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/Frontends/VirtualBox/src/globals/UICloudMachine.cpp
r83175 r83182 42 42 //, m_strDomain("None") 43 43 //, m_strBootingFirmware("None") 44 //, m_strImageId(QString()) 44 45 { 45 46 //printf("Data for machine with id = {%s} is created\n", m_strId.toUtf8().constData()); … … 59 60 , m_strDomain(other.m_strDomain) 60 61 , m_strBootingFirmware(other.m_strBootingFirmware) 62 , m_strImageId(other.m_strImageId) 61 63 { 62 64 //printf("Data for machine with id = {%s} is copied\n", m_strId.toUtf8().constData()); … … 71 73 { 72 74 /* Acquire instance info sync way, be aware, this is blocking stuff, it takes some time: */ 73 const QMap<KVirtualSystemDescriptionType, QString> in foMap = getInstanceInfo(m_comCloudClient, m_strId);75 const QMap<KVirtualSystemDescriptionType, QString> instanceInfoMap = getInstanceInfo(m_comCloudClient, m_strId); 74 76 75 77 /* Refresh corresponding values: */ 76 m_strOsType = fetchOsType(infoMap); 77 m_iMemorySize = fetchMemorySize(infoMap); 78 m_iCpuCount = fetchCpuCount(infoMap); 79 m_enmMachineState = fetchMachineState(infoMap); 80 m_strInstanceShape = fetchInstanceShape(infoMap); 81 m_strDomain = fetchDomain(infoMap); 82 m_strBootingFirmware = fetchBootingFirmware(infoMap); 78 m_strOsType = fetchOsType(instanceInfoMap); 79 m_iMemorySize = fetchMemorySize(instanceInfoMap); 80 m_iCpuCount = fetchCpuCount(instanceInfoMap); 81 m_enmMachineState = fetchMachineState(instanceInfoMap); 82 m_strInstanceShape = fetchShape(instanceInfoMap); 83 m_strDomain = fetchDomain(instanceInfoMap); 84 m_strBootingFirmware = fetchBootingFirmware(instanceInfoMap); 85 m_strImageId = fetchImageId(instanceInfoMap); 83 86 } 84 87 -
trunk/src/VBox/Frontends/VirtualBox/src/globals/UICloudMachine.h
r83175 r83182 79 79 /** Returns cloud VM booting firmware. */ 80 80 QString bootingFirmware() const { return m_strBootingFirmware; } 81 /** Returns cloud VM image id. */ 82 QString imageId() const { return m_strImageId; } 81 83 82 84 private: … … 108 110 /** Holds the cloud VM booting firmware. */ 109 111 QString m_strBootingFirmware; 112 /** Holds the cloud VM image id. */ 113 QString m_strImageId; 110 114 }; 111 115 … … 162 166 /** Returns cloud VM booting firmware. */ 163 167 QString bootingFirmware() const { return d->bootingFirmware(); } 168 /** Returns cloud VM image id. */ 169 QString imageId() const { return d->imageId(); } 164 170 165 171 private: -
trunk/src/VBox/Frontends/VirtualBox/src/globals/UICloudNetworkingStuff.cpp
r83175 r83182 208 208 } 209 209 210 QString UICloudNetworkingStuff::fetch InstanceShape(const QMap<KVirtualSystemDescriptionType, QString> &infoMap)210 QString UICloudNetworkingStuff::fetchShape(const QMap<KVirtualSystemDescriptionType, QString> &infoMap) 211 211 { 212 212 /* Return instance shape value: */ … … 238 238 return infoMap.value(KVirtualSystemDescriptionType_BootingFirmware); 239 239 } 240 241 QString UICloudNetworkingStuff::fetchImageId(const QMap<KVirtualSystemDescriptionType, QString> &infoMap) 242 { 243 /* Return image id value: */ 244 return infoMap.value(KVirtualSystemDescriptionType_CloudImageId); 245 } -
trunk/src/VBox/Frontends/VirtualBox/src/globals/UICloudNetworkingStuff.h
r83175 r83182 42 42 /** Acquires instance info as a map. 43 43 * @param comCloudClient Brings cloud client object. 44 * @param strId Brings cloud VMid.44 * @param strId Brings cloud instance id. 45 45 * @param pWidget Brings parent widget to show messages according to, 46 46 * if no parent set, progress will be executed in blocking way. */ … … 50 50 /** Acquires instance info of certain @a enmType as a string. 51 51 * @param comCloudClient Brings cloud client object. 52 * @param strId Brings cloud VMid.52 * @param strId Brings cloud instance id. 53 53 * @param pWidget Brings parent widget to show messages according to, 54 54 * if no parent set, progress will be executed in blocking way. */ … … 58 58 QWidget *pParent = 0); 59 59 60 /** Fetches cloud VMOS type from the passed @a info. */60 /** Fetches cloud instance OS type from the passed @a info. */ 61 61 SHARED_LIBRARY_STUFF QString fetchOsType(const QMap<KVirtualSystemDescriptionType, QString> &infoMap); 62 /** Fetches cloud VMmemory size from the passed @a info. */62 /** Fetches cloud instance memory size from the passed @a info. */ 63 63 SHARED_LIBRARY_STUFF int fetchMemorySize(const QMap<KVirtualSystemDescriptionType, QString> &infoMap); 64 /** Fetches cloud VMCPU count from the passed @a info. */64 /** Fetches cloud instance CPU count from the passed @a info. */ 65 65 SHARED_LIBRARY_STUFF int fetchCpuCount(const QMap<KVirtualSystemDescriptionType, QString> &infoMap); 66 /** Fetches cloud VMinstance shape from the passed @a info. */67 SHARED_LIBRARY_STUFF QString fetch InstanceShape(const QMap<KVirtualSystemDescriptionType, QString> &infoMap);68 /** Fetches cloud VMdomain from the passed @a info. */66 /** Fetches cloud instance shape from the passed @a info. */ 67 SHARED_LIBRARY_STUFF QString fetchShape(const QMap<KVirtualSystemDescriptionType, QString> &infoMap); 68 /** Fetches cloud instance domain from the passed @a info. */ 69 69 SHARED_LIBRARY_STUFF QString fetchDomain(const QMap<KVirtualSystemDescriptionType, QString> &infoMap); 70 /** Fetches cloud VMstate from the passed @a info. */70 /** Fetches cloud instance state from the passed @a info. */ 71 71 SHARED_LIBRARY_STUFF KMachineState fetchMachineState(const QMap<KVirtualSystemDescriptionType, QString> &infoMap); 72 /** Fetches cloud VMbooting firmware from the passed @a info. */72 /** Fetches cloud instance booting firmware from the passed @a info. */ 73 73 SHARED_LIBRARY_STUFF QString fetchBootingFirmware(const QMap<KVirtualSystemDescriptionType, QString> &infoMap); 74 /** Fetches cloud instance image id from the passed @a info. */ 75 SHARED_LIBRARY_STUFF QString fetchImageId(const QMap<KVirtualSystemDescriptionType, QString> &infoMap); 74 76 } 75 77
Note:
See TracChangeset
for help on using the changeset viewer.