VirtualBox

Changeset 55359 in vbox for trunk/src/VBox


Ignore:
Timestamp:
Apr 21, 2015 4:29:42 PM (10 years ago)
Author:
vboxsync
Message:

FE/Qt: Handling new snapshot restore event, similarly to previous case.

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  
    3535# include "CSnapshotDeletedEvent.h"
    3636# include "CSnapshotChangedEvent.h"
     37# include "CSnapshotRestoredEvent.h"
    3738# include "CExtraDataCanChangeEvent.h"
    3839# include "CExtraDataChangedEvent.h"
     
    119120            break;
    120121        }
     122        case KVBoxEventType_OnSnapshotRestored:
     123        {
     124            CSnapshotRestoredEvent es(pEvent);
     125            emit sigSnapshotRestore(es.GetMachineId(), es.GetSnapshotId());
     126            break;
     127        }
    121128//        case KVBoxEventType_OnMediumRegistered:
    122129//        case KVBoxEventType_OnGuestPropertyChange:
  • trunk/src/VBox/Frontends/VirtualBox/src/globals/UIMainEventListener.h

    r54657 r55359  
    6464    /** Notifies about snapshot with @a strSnapshotId was changed for the machine with @a strId. */
    6565    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);
    6668
    6769    /** 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  
    8181    connect(gVBoxEvents, SIGNAL(sigSnapshotDelete(QString, QString)), this, SLOT(sltHandleSnapshotDeleted(QString, QString)));
    8282    connect(gVBoxEvents, SIGNAL(sigSnapshotChange(QString, QString)), this, SLOT(sltHandleMachineUpdate(QString)));
     83    connect(gVBoxEvents, SIGNAL(sigSnapshotRestore(QString, QString)), this, SLOT(sltHandleSnapshotDeleted(QString, QString)));
    8384    connect(gVBoxEvents, SIGNAL(sigMachineRegistered(QString, bool)), this, SLOT(sltHandleMachineRegistration(QString, bool)));
    8485
  • trunk/src/VBox/Frontends/VirtualBox/src/selector/UISelectorWindow.cpp

    r55214 r55359  
    14481448    connect(gVBoxEvents, SIGNAL(sigSnapshotDelete(QString, QString)), this, SLOT(sltSnapshotChanged(QString)));
    14491449    connect(gVBoxEvents, SIGNAL(sigSnapshotChange(QString, QString)), this, SLOT(sltSnapshotChanged(QString)));
     1450    connect(gVBoxEvents, SIGNAL(sigSnapshotRestore(QString, QString)), this, SLOT(sltSnapshotChanged(QString)));
    14501451}
    14511452
  • trunk/src/VBox/Frontends/VirtualBox/src/selector/UIVirtualBoxEventHandler.cpp

    r54150 r55359  
    8888        << KVBoxEventType_OnSnapshotTaken
    8989        << KVBoxEventType_OnSnapshotDeleted
    90         << KVBoxEventType_OnSnapshotChanged;
     90        << KVBoxEventType_OnSnapshotChanged
     91        << KVBoxEventType_OnSnapshotRestored;
    9192    eventSourceVirtualBox.RegisterListener(m_mainEventListener, vboxEvents, TRUE);
    9293    AssertWrapperOk(eventSourceVirtualBox);
     
    117118            this, SIGNAL(sigSnapshotChange(QString, QString)),
    118119            Qt::QueuedConnection);
     120    connect(pListener->getWrapped(), SIGNAL(sigSnapshotRestore(QString, QString)),
     121            this, SIGNAL(sigSnapshotRestore(QString, QString)),
     122            Qt::QueuedConnection);
    119123}
    120124
  • trunk/src/VBox/Frontends/VirtualBox/src/selector/UIVirtualBoxEventHandler.h

    r54657 r55359  
    4646    /** Notifies about snapshot with @a strSnapshotId was changed for the machine with @a strId. */
    4747    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);
    4850
    4951public:
  • trunk/src/VBox/Frontends/VirtualBox/src/selector/graphics/chooser/UIGChooserModel.cpp

    r53265 r55359  
    12821282            this, SLOT(sltSnapshotChanged(QString, QString)));
    12831283    connect(gVBoxEvents, SIGNAL(sigSnapshotChange(QString, QString)),
     1284            this, SLOT(sltSnapshotChanged(QString, QString)));
     1285    connect(gVBoxEvents, SIGNAL(sigSnapshotRestore(QString, QString)),
    12841286            this, SLOT(sltSnapshotChanged(QString, QString)));
    12851287}
  • trunk/src/VBox/Frontends/VirtualBox/src/selector/graphics/details/UIGDetailsSet.cpp

    r54228 r55359  
    344344    connect(gVBoxEvents, SIGNAL(sigSnapshotDelete(QString, QString)), this, SLOT(sltMachineAttributesChange(QString)));
    345345    connect(gVBoxEvents, SIGNAL(sigSnapshotChange(QString, QString)), this, SLOT(sltMachineAttributesChange(QString)));
     346    connect(gVBoxEvents, SIGNAL(sigSnapshotRestore(QString, QString)), this, SLOT(sltMachineAttributesChange(QString)));
    346347
    347348    /* Meidum-enumeration connections: */
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