- Timestamp:
- Oct 27, 2021 12:03:43 PM (3 years ago)
- Location:
- trunk/src/VBox/Frontends/VirtualBox/src
- Files:
-
- 6 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/Frontends/VirtualBox/src/notificationcenter/UINotificationObjects.cpp
r92089 r92096 522 522 523 523 /* static */ 524 void UINotificationMessage::cannotAcquireApplianceParameter(const CAppliance &comAppliance, 525 UINotificationCenter *pParent /* = 0 */) 526 { 527 createMessage( 528 QApplication::translate("UIMessageCenter", "Appliance failure ..."), 529 QApplication::translate("UIMessageCenter", "Failed to acquire appliance parameter.") + 530 UIErrorString::formatErrorInfo(comAppliance), 531 QString(), QString(), pParent); 532 } 533 534 /* static */ 524 535 void UINotificationMessage::cannotAcquireExtensionPackManagerParameter(const CExtPackManager &comEPManager) 525 536 { … … 865 876 QApplication::translate("UIMessageCenter", "Bad password ..."), 866 877 QApplication::translate("UIMessageCenter", "Bad password or authentication failure.") + 878 UIErrorString::formatErrorInfo(comAppliance), 879 QString(), QString(), pParent); 880 } 881 882 /* static */ 883 void UINotificationMessage::cannotInterpretAppliance(const CAppliance &comAppliance, UINotificationCenter *pParent /* = 0 */) 884 { 885 createMessage( 886 QApplication::translate("UIMessageCenter", "Can't interpret appliance ..."), 887 QApplication::translate("UIMessageCenter", "Failed to interpret appliance being imported.") + 867 888 UIErrorString::formatErrorInfo(comAppliance), 868 889 QString(), QString(), pParent); -
trunk/src/VBox/Frontends/VirtualBox/src/notificationcenter/UINotificationObjects.h
r92089 r92096 227 227 * @param comVBox Brings the object parameter get acquired from. */ 228 228 static void cannotAcquireVirtualBoxParameter(const CVirtualBox &comVBox); 229 /** Notifies about inability to acquire IAppliance parameter. 230 * @param comVBox Brings the object parameter get acquired from. */ 231 static void cannotAcquireApplianceParameter(const CAppliance &comAppliance, 232 UINotificationCenter *pParent = 0); 229 233 /** Notifies about inability to acquire IExtPackManager parameter. 230 234 * @param comVBox Brings the object parameter get acquired from. */ … … 348 352 * @param comAppliance Brings appliance trying to add disk scryption password. */ 349 353 static void cannotAddDiskEncryptionPassword(const CAppliance &comAppliance, UINotificationCenter *pParent = 0); 354 /** Notifies about inability to interpret appliance. 355 * @param comAppliance Brings appliance we are trying to interpret. */ 356 static void cannotInterpretAppliance(const CAppliance &comAppliance, UINotificationCenter *pParent = 0); 350 357 351 358 /** Notifies about inability to open extension pack. -
trunk/src/VBox/Frontends/VirtualBox/src/wizards/importappliance/UIWizardImportApp.cpp
r91969 r92096 29 29 #include "QIDialog.h" 30 30 #include "QIFileDialog.h" 31 #include "UIMessageCenter.h"32 31 #include "UINotificationCenter.h" 33 32 #include "UIWizardImportApp.h" … … 175 174 if (!comVBox.isOk()) 176 175 { 177 msgCenter().cannotCreateAppliance(comVBox, this);176 UINotificationMessage::cannotCreateAppliance(comVBox, notificationCenter()); 178 177 return false; 179 178 } … … 188 187 if (!comAppliance.isOk()) 189 188 { 190 msgCenter().cannotImportAppliance(comAppliance, this);189 UINotificationMessage::cannotInterpretAppliance(comAppliance, notificationCenter()); 191 190 return false; 192 191 } -
trunk/src/VBox/Frontends/VirtualBox/src/wizards/importappliance/UIWizardImportAppPageExpert.cpp
r91709 r92096 36 36 #include "UIFormEditorWidget.h" 37 37 #include "UIIconPool.h" 38 #include "UI MessageCenter.h"38 #include "UINotificationCenter.h" 39 39 #include "UIToolBox.h" 40 40 #include "UIVirtualBoxEventHandler.h" … … 465 465 fResult = comForm.isOk(); 466 466 if (!fResult) 467 msgCenter().cannotAcquireVirtualSystemDescriptionFormProperty(comForm);467 UINotificationMessage::cannotAcquireVirtualSystemDescriptionFormParameter(comForm, wizard()->notificationCenter()); 468 468 } 469 469 } -
trunk/src/VBox/Frontends/VirtualBox/src/wizards/importappliance/UIWizardImportAppPageSettings.cpp
r91709 r92096 30 30 #include "UIFilePathSelector.h" 31 31 #include "UIFormEditorWidget.h" 32 #include "UI MessageCenter.h"32 #include "UINotificationCenter.h" 33 33 #include "UIWizardImportApp.h" 34 34 #include "UIWizardImportAppPageSettings.h" … … 519 519 fResult = comForm.isOk(); 520 520 if (!fResult) 521 msgCenter().cannotAcquireVirtualSystemDescriptionFormProperty(comForm);521 UINotificationMessage::cannotAcquireVirtualSystemDescriptionFormParameter(comForm, wizard()->notificationCenter()); 522 522 } 523 523 } -
trunk/src/VBox/Frontends/VirtualBox/src/wizards/importappliance/UIWizardImportAppPageSource.cpp
r92045 r92096 29 29 #include "UIEmptyFilePathSelector.h" 30 30 #include "UIIconPool.h" 31 #include "UIMessageCenter.h"32 31 #include "UINotificationCenter.h" 33 32 #include "UIVirtualBoxEventHandler.h" … … 321 320 CAppliance comAppliance = comVBox.CreateAppliance(); 322 321 if (!comVBox.isOk()) 323 { 324 msgCenter().cannotCreateAppliance(comVBox, pWizard); 325 return; 326 } 322 return UINotificationMessage::cannotCreateAppliance(comVBox, pWizard->notificationCenter()); 327 323 328 324 /* Remember appliance: */ … … 339 335 QVector<CVirtualSystemDescription> descriptions = comCloudAppliance.GetVirtualSystemDescriptions(); 340 336 if (!comCloudAppliance.isOk()) 341 { 342 msgCenter().cannotAcquireVirtualSystemDescription(comCloudAppliance, pWizard); 343 return; 344 } 337 return UINotificationMessage::cannotAcquireApplianceParameter(comCloudAppliance, pWizard->notificationCenter()); 345 338 346 339 /* Make sure there is at least one virtual system description created: */
Note:
See TracChangeset
for help on using the changeset viewer.