Changeset 91896 in vbox
- Timestamp:
- Oct 20, 2021 1:42:05 PM (4 years ago)
- svn:sync-xref-src-repo-rev:
- 147700
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
TabularUnified trunk/src/VBox/Frontends/VirtualBox/src/wizards/exportappliance/UIWizardExportApp.cpp ¶
r91894 r91896 180 180 AssertReturnVoid(comClient.isNotNull() && comVSD.isNotNull()); 181 181 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); 227 190 } 228 191
Note:
See TracChangeset
for help on using the changeset viewer.