Changeset 83288 in vbox for trunk/src/VBox/Frontends/VirtualBox
- Timestamp:
- Mar 13, 2020 3:57:50 PM (5 years ago)
- svn:sync-xref-src-repo-rev:
- 136448
- Location:
- trunk/src/VBox/Frontends/VirtualBox/src
- Files:
-
- 4 edited
Legend:
- Unmodified
- Added
- Removed
-
TabularUnified trunk/src/VBox/Frontends/VirtualBox/src/globals/UICloudMachine.cpp ¶
r83267 r83288 29 29 30 30 UICloudMachineData::UICloudMachineData(const CCloudClient &comCloudClient, 31 const QString &strI d,32 const QString &str Name)31 const QString &strInstanceId, 32 const QString &strInstanceName) 33 33 : m_comCloudClient(comCloudClient) 34 , m_strI d(strId)35 , m_str Name(strName)34 , m_strInstanceId(strInstanceId) 35 , m_strInstanceName(strInstanceName) 36 36 , m_fAccessible(true) 37 37 , m_enmMachineState(KMachineState_PoweredOff) … … 40 40 , m_iCpuCount(0) 41 41 { 42 //printf("Data for machine with id = {%s} is created\n", m_strI d.toUtf8().constData());42 //printf("Data for machine with id = {%s} is created\n", m_strInstanceId.toUtf8().constData()); 43 43 } 44 44 … … 46 46 : QSharedData(other) 47 47 , m_comCloudClient(other.m_comCloudClient) 48 , m_strI d(other.m_strId)49 , m_str Name(other.m_strName)48 , m_strInstanceId(other.m_strInstanceId) 49 , m_strInstanceName(other.m_strInstanceName) 50 50 , m_fAccessible(other.m_fAccessible) 51 51 , m_strAccessError(other.m_strAccessError) … … 59 59 , m_strImageId(other.m_strImageId) 60 60 { 61 //printf("Data for machine with id = {%s} is copied\n", m_strI d.toUtf8().constData());61 //printf("Data for machine with id = {%s} is copied\n", m_strInstanceId.toUtf8().constData()); 62 62 } 63 63 64 64 UICloudMachineData::~UICloudMachineData() 65 65 { 66 //printf("Data for machine with id = {%s} is deleted\n", m_strI d.toUtf8().constData());66 //printf("Data for machine with id = {%s} is deleted\n", m_strInstanceId.toUtf8().constData()); 67 67 } 68 68 … … 73 73 74 74 /* Acquire instance info sync way, be aware, this is blocking stuff, it takes some time: */ 75 const QMap<KVirtualSystemDescriptionType, QString> instanceInfoMap = getInstanceInfo(m_comCloudClient, m_strId, m_strAccessError); 75 const QMap<KVirtualSystemDescriptionType, QString> instanceInfoMap = getInstanceInfo(m_comCloudClient, 76 m_strInstanceId, 77 m_strAccessError); 76 78 /* Update accessibility state: */ 77 79 m_fAccessible = m_strAccessError.isNull(); … … 134 136 135 137 UICloudMachine::UICloudMachine(const CCloudClient &comCloudClient, 136 const QString &strI d,137 const QString &str Name)138 : d(new UICloudMachineData(comCloudClient, strI d, strName))138 const QString &strInstanceId, 139 const QString &strInstanceName) 140 : d(new UICloudMachineData(comCloudClient, strInstanceId, strInstanceName)) 139 141 { 140 142 } -
TabularUnified trunk/src/VBox/Frontends/VirtualBox/src/globals/UICloudMachine.h ¶
r83255 r83288 39 39 40 40 /** Constructs shared cloud VM data on the basis of arguments. 41 * @param comCloudClient Brings the cloud client object reference.42 * @param strI d Brings the cloud VMid.43 * @param str Name Brings the cloud VMname. */41 * @param comCloudClient Brings the cloud client object reference. 42 * @param strInstanceId Brings the cloud instance id. 43 * @param strInstanceName Brings the cloud instance name. */ 44 44 UICloudMachineData(const CCloudClient &comCloudClient, 45 const QString &strI d,46 const QString &str Name);45 const QString &strInstanceId, 46 const QString &strInstanceName); 47 47 /** Constructs shared cloud VM data on the basis of @a other data. */ 48 48 UICloudMachineData(const UICloudMachineData &other); … … 56 56 CCloudClient cloudClient() const { return m_comCloudClient; } 57 57 58 /** Returns cloud VMid. */59 QString i d() const { return m_strId; }60 /** Returns cloud VMname. */61 QString name() const { return m_strName; }58 /** Returns cloud instance id. */ 59 QString instanceId() const { return m_strInstanceId; } 60 /** Returns cloud instance name. */ 61 QString instanceName() const { return m_strInstanceName; } 62 62 63 63 /** Returns whether cloud VM is accessible. */ … … 93 93 CCloudClient m_comCloudClient; 94 94 95 /** Holds the cloud VMid. */96 const QString m_strI d;97 /** Holds the cloud VMname. */98 const QString m_str Name;95 /** Holds the cloud instance id. */ 96 const QString m_strInstanceId; 97 /** Holds the cloud instance name. */ 98 const QString m_strInstanceName; 99 99 100 100 /** Holds whether cloud VM is accessible. */ … … 137 137 UICloudMachine(); 138 138 /** Constructs cloud VM wrapper on the basis of arguments. 139 * @param comCloudClient Brings the cloud client object instance.140 * @param strI d Brings the cloud VMid.141 * @param str Name Brings the cloud VMname. */139 * @param comCloudClient Brings the cloud client object instance. 140 * @param strInstanceId Brings the cloud instance id. 141 * @param strInstanceName Brings the cloud instance name. */ 142 142 UICloudMachine(const CCloudClient &comCloudClient, 143 const QString &strI d,144 const QString &str Name);143 const QString &strInstanceId, 144 const QString &strInstanceName); 145 145 /** Constructs cloud VM wrapper on the basis of @a other wrapper. */ 146 146 UICloudMachine(const UICloudMachine &other); … … 155 155 CCloudClient client() const { return d->cloudClient(); } 156 156 157 /** Returns cloud VMid. */158 QString i d() const { return d->id(); }159 /** Returns cloud VMname. */160 QString name() const { return d->name(); }157 /** Returns cloud instance id. */ 158 QString instanceId() const { return d->instanceId(); } 159 /** Returns cloud instance name. */ 160 QString instanceName() const { return d->instanceName(); } 161 161 162 162 /** Returns whether cloud VM is accessible. */ -
TabularUnified trunk/src/VBox/Frontends/VirtualBox/src/globals/UIDetailsGenerator.cpp ¶
r83255 r83288 140 140 if (fOptions & UIExtraDataMetaDefs::DetailsElementOptionTypeGeneral_Name) 141 141 table << UITextTableLine(QApplication::translate("UIDetails", "Name", "details (general)"), 142 guiCloudMachine. name());142 guiCloudMachine.instanceName()); 143 143 144 144 /* Operating system: */ -
TabularUnified trunk/src/VBox/Frontends/VirtualBox/src/manager/UIVirtualMachineItemCloud.cpp ¶
r83277 r83288 104 104 if (!m_guiCloudMachine.isNull()) 105 105 { 106 m_strId = m_guiCloudMachine.i d();107 m_strName = m_guiCloudMachine. name();106 m_strId = m_guiCloudMachine.instanceId(); 107 m_strName = m_guiCloudMachine.instanceName(); 108 108 } 109 109
Note:
See TracChangeset
for help on using the changeset viewer.