Changeset 83212 in vbox for trunk/src/VBox/Frontends
- Timestamp:
- Mar 5, 2020 5:53:37 PM (5 years ago)
- Location:
- trunk/src/VBox/Frontends/VirtualBox/src
- Files:
-
- 7 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/Frontends/VirtualBox/src/globals/UICloudNetworkingStuff.cpp
r83203 r83212 19 19 #include "UICloudNetworkingStuff.h" 20 20 #include "UICommon.h" 21 #include "UIErrorString.h" 21 22 #include "UIMessageCenter.h" 22 23 … … 30 31 31 32 QList<UICloudMachine> UICloudNetworkingStuff::listInstances(const CCloudClient &comCloudClient, 33 QString &strErrorMessage, 32 34 QWidget *pParent /* = 0 */) 33 35 { … … 47 49 msgCenter().cannotAcquireCloudClientParameter(comCloudClient, pParent); 48 50 else 49 { 50 /// @todo fetch error info 51 } 51 strErrorMessage = UIErrorString::formatErrorInfo(comCloudClient); 52 52 } 53 53 else … … 65 65 msgCenter().cannotAcquireCloudClientParameter(comProgress, pParent); 66 66 else 67 { 68 /// @todo fetch error info 69 } 67 strErrorMessage = UIErrorString::formatErrorInfo(comProgress); 70 68 } 71 69 else -
trunk/src/VBox/Frontends/VirtualBox/src/globals/UICloudNetworkingStuff.h
r83190 r83212 38 38 * if no parent set, progress will be executed in blocking way. */ 39 39 SHARED_LIBRARY_STUFF QList<UICloudMachine> listInstances(const CCloudClient &comCloudClient, 40 QString &strErrorMessage, 40 41 QWidget *pParent = 0); 41 42 -
trunk/src/VBox/Frontends/VirtualBox/src/globals/UIMessageCenter.cpp
r82968 r83212 601 601 error(pParent, MessageType_Error, 602 602 tr("Failed to acquire machine parameter."), UIErrorString::formatErrorInfo(comMachine)); 603 } 604 605 void UIMessageCenter::cannotAcquireCloudInstanceList(const QString &strErrorDetails, QWidget *pParent /* = 0 */) const 606 { 607 error(pParent, MessageType_Error, 608 tr("Failed to acquire cloud intance list."), strErrorDetails); 603 609 } 604 610 -
trunk/src/VBox/Frontends/VirtualBox/src/globals/UIMessageCenter.h
r82968 r83212 264 264 void warnAboutInvalidEncryptionPassword(const QString &strPasswordId, QWidget *pParent = 0); 265 265 void cannotAcquireMachineParameter(const CMachine &comMachine, QWidget *pParent = 0) const; 266 267 /* API: Global cloud warnings: */ 268 void cannotAcquireCloudInstanceList(const QString &strErrorDetails, QWidget *pParent = 0) const; 266 269 267 270 /* API: Selector warnings: */ -
trunk/src/VBox/Frontends/VirtualBox/src/manager/UITaskCloudAcquireInstances.cpp
r83111 r83212 36 36 } 37 37 38 CVirtualBoxErrorInfoUITaskCloudAcquireInstances::errorInfo()38 QString UITaskCloudAcquireInstances::errorInfo() 39 39 { 40 40 m_mutex.lock(); 41 CVirtualBoxErrorInfo comErrorInfo = m_comErrorInfo;41 QString strErrorInfo = m_strErrorInfo; 42 42 m_mutex.unlock(); 43 return comErrorInfo;43 return strErrorInfo; 44 44 } 45 45 … … 47 47 { 48 48 m_mutex.lock(); 49 m_result = listInstances(m_comCloudClient );49 m_result = listInstances(m_comCloudClient, m_strErrorInfo); 50 50 m_mutex.unlock(); 51 51 } -
trunk/src/VBox/Frontends/VirtualBox/src/manager/UITaskCloudAcquireInstances.h
r83111 r83212 32 32 #include "COMEnums.h" 33 33 #include "CCloudClient.h" 34 #include "CVirtualBoxErrorInfo.h"35 34 36 35 /* Forward declaratiuons: */ … … 55 54 56 55 /** Returns error info. */ 57 CVirtualBoxErrorInfoerrorInfo();56 QString errorInfo(); 58 57 59 58 /** Returns the task result. */ … … 75 74 UIChooserNode *m_pParentNode; 76 75 77 /** Holds the error info object. */78 CVirtualBoxErrorInfo m_comErrorInfo;76 /** Holds the error info. */ 77 QString m_strErrorInfo; 79 78 80 79 /** Holds the task result. */ -
trunk/src/VBox/Frontends/VirtualBox/src/manager/chooser/UIChooserAbstractModel.cpp
r83198 r83212 275 275 /* Cast task to corresponding sub-class: */ 276 276 UITaskCloudAcquireInstances *pAcquiringTask = static_cast<UITaskCloudAcquireInstances*>(pTask); 277 278 /* Check whether there was an error: */ 279 if (!pAcquiringTask->errorInfo().isNull()) 280 return msgCenter().cannotAcquireCloudInstanceList(pAcquiringTask->errorInfo()); 277 281 278 282 /* Acquire parent node we referencing: */
Note:
See TracChangeset
for help on using the changeset viewer.