VirtualBox

Changeset 91151 in vbox


Ignore:
Timestamp:
Sep 8, 2021 12:57:06 PM (3 years ago)
Author:
vboxsync
Message:

FE/Qt: bugref:10067: Reuse UICloudNetworkingStuff in Export / Import Appliance wizards, few places again.

Location:
trunk/src/VBox/Frontends/VirtualBox/src
Files:
4 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/Frontends/VirtualBox/src/globals/UIMessageCenter.cpp

    r91149 r91151  
    13881388}
    13891389
     1390void UIMessageCenter::cannotCreateCloudClient(const CCloudProfile &comProfile, QWidget *pParent /* = 0 */) const
     1391{
     1392    error(pParent, MessageType_Error,
     1393          tr("Failed to create cloud client."),
     1394          UIErrorString::formatErrorInfo(comProfile));
     1395}
     1396
    13901397bool UIMessageCenter::cannotRestoreSnapshot(const CMachine &machine, const QString &strSnapshotName, const QString &strMachineName) const
    13911398{
     
    14041411          UIErrorString::formatErrorInfo(progress));
    14051412    return false;
    1406 }
    1407 
    1408 void UIMessageCenter::cannotCreateCloudClient(const CCloudProfile &comProfile, QWidget *pParent /* = 0 */) const
    1409 {
    1410     error(pParent, MessageType_Error,
    1411           tr("Failed to create cloud client."),
    1412           UIErrorString::formatErrorInfo(comProfile));
    14131413}
    14141414
  • trunk/src/VBox/Frontends/VirtualBox/src/globals/UIMessageCenter.h

    r91149 r91151  
    381381        void cannotAcquireCloudProviderParameter(const CCloudProvider &comProvider, QWidget *pParent = 0) const;
    382382        void cannotAcquireCloudProfileParameter(const CCloudProfile &comProfile, QWidget *pParent = 0) const;
     383
     384        void cannotCreateCloudClient(const CCloudProfile &comProfile, QWidget *pParent = 0) const;
    383385    /** @} */
    384386
     
    389391    /** @} */
    390392
    391     void cannotCreateCloudClient(const CCloudProfile &comProfile, QWidget *pParent = 0) const;
    392393    void cannotAcquireCloudClientParameter(const CCloudClient &comClient, QWidget *pParent = 0) const;
    393394    void cannotAcquireCloudClientParameter(const CProgress &comProgress, QWidget *pParent = 0) const;
  • trunk/src/VBox/Frontends/VirtualBox/src/wizards/exportappliance/UIWizardExportAppPageBasic2.cpp

    r91145 r91151  
    293293
    294294            /* Create Cloud Client: */
    295             CCloudClient comClient = m_comCloudProfile.CreateCloudClient();
    296             if (!m_comCloudProfile.isOk())
    297             {
    298                 msgCenter().cannotCreateCloudClient(m_comCloudProfile);
     295            CCloudClient comClient = cloudClient(m_comCloudProfile);
     296            if (comClient.isNull())
    299297                break;
    300             }
    301298
    302299            /* Remember client: */
  • trunk/src/VBox/Frontends/VirtualBox/src/wizards/importappliance/UIWizardImportAppPageBasic1.cpp

    r91145 r91151  
    194194        {
    195195            /* Acquire Cloud Client: */
    196             m_comCloudClient = m_comCloudProfile.CreateCloudClient();
    197             if (!m_comCloudProfile.isOk())
    198             {
    199                 msgCenter().cannotCreateCloudClient(m_comCloudProfile);
    200                 break;
    201             }
     196            m_comCloudClient = cloudClient(m_comCloudProfile);
     197            if (m_comCloudClient.isNull())
     198                break;
    202199
    203200            /* Gather VM names, ids and states.
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