Changeset 98745 in vbox for trunk/src/VBox/Frontends
- Timestamp:
- Feb 27, 2023 10:36:45 AM (2 years ago)
- svn:sync-xref-src-repo-rev:
- 156050
- Location:
- trunk/src/VBox/Frontends/VirtualBox/src/runtime
- Files:
-
- 5 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/Frontends/VirtualBox/src/runtime/UIMachine.cpp
r98744 r98745 382 382 { 383 383 return uisession()->acquireMaxSnapshotIndex(strNameTemplate, uIndex); 384 } 385 386 void UIMachine::takeSnapshot(const QString &strName, const QString &strDescription) 387 { 388 return uisession()->takeSnapshot(strName, strDescription); 384 389 } 385 390 -
trunk/src/VBox/Frontends/VirtualBox/src/runtime/UIMachine.h
r98744 r98745 263 263 /** Recursively searches for a first snapshot matching name template conditions. */ 264 264 bool acquireMaxSnapshotIndex(const QString &strNameTemplate, ulong &uIndex); 265 266 /** Takes snapshot with name & description specified. */ 267 void takeSnapshot(const QString &strName, const QString &strDescription); 265 268 /** @} */ 266 269 -
trunk/src/VBox/Frontends/VirtualBox/src/runtime/UIMachineLogic.cpp
r98744 r98745 1621 1621 return; 1622 1622 1623 /* Take snapshot: */ 1624 UINotificationProgressSnapshotTake *pNotification = new UINotificationProgressSnapshotTake(machine(), 1625 strSnapshotName, 1626 strSnapshotDescription); 1627 gpNotificationCenter->append(pNotification); 1623 /* Take snapshot finally: */ 1624 uimachine()->takeSnapshot(strSnapshotName, strSnapshotDescription); 1628 1625 } 1629 1626 -
trunk/src/VBox/Frontends/VirtualBox/src/runtime/UISession.cpp
r98744 r98745 348 348 CSnapshot comSnapshot = comMachine.FindSnapshot(QString()); 349 349 return searchMaxSnapshotIndex(comMachine, comSnapshot, strNameTemplate, uIndex); 350 } 351 352 void UISession::takeSnapshot(const QString &strName, const QString &strDescription) 353 { 354 CMachine comMachine = machine(); 355 UINotificationProgressSnapshotTake *pNotification = new UINotificationProgressSnapshotTake(comMachine, 356 strName, 357 strDescription); 358 gpNotificationCenter->append(pNotification); 350 359 } 351 360 -
trunk/src/VBox/Frontends/VirtualBox/src/runtime/UISession.h
r98744 r98745 260 260 /** Recursively searches for a first snapshot matching name template conditions. */ 261 261 bool acquireMaxSnapshotIndex(const QString &strNameTemplate, ulong &uIndex); 262 263 /** Takes snapshot with name & description specified. */ 264 void takeSnapshot(const QString &strName, const QString &strDescription); 262 265 /** @} */ 263 266
Note:
See TracChangeset
for help on using the changeset viewer.