VirtualBox

Changeset 49645 in vbox


Ignore:
Timestamp:
Nov 25, 2013 6:03:38 PM (11 years ago)
Author:
vboxsync
svn:sync-xref-src-repo-rev:
90888
Message:

FE/Qt: Separate Qt signals for snapshot take/delete events.

Location:
trunk/src/VBox/Frontends/VirtualBox/src
Files:
8 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/Frontends/VirtualBox/src/globals/UIMainEventListener.cpp

    r47396 r49645  
    133133        {
    134134            CSnapshotTakenEvent es(pEvent);
    135             emit sigSnapshotChange(es.GetMachineId(), es.GetSnapshotId());
     135            emit sigSnapshotTake(es.GetMachineId(), es.GetSnapshotId());
    136136            break;
    137137        }
     
    139139        {
    140140            CSnapshotDeletedEvent es(pEvent);
    141             emit sigSnapshotChange(es.GetMachineId(), es.GetSnapshotId());
     141            emit sigSnapshotDelete(es.GetMachineId(), es.GetSnapshotId());
    142142            break;
    143143        }
  • trunk/src/VBox/Frontends/VirtualBox/src/globals/UIMainEventListener.h

    r47396 r49645  
    6363    void sigMachineRegistered(QString strId, bool fRegistered);
    6464    void sigSessionStateChange(QString strId, KSessionState state);
     65    void sigSnapshotTake(QString strId, QString strSnapshotId);
     66    void sigSnapshotDelete(QString strId, QString strSnapshotId);
    6567    void sigSnapshotChange(QString strId, QString strSnapshotId);
    6668    /* All Console Signals */
  • trunk/src/VBox/Frontends/VirtualBox/src/medium/UIMediumEnumerator.cpp

    r49589 r49645  
    7070    /* Prepare Main event handlers: */
    7171    connect(gVBoxEvents, SIGNAL(sigMachineDataChange(QString)), this, SLOT(sltHandleMachineUpdate(QString)));
     72    connect(gVBoxEvents, SIGNAL(sigSnapshotTake(QString, QString)), this, SLOT(sltHandleMachineUpdate(QString)));
     73    connect(gVBoxEvents, SIGNAL(sigSnapshotDelete(QString, QString)), this, SLOT(sltHandleMachineUpdate(QString)));
    7274    connect(gVBoxEvents, SIGNAL(sigSnapshotChange(QString, QString)), this, SLOT(sltHandleMachineUpdate(QString)));
    7375    connect(gVBoxEvents, SIGNAL(sigMachineRegistered(QString, bool)), this, SLOT(sltHandleMachineRegistration(QString, bool)));
  • trunk/src/VBox/Frontends/VirtualBox/src/selector/UISelectorWindow.cpp

    r49608 r49645  
    15171517    connect(gVBoxEvents, SIGNAL(sigMachineStateChange(QString, KMachineState)), this, SLOT(sltStateChanged(QString)));
    15181518    connect(gVBoxEvents, SIGNAL(sigSessionStateChange(QString, KSessionState)), this, SLOT(sltStateChanged(QString)));
     1519    connect(gVBoxEvents, SIGNAL(sigSnapshotTake(QString, QString)), this, SLOT(sltSnapshotChanged(QString)));
     1520    connect(gVBoxEvents, SIGNAL(sigSnapshotDelete(QString, QString)), this, SLOT(sltSnapshotChanged(QString)));
    15191521    connect(gVBoxEvents, SIGNAL(sigSnapshotChange(QString, QString)), this, SLOT(sltSnapshotChanged(QString)));
    15201522}
  • trunk/src/VBox/Frontends/VirtualBox/src/selector/UIVirtualBoxEventHandler.cpp

    r44529 r49645  
    8484            Qt::QueuedConnection);
    8585
     86    connect(pListener->getWrapped(), SIGNAL(sigSnapshotTake(QString, QString)),
     87            this, SIGNAL(sigSnapshotTake(QString, QString)),
     88            Qt::QueuedConnection);
     89
     90    connect(pListener->getWrapped(), SIGNAL(sigSnapshotDelete(QString, QString)),
     91            this, SIGNAL(sigSnapshotDelete(QString, QString)),
     92            Qt::QueuedConnection);
     93
    8694    connect(pListener->getWrapped(), SIGNAL(sigSnapshotChange(QString, QString)),
    8795            this, SIGNAL(sigSnapshotChange(QString, QString)),
  • trunk/src/VBox/Frontends/VirtualBox/src/selector/UIVirtualBoxEventHandler.h

    r44529 r49645  
    3838    void sigMachineRegistered(QString strId, bool fRegistered);
    3939    void sigSessionStateChange(QString strId, KSessionState state);
     40    void sigSnapshotTake(QString strId, QString strSnapshotId);
     41    void sigSnapshotDelete(QString strId, QString strSnapshotId);
    4042    void sigSnapshotChange(QString strId, QString strSnapshotId);
    4143
  • trunk/src/VBox/Frontends/VirtualBox/src/selector/graphics/chooser/UIGChooserModel.cpp

    r48316 r49645  
    12191219    connect(gVBoxEvents, SIGNAL(sigSessionStateChange(QString, KSessionState)),
    12201220            this, SLOT(sltSessionStateChanged(QString, KSessionState)));
     1221    connect(gVBoxEvents, SIGNAL(sigSnapshotTake(QString, QString)),
     1222            this, SLOT(sltSnapshotChanged(QString, QString)));
     1223    connect(gVBoxEvents, SIGNAL(sigSnapshotDelete(QString, QString)),
     1224            this, SLOT(sltSnapshotChanged(QString, QString)));
    12211225    connect(gVBoxEvents, SIGNAL(sigSnapshotChange(QString, QString)),
    12221226            this, SLOT(sltSnapshotChanged(QString, QString)));
  • trunk/src/VBox/Frontends/VirtualBox/src/selector/graphics/details/UIGDetailsSet.cpp

    r48260 r49645  
    343343    connect(gVBoxEvents, SIGNAL(sigMachineDataChange(QString)), this, SLOT(sltMachineAttributesChange(QString)));
    344344    connect(gVBoxEvents, SIGNAL(sigSessionStateChange(QString, KSessionState)), this, SLOT(sltMachineAttributesChange(QString)));
     345    connect(gVBoxEvents, SIGNAL(sigSnapshotTake(QString, QString)), this, SLOT(sltMachineAttributesChange(QString)));
     346    connect(gVBoxEvents, SIGNAL(sigSnapshotDelete(QString, QString)), this, SLOT(sltMachineAttributesChange(QString)));
    345347    connect(gVBoxEvents, SIGNAL(sigSnapshotChange(QString, QString)), this, SLOT(sltMachineAttributesChange(QString)));
    346348
Note: See TracChangeset for help on using the changeset viewer.

© 2025 Oracle Support Privacy / Do Not Sell My Info Terms of Use Trademark Policy Automated Access Etiquette