Changeset 83175 in vbox
- Timestamp:
- Feb 27, 2020 6:10:52 PM (5 years ago)
- Location:
- trunk/src/VBox/Frontends/VirtualBox/src/globals
- Files:
-
- 5 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/Frontends/VirtualBox/src/globals/UICloudMachine.cpp
r83162 r83175 39 39 , m_iMemorySize(0) 40 40 , m_iCpuCount(0) 41 //, m_strInstanceShape("None") 42 //, m_strDomain("None") 43 //, m_strBootingFirmware("None") 41 44 { 42 45 //printf("Data for machine with id = {%s} is created\n", m_strId.toUtf8().constData()); … … 53 56 , m_iMemorySize(other.m_iMemorySize) 54 57 , m_iCpuCount(other.m_iCpuCount) 58 , m_strInstanceShape(other.m_strInstanceShape) 59 , m_strDomain(other.m_strDomain) 60 , m_strBootingFirmware(other.m_strBootingFirmware) 55 61 { 56 62 //printf("Data for machine with id = {%s} is copied\n", m_strId.toUtf8().constData()); … … 72 78 m_iCpuCount = fetchCpuCount(infoMap); 73 79 m_enmMachineState = fetchMachineState(infoMap); 80 m_strInstanceShape = fetchInstanceShape(infoMap); 81 m_strDomain = fetchDomain(infoMap); 82 m_strBootingFirmware = fetchBootingFirmware(infoMap); 74 83 } 75 84 -
trunk/src/VBox/Frontends/VirtualBox/src/globals/UICloudMachine.h
r83162 r83175 73 73 /** Returns cloud VM CPU count. */ 74 74 int cpuCount() const { return m_iCpuCount; } 75 /** Returns cloud VM instance shape. */ 76 QString instanceShape() const { return m_strInstanceShape; } 77 /** Returns cloud VM domain. */ 78 QString domain() const { return m_strDomain; } 79 /** Returns cloud VM booting firmware. */ 80 QString bootingFirmware() const { return m_strBootingFirmware; } 75 81 76 82 private: … … 96 102 /** Holds the cloud VM CPU count. */ 97 103 int m_iCpuCount; 104 /** Holds the cloud VM instance shape. */ 105 QString m_strInstanceShape; 106 /** Holds the cloud VM domain. */ 107 QString m_strDomain; 108 /** Holds the cloud VM booting firmware. */ 109 QString m_strBootingFirmware; 98 110 }; 99 111 … … 144 156 /** Returns cloud VM CPU count. */ 145 157 int cpuCount() const { return d->cpuCount(); } 158 /** Returns cloud VM instance shape. */ 159 QString instanceShape() const { return d->instanceShape(); } 160 /** Returns cloud VM domain. */ 161 QString domain() const { return d->domain(); } 162 /** Returns cloud VM booting firmware. */ 163 QString bootingFirmware() const { return d->bootingFirmware(); } 146 164 147 165 private: -
trunk/src/VBox/Frontends/VirtualBox/src/globals/UICloudNetworkingStuff.cpp
r83160 r83175 208 208 } 209 209 210 QString UICloudNetworkingStuff::fetchInstanceShape(const QMap<KVirtualSystemDescriptionType, QString> &infoMap) 211 { 212 /* Return instance shape value: */ 213 return infoMap.value(KVirtualSystemDescriptionType_CloudInstanceShape); 214 } 215 216 QString UICloudNetworkingStuff::fetchDomain(const QMap<KVirtualSystemDescriptionType, QString> &infoMap) 217 { 218 /* Return domain value: */ 219 return infoMap.value(KVirtualSystemDescriptionType_CloudDomain); 220 } 221 210 222 KMachineState UICloudNetworkingStuff::fetchMachineState(const QMap<KVirtualSystemDescriptionType, QString> &infoMap) 211 223 { … … 220 232 return machineStates.value(infoMap.value(KVirtualSystemDescriptionType_CloudInstanceState), KMachineState_PoweredOff); 221 233 } 234 235 QString UICloudNetworkingStuff::fetchBootingFirmware(const QMap<KVirtualSystemDescriptionType, QString> &infoMap) 236 { 237 /* Return booting firmware value: */ 238 return infoMap.value(KVirtualSystemDescriptionType_BootingFirmware); 239 } -
trunk/src/VBox/Frontends/VirtualBox/src/globals/UICloudNetworkingStuff.h
r83160 r83175 64 64 /** Fetches cloud VM CPU count from the passed @a info. */ 65 65 SHARED_LIBRARY_STUFF int fetchCpuCount(const QMap<KVirtualSystemDescriptionType, QString> &infoMap); 66 /** Fetches cloud VM instance shape from the passed @a info. */ 67 SHARED_LIBRARY_STUFF QString fetchInstanceShape(const QMap<KVirtualSystemDescriptionType, QString> &infoMap); 68 /** Fetches cloud VM domain from the passed @a info. */ 69 SHARED_LIBRARY_STUFF QString fetchDomain(const QMap<KVirtualSystemDescriptionType, QString> &infoMap); 66 70 /** Fetches cloud VM state from the passed @a info. */ 67 71 SHARED_LIBRARY_STUFF KMachineState fetchMachineState(const QMap<KVirtualSystemDescriptionType, QString> &infoMap); 72 /** Fetches cloud VM booting firmware from the passed @a info. */ 73 SHARED_LIBRARY_STUFF QString fetchBootingFirmware(const QMap<KVirtualSystemDescriptionType, QString> &infoMap); 68 74 } 69 75 -
trunk/src/VBox/Frontends/VirtualBox/src/globals/UIDetailsGenerator.cpp
r83151 r83175 147 147 uiCommon().vmGuestOSTypeDescription(guiCloudMachine.osType())); 148 148 149 /* Domain: */ 150 if (fOptions & UIExtraDataMetaDefs::DetailsElementOptionTypeGeneral_Location) 151 table << UITextTableLine(QApplication::translate("UIDetails", "Domain", "details (general)"), 152 guiCloudMachine.domain()); 153 149 154 return table; 150 155 } … … 288 293 } 289 294 295 /* Instance Shape: */ 296 table << UITextTableLine(QApplication::translate("UIDetails", "Shape", "details (system)"), 297 guiCloudMachine.instanceShape()); 298 290 299 /* Base memory: */ 291 300 if (fOptions & UIExtraDataMetaDefs::DetailsElementOptionTypeSystem_RAM) … … 297 306 table << UITextTableLine(QApplication::translate("UIDetails", "Processors", "details (system)"), 298 307 QString::number(guiCloudMachine.cpuCount())); 308 309 /* Booting firmware: */ 310 if (fOptions & UIExtraDataMetaDefs::DetailsElementOptionTypeSystem_Firmware) 311 table << UITextTableLine(QApplication::translate("UIDetails", "Booting Firmware", "details (system)"), 312 guiCloudMachine.bootingFirmware()); 299 313 300 314 return table;
Note:
See TracChangeset
for help on using the changeset viewer.