Changeset 55359 in vbox for trunk/src/VBox
- Timestamp:
- Apr 21, 2015 4:29:42 PM (10 years ago)
- Location:
- trunk/src/VBox/Frontends/VirtualBox/src
- Files:
-
- 8 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/Frontends/VirtualBox/src/globals/UIMainEventListener.cpp
r54657 r55359 35 35 # include "CSnapshotDeletedEvent.h" 36 36 # include "CSnapshotChangedEvent.h" 37 # include "CSnapshotRestoredEvent.h" 37 38 # include "CExtraDataCanChangeEvent.h" 38 39 # include "CExtraDataChangedEvent.h" … … 119 120 break; 120 121 } 122 case KVBoxEventType_OnSnapshotRestored: 123 { 124 CSnapshotRestoredEvent es(pEvent); 125 emit sigSnapshotRestore(es.GetMachineId(), es.GetSnapshotId()); 126 break; 127 } 121 128 // case KVBoxEventType_OnMediumRegistered: 122 129 // case KVBoxEventType_OnGuestPropertyChange: -
trunk/src/VBox/Frontends/VirtualBox/src/globals/UIMainEventListener.h
r54657 r55359 64 64 /** Notifies about snapshot with @a strSnapshotId was changed for the machine with @a strId. */ 65 65 void sigSnapshotChange(QString strId, QString strSnapshotId); 66 /** Notifies about snapshot with @a strSnapshotId was restored for the machine with @a strId. */ 67 void sigSnapshotRestore(QString strId, QString strSnapshotId); 66 68 67 69 /** Notifies about extra-data of the machine with @a strId can be changed for the key @a strKey to value @a strValue. */ -
trunk/src/VBox/Frontends/VirtualBox/src/medium/UIMediumEnumerator.cpp
r52730 r55359 81 81 connect(gVBoxEvents, SIGNAL(sigSnapshotDelete(QString, QString)), this, SLOT(sltHandleSnapshotDeleted(QString, QString))); 82 82 connect(gVBoxEvents, SIGNAL(sigSnapshotChange(QString, QString)), this, SLOT(sltHandleMachineUpdate(QString))); 83 connect(gVBoxEvents, SIGNAL(sigSnapshotRestore(QString, QString)), this, SLOT(sltHandleSnapshotDeleted(QString, QString))); 83 84 connect(gVBoxEvents, SIGNAL(sigMachineRegistered(QString, bool)), this, SLOT(sltHandleMachineRegistration(QString, bool))); 84 85 -
trunk/src/VBox/Frontends/VirtualBox/src/selector/UISelectorWindow.cpp
r55214 r55359 1448 1448 connect(gVBoxEvents, SIGNAL(sigSnapshotDelete(QString, QString)), this, SLOT(sltSnapshotChanged(QString))); 1449 1449 connect(gVBoxEvents, SIGNAL(sigSnapshotChange(QString, QString)), this, SLOT(sltSnapshotChanged(QString))); 1450 connect(gVBoxEvents, SIGNAL(sigSnapshotRestore(QString, QString)), this, SLOT(sltSnapshotChanged(QString))); 1450 1451 } 1451 1452 -
trunk/src/VBox/Frontends/VirtualBox/src/selector/UIVirtualBoxEventHandler.cpp
r54150 r55359 88 88 << KVBoxEventType_OnSnapshotTaken 89 89 << KVBoxEventType_OnSnapshotDeleted 90 << KVBoxEventType_OnSnapshotChanged; 90 << KVBoxEventType_OnSnapshotChanged 91 << KVBoxEventType_OnSnapshotRestored; 91 92 eventSourceVirtualBox.RegisterListener(m_mainEventListener, vboxEvents, TRUE); 92 93 AssertWrapperOk(eventSourceVirtualBox); … … 117 118 this, SIGNAL(sigSnapshotChange(QString, QString)), 118 119 Qt::QueuedConnection); 120 connect(pListener->getWrapped(), SIGNAL(sigSnapshotRestore(QString, QString)), 121 this, SIGNAL(sigSnapshotRestore(QString, QString)), 122 Qt::QueuedConnection); 119 123 } 120 124 -
trunk/src/VBox/Frontends/VirtualBox/src/selector/UIVirtualBoxEventHandler.h
r54657 r55359 46 46 /** Notifies about snapshot with @a strSnapshotId was changed for the machine with @a strId. */ 47 47 void sigSnapshotChange(QString strId, QString strSnapshotId); 48 /** Notifies about snapshot with @a strSnapshotId was restored for the machine with @a strId. */ 49 void sigSnapshotRestore(QString strId, QString strSnapshotId); 48 50 49 51 public: -
trunk/src/VBox/Frontends/VirtualBox/src/selector/graphics/chooser/UIGChooserModel.cpp
r53265 r55359 1282 1282 this, SLOT(sltSnapshotChanged(QString, QString))); 1283 1283 connect(gVBoxEvents, SIGNAL(sigSnapshotChange(QString, QString)), 1284 this, SLOT(sltSnapshotChanged(QString, QString))); 1285 connect(gVBoxEvents, SIGNAL(sigSnapshotRestore(QString, QString)), 1284 1286 this, SLOT(sltSnapshotChanged(QString, QString))); 1285 1287 } -
trunk/src/VBox/Frontends/VirtualBox/src/selector/graphics/details/UIGDetailsSet.cpp
r54228 r55359 344 344 connect(gVBoxEvents, SIGNAL(sigSnapshotDelete(QString, QString)), this, SLOT(sltMachineAttributesChange(QString))); 345 345 connect(gVBoxEvents, SIGNAL(sigSnapshotChange(QString, QString)), this, SLOT(sltMachineAttributesChange(QString))); 346 connect(gVBoxEvents, SIGNAL(sigSnapshotRestore(QString, QString)), this, SLOT(sltMachineAttributesChange(QString))); 346 347 347 348 /* Meidum-enumeration connections: */
Note:
See TracChangeset
for help on using the changeset viewer.