Changeset 92013 in vbox for trunk/src/VBox/Frontends/VirtualBox
- Timestamp:
- Oct 22, 2021 6:03:41 PM (3 years ago)
- 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 2546 2546 2547 2547 /* Initialize progress-wrapper: */ 2548 QUuid uSnapshotId;2549 2548 CProgress comProgress = comMachine.TakeSnapshot(m_strSnapshotName, 2550 2549 m_strSnapshotDescription, 2551 true, uSnapshotId);2550 true, m_uSnapshotId); 2552 2551 /* Store COM result: */ 2553 2552 comResult = m_comMachine; … … 2560 2559 if (m_comSession.isNotNull()) 2561 2560 m_comSession.UnlockMachine(); 2561 2562 if (!m_uSnapshotId.isNull()) 2563 emit sigSnapshotTaken(QVariant::fromValue(m_uSnapshotId)); 2562 2564 } 2563 2565 -
trunk/src/VBox/Frontends/VirtualBox/src/notificationcenter/UINotificationObjects.h
r91969 r92013 1417 1417 Q_OBJECT; 1418 1418 1419 signals: 1420 1421 /** Notifies listeners about snapshot with @a id taken. */ 1422 void sigSnapshotTaken(const QVariant &id); 1423 1419 1424 public: 1420 1425 … … 1453 1458 /** Holds the session being opened. */ 1454 1459 CSession m_comSession; 1460 /** Holds the taken snapshot id. */ 1461 QUuid m_uSnapshotId; 1455 1462 }; 1456 1463
Note:
See TracChangeset
for help on using the changeset viewer.