- Timestamp:
- Oct 21, 2021 2:43:09 PM (3 years ago)
- Location:
- trunk/src/VBox/Frontends/VirtualBox/src
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/Frontends/VirtualBox/src/notificationcenter/UINotificationObjects.cpp
r91878 r91959 2785 2785 2786 2786 /********************************************************************************************************************************* 2787 * Class UINotificationProgressAppliance Export implementation.*2788 *********************************************************************************************************************************/ 2789 2790 UINotificationProgressAppliance Export::UINotificationProgressApplianceExport(const CAppliance &comAppliance,2791 2792 2793 2787 * Class UINotificationProgressApplianceWrite implementation. * 2788 *********************************************************************************************************************************/ 2789 2790 UINotificationProgressApplianceWrite::UINotificationProgressApplianceWrite(const CAppliance &comAppliance, 2791 const QString &strFormat, 2792 const QVector<KExportOptions> &options, 2793 const QString &strPath) 2794 2794 : m_comAppliance(comAppliance) 2795 2795 , m_strFormat(strFormat) … … 2799 2799 } 2800 2800 2801 QString UINotificationProgressAppliance Export::name() const2802 { 2803 return UINotificationProgress::tr(" Exporting appliance ...");2804 } 2805 2806 QString UINotificationProgressAppliance Export::details() const2801 QString UINotificationProgressApplianceWrite::name() const 2802 { 2803 return UINotificationProgress::tr("Writing appliance ..."); 2804 } 2805 2806 QString UINotificationProgressApplianceWrite::details() const 2807 2807 { 2808 2808 return UINotificationProgress::tr("<b>To:</b> %1").arg(m_strPath); 2809 2809 } 2810 2810 2811 CProgress UINotificationProgressAppliance Export::createProgress(COMResult &comResult)2811 CProgress UINotificationProgressApplianceWrite::createProgress(COMResult &comResult) 2812 2812 { 2813 2813 /* Initialize progress-wrapper: */ -
trunk/src/VBox/Frontends/VirtualBox/src/notificationcenter/UINotificationObjects.h
r91878 r91959 1550 1550 }; 1551 1551 1552 /** UINotificationProgress extension for export appliance functionality. */1553 class SHARED_LIBRARY_STUFF UINotificationProgressAppliance Export: public UINotificationProgress1554 { 1555 Q_OBJECT; 1556 1557 public: 1558 1559 /** Constructs export appliance notification-progress.1560 * @param comAppliance Brings the appliance being exported.1552 /** UINotificationProgress extension for appliance write functionality. */ 1553 class SHARED_LIBRARY_STUFF UINotificationProgressApplianceWrite : public UINotificationProgress 1554 { 1555 Q_OBJECT; 1556 1557 public: 1558 1559 /** Constructs appliance write notification-progress. 1560 * @param comAppliance Brings the appliance being written. 1561 1561 * @param strFormat Brings the appliance format. 1562 1562 * @param options Brings the export options to be taken into account. 1563 1563 * @param strPath Brings the appliance path. */ 1564 UINotificationProgressAppliance Export(const CAppliance &comAppliance,1565 1566 1567 1568 1569 protected: 1570 1571 /** Returns object name. */ 1572 virtual QString name() const /* override final */; 1573 /** Returns object details. */ 1574 virtual QString details() const /* override final */; 1575 /** Creates and returns started progress-wrapper. */ 1576 virtual CProgress createProgress(COMResult &comResult) /* override final */; 1577 1578 private: 1579 1580 /** Holds the appliance being exported. */1564 UINotificationProgressApplianceWrite(const CAppliance &comAppliance, 1565 const QString &strFormat, 1566 const QVector<KExportOptions> &options, 1567 const QString &strPath); 1568 1569 protected: 1570 1571 /** Returns object name. */ 1572 virtual QString name() const /* override final */; 1573 /** Returns object details. */ 1574 virtual QString details() const /* override final */; 1575 /** Creates and returns started progress-wrapper. */ 1576 virtual CProgress createProgress(COMResult &comResult) /* override final */; 1577 1578 private: 1579 1580 /** Holds the appliance being written. */ 1581 1581 CAppliance m_comAppliance; 1582 1582 /** Holds the appliance format. */ -
trunk/src/VBox/Frontends/VirtualBox/src/wizards/exportappliance/UIWizardExportApp.cpp
r91948 r91959 310 310 { 311 311 /* Export appliance: */ 312 UINotificationProgressAppliance Export *pNotification = new UINotificationProgressApplianceExport(comAppliance,313 314 315 312 UINotificationProgressApplianceWrite *pNotification = new UINotificationProgressApplianceWrite(comAppliance, 313 format(), 314 options, 315 uri()); 316 316 if (cloudExportMode() == CloudExportMode_DoNotAsk) 317 317 gpNotificationCenter->append(pNotification); … … 323 323 { 324 324 /* Export appliance: */ 325 UINotificationProgressAppliance Export *pNotification = new UINotificationProgressApplianceExport(comAppliance,326 327 328 325 UINotificationProgressApplianceWrite *pNotification = new UINotificationProgressApplianceWrite(comAppliance, 326 format(), 327 options, 328 uri()); 329 329 gpNotificationCenter->append(pNotification); 330 330 }
Note:
See TracChangeset
for help on using the changeset viewer.