VirtualBox

Changeset 91896 in vbox


Ignore:
Timestamp:
Oct 20, 2021 1:42:05 PM (4 years ago)
Author:
vboxsync
svn:sync-xref-src-repo-rev:
147700
Message:

FE/Qt: bugref:10067: UIWizardExportApp: Migrate intermediate progress related to launch VSD form creation to notification-center.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • TabularUnified trunk/src/VBox/Frontends/VirtualBox/src/wizards/exportappliance/UIWizardExportApp.cpp

    r91894 r91896  
    180180    AssertReturnVoid(comClient.isNotNull() && comVSD.isNotNull());
    181181
    182     /* Get Launch description form: */
    183     CVirtualSystemDescriptionForm comForm;
    184     CProgress comProgress = comClient.GetLaunchDescriptionForm(comVSD, comForm);
    185     /* Check for immediate errors: */
    186     if (!comClient.isOk())
    187         msgCenter().cannotAcquireCloudClientParameter(comClient);
    188     else
    189     {
    190         /* Make sure progress initially valid: */
    191         if (!comProgress.isNull() && !comProgress.GetCompleted())
    192         {
    193             /* Create take snapshot progress object: */
    194             QPointer<UIProgressObject> pObject = new UIProgressObject(comProgress, this);
    195             if (pObject)
    196             {
    197                 connect(pObject.data(), &UIProgressObject::sigProgressChange,
    198                         this, &UIWizardExportApp::sltHandleProgressChange);
    199                 connect(pObject.data(), &UIProgressObject::sigProgressComplete,
    200                         this, &UIWizardExportApp::sltHandleProgressFinished);
    201                 sltHandleProgressStarted();
    202                 pObject->exec();
    203                 if (pObject)
    204                     delete pObject;
    205                 else
    206                 {
    207                     // Premature application shutdown,
    208                     // exit immediately:
    209                     return;
    210                 }
    211             }
    212         }
    213 
    214         /* Check for progress errors: */
    215         if (!comProgress.isOk() || comProgress.GetResultCode() != 0)
    216             msgCenter().cannotAcquireCloudClientParameter(comProgress);
    217         else
    218         {
    219             /* Check whether form really read: */
    220             if (comForm.isNotNull())
    221             {
    222                 /* Remember Virtual System Description Form: */
    223                 setVsdLaunchForm(comForm);
    224             }
    225         }
    226     }
     182    /* Create launch VSD form: */
     183    UINotificationProgressLaunchVSDFormCreate *pNotification = new UINotificationProgressLaunchVSDFormCreate(comClient,
     184                                                                                                             comVSD,
     185                                                                                                             format(),
     186                                                                                                             profileName());
     187    connect(pNotification, &UINotificationProgressLaunchVSDFormCreate::sigVSDFormCreated,
     188            this, &UIWizardExportApp::setVsdLaunchForm);
     189    handleNotificationProgressNow(pNotification);
    227190}
    228191
Note: See TracChangeset for help on using the changeset viewer.

© 2025 Oracle Support Privacy / Do Not Sell My Info Terms of Use Trademark Policy Automated Access Etiquette