Changeset 92132 in vbox for trunk/src/VBox
- Timestamp:
- Oct 28, 2021 10:30:59 AM (4 years ago)
- svn:sync-xref-src-repo-rev:
- 147951
- Location:
- trunk/src/VBox/Frontends/VirtualBox/src
- Files:
-
- 6 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/Frontends/VirtualBox/src/globals/UIMessageCenter.cpp
r92130 r92132 2028 2028 } 2029 2029 2030 void UIMessageCenter::cannotRunUnattendedGuestInstall(const CUnattended &comUnattendedInstall, QWidget *pParent /* = 0 */)2031 {2032 COMErrorInfo comErrorInfo = comUnattendedInstall.errorInfo(); \2033 error(pParent, MessageType_Error,2034 tr("An error has occured during unattended guest install setup."),2035 UIErrorString::formatErrorInfo(comErrorInfo));2036 }2037 2038 2030 bool UIMessageCenter::confirmOverridingFile(const QString &strPath, QWidget *pParent /* = 0*/) const 2039 2031 { -
trunk/src/VBox/Frontends/VirtualBox/src/globals/UIMessageCenter.h
r92130 r92132 457 457 void cannotCreateVirtualSystemDescription(const CAppliance &comAppliance, QWidget *pParent = 0) const; 458 458 bool confirmExportMachinesInSaveState(const QStringList &machineNames, QWidget *pParent = 0) const; 459 void cannotRunUnattendedGuestInstall(const CUnattended &comUnattendedInstall, QWidget *pParent = 0);460 459 bool confirmOverridingFile(const QString &strPath, QWidget *pParent = 0) const; 461 460 bool confirmOverridingFiles(const QVector<QString> &strPaths, QWidget *pParent = 0) const; -
trunk/src/VBox/Frontends/VirtualBox/src/manager/UIVirtualBoxManager.cpp
r92106 r92132 2419 2419 } 2420 2420 2421 bool UIVirtualBoxManager::checkUnattendedInstallError(CUnattended &comUnattendedInstaller) const 2422 { 2423 if (!comUnattendedInstaller.isOk()) 2424 { 2425 COMErrorInfo comErrorInfo = comUnattendedInstaller.errorInfo(); 2426 QString strErrorInfo = UIErrorString::formatErrorInfo(comErrorInfo); 2427 msgCenter().cannotRunUnattendedGuestInstall(comUnattendedInstaller); 2421 bool UIVirtualBoxManager::checkUnattendedInstallError(const CUnattended &comUnattended) const 2422 { 2423 if (!comUnattended.isOk()) 2424 { 2425 UINotificationMessage::cannotRunUnattendedGuestInstall(comUnattended); 2428 2426 return false; 2429 2427 } -
trunk/src/VBox/Frontends/VirtualBox/src/manager/UIVirtualBoxManager.h
r92106 r92132 355 355 bool isCloudProfileUpdateInProgress() const; 356 356 357 /* Checks if @p comUnattendedInstaller has any errors. If so shows an error message and return false, else returns true. */ 358 bool checkUnattendedInstallError(CUnattended &comUnattendedInstaller) const; 357 /** Checks if @a comUnattended has any errors. 358 * If so shows an error notification and returns false, else returns true. */ 359 bool checkUnattendedInstallError(const CUnattended &comUnattended) const; 359 360 /** @} */ 360 361 -
trunk/src/VBox/Frontends/VirtualBox/src/notificationcenter/UINotificationObjects.cpp
r92111 r92132 49 49 #include "CNATNetwork.h" 50 50 #include "CNetworkAdapter.h" 51 #include "CUnattended.h" 51 52 #include "CVRDEServer.h" 52 53 … … 1244 1245 1245 1246 /* static */ 1247 void UINotificationMessage::cannotRunUnattendedGuestInstall(const CUnattended &comUnattended) 1248 { 1249 createMessage( 1250 QApplication::translate("UIMessageCenter", "Can't run guest install ..."), 1251 QApplication::translate("UIMessageCenter", "Failed to run unattended guest installation.") + 1252 UIErrorString::formatErrorInfo(comUnattended)); 1253 } 1254 1255 /* static */ 1246 1256 void UINotificationMessage::cannotAttachUSBDevice(const CConsole &comConsole, const QString &strDevice) 1247 1257 { -
trunk/src/VBox/Frontends/VirtualBox/src/notificationcenter/UINotificationObjects.h
r92111 r92132 56 56 class CVirtualBoxErrorInfo; 57 57 class CVRDEServer; 58 class CUnattended; 58 59 59 60 /** UINotificationObject extension for message functionality. */ … … 478 479 * @param strMachineName Brings machine name. */ 479 480 static void cannotChangeSnapshot(const CSnapshot &comSnapshot, const QString &strSnapshotName, const QString &strMachineName); 481 482 /** Notifies about inability to run unattended guest install. 483 * @param comUnattended Brings the unattended being running guest install. */ 484 static void cannotRunUnattendedGuestInstall(const CUnattended &comUnattended); 480 485 /** @} */ 481 486
Note:
See TracChangeset
for help on using the changeset viewer.