- Timestamp:
- Jun 19, 2017 12:18:14 PM (8 years ago)
- Location:
- trunk/src/VBox/Frontends/VirtualBox/src/selector
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/Frontends/VirtualBox/src/selector/UISnapshotPane.cpp
r67424 r67470 624 624 } 625 625 626 void UISnapshotPane::sltHandleSnapshot Change(QString strMachineId)626 void UISnapshotPane::sltHandleSnapshotTake(QString strMachineId, QString strSnapshotId) 627 627 { 628 628 /* Make sure it's our VM: */ 629 629 if (strMachineId != m_strMachineId) 630 630 return; 631 632 LogRel(("GUI: Updating snapshot tree after TAKING snapshot with MachineID={%s}, SnapshotID={%s}...\n", 633 strMachineId.toUtf8().constData(), strSnapshotId.toUtf8().constData())); 634 635 // TODO: Refresh only necessary bits. 636 /* Refresh everything: */ 637 refreshAll(); 638 } 639 640 void UISnapshotPane::sltHandleSnapshotDelete(QString strMachineId, QString strSnapshotId) 641 { 642 /* Make sure it's our VM: */ 643 if (strMachineId != m_strMachineId) 644 return; 645 646 LogRel(("GUI: Updating snapshot tree after DELETING snapshot with MachineID={%s}, SnapshotID={%s}...\n", 647 strMachineId.toUtf8().constData(), strSnapshotId.toUtf8().constData())); 648 649 // TODO: Refresh only necessary bits. 650 /* Refresh everything: */ 651 refreshAll(); 652 } 653 654 void UISnapshotPane::sltHandleSnapshotChange(QString strMachineId, QString strSnapshotId) 655 { 656 /* Make sure it's our VM: */ 657 if (strMachineId != m_strMachineId) 658 return; 659 660 LogRel(("GUI: Updating snapshot tree after CHANGING snapshot with MachineID={%s}, SnapshotID={%s}...\n", 661 strMachineId.toUtf8().constData(), strSnapshotId.toUtf8().constData())); 662 663 // TODO: Refresh only necessary bits. 664 /* Refresh everything: */ 665 refreshAll(); 666 } 667 668 void UISnapshotPane::sltHandleSnapshotRestore(QString strMachineId, QString strSnapshotId) 669 { 670 /* Make sure it's our VM: */ 671 if (strMachineId != m_strMachineId) 672 return; 673 674 LogRel(("GUI: Updating snapshot tree after RESTORING snapshot with MachineID={%s}, SnapshotID={%s}...\n", 675 strMachineId.toUtf8().constData(), strSnapshotId.toUtf8().constData())); 631 676 632 677 // TODO: Refresh only necessary bits. … … 857 902 this, &UISnapshotPane::sltHandleSessionStateChange); 858 903 connect(gVBoxEvents, &UIVirtualBoxEventHandler::sigSnapshotTake, 859 this, &UISnapshotPane::sltHandleSnapshot Change);904 this, &UISnapshotPane::sltHandleSnapshotTake); 860 905 connect(gVBoxEvents, &UIVirtualBoxEventHandler::sigSnapshotDelete, 861 this, &UISnapshotPane::sltHandleSnapshot Change);906 this, &UISnapshotPane::sltHandleSnapshotDelete); 862 907 connect(gVBoxEvents, &UIVirtualBoxEventHandler::sigSnapshotChange, 863 908 this, &UISnapshotPane::sltHandleSnapshotChange); 864 909 connect(gVBoxEvents, &UIVirtualBoxEventHandler::sigSnapshotRestore, 865 this, &UISnapshotPane::sltHandleSnapshot Change);910 this, &UISnapshotPane::sltHandleSnapshotRestore); 866 911 867 912 /* Create read-write locker: */ -
trunk/src/VBox/Frontends/VirtualBox/src/selector/UISnapshotPane.h
r67424 r67470 93 93 void sltHandleSessionStateChange(QString strMachineId, KSessionState enmState); 94 94 95 /** Handles any snapshot change for machine with @a strMachineId. */ 96 void sltHandleSnapshotChange(QString strMachineId); 95 /** Handles snapshot take event for machine with @a strMachineId. */ 96 void sltHandleSnapshotTake(QString strMachineId, QString strSnapshotId); 97 /** Handles snapshot delete event for machine with @a strMachineId. */ 98 void sltHandleSnapshotDelete(QString strMachineId, QString strSnapshotId); 99 /** Handles snapshot change event for machine with @a strMachineId. */ 100 void sltHandleSnapshotChange(QString strMachineId, QString strSnapshotId); 101 /** Handles snapshot restore event for machine with @a strMachineId. */ 102 void sltHandleSnapshotRestore(QString strMachineId, QString strSnapshotId); 97 103 /** @} */ 98 104
Note:
See TracChangeset
for help on using the changeset viewer.