VirtualBox

Ignore:
Timestamp:
Oct 22, 2021 6:03:41 PM (3 years ago)
Author:
vboxsync
Message:

FE/Qt: bugref:10067: Extend UINotificationProgressSnapshotTake with signal notifying listeners about snapshot with particular id is taken.

Location:
trunk/src/VBox/Frontends/VirtualBox/src/notificationcenter
Files:
2 edited

Legend:

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

    r91966 r92013  
    25462546
    25472547    /* Initialize progress-wrapper: */
    2548     QUuid uSnapshotId;
    25492548    CProgress comProgress = comMachine.TakeSnapshot(m_strSnapshotName,
    25502549                                                    m_strSnapshotDescription,
    2551                                                     true, uSnapshotId);
     2550                                                    true, m_uSnapshotId);
    25522551    /* Store COM result: */
    25532552    comResult = m_comMachine;
     
    25602559    if (m_comSession.isNotNull())
    25612560        m_comSession.UnlockMachine();
     2561
     2562    if (!m_uSnapshotId.isNull())
     2563        emit sigSnapshotTaken(QVariant::fromValue(m_uSnapshotId));
    25622564}
    25632565
  • trunk/src/VBox/Frontends/VirtualBox/src/notificationcenter/UINotificationObjects.h

    r91969 r92013  
    14171417    Q_OBJECT;
    14181418
     1419signals:
     1420
     1421    /** Notifies listeners about snapshot with @a id taken. */
     1422    void sigSnapshotTaken(const QVariant &id);
     1423
    14191424public:
    14201425
     
    14531458    /** Holds the session being opened. */
    14541459    CSession  m_comSession;
     1460    /** Holds the taken snapshot id. */
     1461    QUuid     m_uSnapshotId;
    14551462};
    14561463
Note: See TracChangeset for help on using the changeset viewer.

© 2024 Oracle Support Privacy / Do Not Sell My Info Terms of Use Trademark Policy Automated Access Etiquette