VirtualBox

Changeset 83644 in vbox for trunk/src/VBox


Ignore:
Timestamp:
Apr 9, 2020 10:14:36 AM (5 years ago)
Author:
vboxsync
Message:

FE/Qt: bugref:9653: Rework UITaskCloudGetInstanceInfo to handle error-info in more common way with other tasks.

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

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/Frontends/VirtualBox/src/manager/UITaskCloudGetInstanceInfo.cpp

    r83163 r83644  
    2626}
    2727
    28 CVirtualBoxErrorInfo UITaskCloudGetInstanceInfo::errorInfo()
     28QString UITaskCloudGetInstanceInfo::errorInfo()
    2929{
    3030    m_mutex.lock();
    31     CVirtualBoxErrorInfo comErrorInfo = m_comErrorInfo;
     31    const QString strErrorInfo = m_strErrorInfo;
    3232    m_mutex.unlock();
    33     return comErrorInfo;
     33    return strErrorInfo;
    3434}
    3535
  • trunk/src/VBox/Frontends/VirtualBox/src/manager/UITaskCloudGetInstanceInfo.h

    r83163 r83644  
    3030#include "UITask.h"
    3131
    32 /* COM includes: */
    33 #include "CVirtualBoxErrorInfo.h"
    34 
    3532
    3633/** UITask extension used to get cloud instance state. */
     
    4643
    4744    /** Returns error info. */
    48     CVirtualBoxErrorInfo errorInfo();
     45    QString errorInfo();
    4946
    5047protected:
     
    6158    UICloudMachine  m_guiCloudMachine;
    6259
    63     /** Holds the error info object. */
    64     CVirtualBoxErrorInfo  m_comErrorInfo;
     60    /** Holds the error info. */
     61    QString  m_strErrorInfo;
    6562};
    6663
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