VirtualBox

Ignore:
Timestamp:
Jul 24, 2021 1:21:36 PM (4 years ago)
Author:
vboxsync
svn:sync-xref-src-repo-rev:
145888
Message:

FE/Qt: bugref:10067: Notification signature for final Clone VM wizard progress which should now go to center instead of modal dialog.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/Frontends/VirtualBox/src/notificationcenter/UINotificationObjects.h

    r90321 r90325  
    2929#include "CCloudClient.h"
    3030#include "CCloudMachine.h"
     31#include "CMachine.h"
    3132#include "CMedium.h"
    3233#include "CVirtualSystemDescription.h"
     
    108109    /** Holds the target medium options. */
    109110    QVector<KMediumVariant>  m_variants;
     111};
     112
     113/** UINotificationProgress extension for machine copy functionality. */
     114class SHARED_LIBRARY_STUFF UINotificationProgressMachineCopy : public UINotificationProgress
     115{
     116    Q_OBJECT;
     117
     118signals:
     119
     120    /** Notifies listeners about @a comMachine was copied. */
     121    void sigMachineCopied(const CMachine &comMachine);
     122
     123public:
     124
     125    /** Constructs medium move notification-progress.
     126      * @param  comSource     Brings the machine being copied.
     127      * @param  comTarget     Brings the machine being the target.
     128      * @param  enmCloneMode  Brings the cloning mode.
     129      * @param  options       Brings the cloning options. */
     130    UINotificationProgressMachineCopy(const CMachine &comSource,
     131                                      const CMachine &comTarget,
     132                                      const KCloneMode &enmCloneMode,
     133                                      const QVector<KCloneOptions> &options);
     134
     135protected:
     136
     137    /** Returns object name. */
     138    virtual QString name() const /* override final */;
     139    /** Returns object details. */
     140    virtual QString details() const /* override final */;
     141    /** Creates and returns started progress-wrapper. */
     142    virtual CProgress createProgress(COMResult &comResult) /* override final */;
     143
     144private slots:
     145
     146    /** Handles signal about progress being finished. */
     147    void sltHandleProgressFinished();
     148
     149private:
     150
     151    /** Holds the machine being copied. */
     152    CMachine                m_comSource;
     153    /** Holds the machine being the target. */
     154    CMachine                m_comTarget;
     155    /** Holds the machine cloning mode. */
     156    KCloneMode              m_enmCloneMode;
     157    /** Holds the target machine options. */
     158    QVector<KCloneOptions>  m_options;
    110159};
    111160
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