VirtualBox

Changeset 78324 in vbox for trunk/src


Ignore:
Timestamp:
Apr 26, 2019 1:20:04 PM (6 years ago)
Author:
vboxsync
Message:

FE/Qt: bugref:7127: Forgot to pass-through OnStorageControllerChanged event attributes in r129755.

Location:
trunk/src/VBox/Frontends/VirtualBox/src/globals
Files:
4 edited

Legend:

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

    r77989 r78324  
    307307        {
    308308            CStorageControllerChangedEvent comEventSpecific(pEvent);
    309             emit sigStorageControllerChange();
     309            emit sigStorageControllerChange(comEventSpecific.GetMachinId(),
     310                                            comEventSpecific.GetControllerName());
    310311            break;
    311312        }
  • trunk/src/VBox/Frontends/VirtualBox/src/globals/UIMainEventListener.h

    r77987 r78324  
    107107    /** @name VirtualBox Medium related signals
    108108      * @{ */
    109         /** Notifies about storage controller change. */
    110         void sigStorageControllerChange();
     109        /** Notifies about storage controller change.
     110          * @param  uMachineId         Brings the ID of machine corresponding controller belongs to.
     111          * @param  strControllerName  Brings the name of controller this event is related to. */
     112        void sigStorageControllerChange(const QUuid &uMachineId, const QString &strControllerName);
    111113        /** Notifies about storage device change.
    112114          * @param  comAttachment  Brings corresponding attachment.
  • trunk/src/VBox/Frontends/VirtualBox/src/globals/UIVirtualBoxEventHandler.cpp

    r77990 r78324  
    5757    void sigSnapshotRestore(const QUuid &uId, const QUuid &uSnapshotId);
    5858
    59     /** Notifies about storage controller change. */
    60     void sigStorageControllerChange();
     59    /** Notifies about storage controller change.
     60      * @param  uMachineId         Brings the ID of machine corresponding controller belongs to.
     61      * @param  strControllerName  Brings the name of controller this event is related to. */
     62    void sigStorageControllerChange(const QUuid &uMachineId, const QString &strControllerName);
    6163    /** Notifies about storage device change.
    6264      * @param  comAttachment  Brings corresponding attachment.
     
    226228            this, SIGNAL(sigSnapshotRestore(QUuid, QUuid)),
    227229            Qt::DirectConnection);
    228     connect(m_pQtListener->getWrapped(), SIGNAL(sigStorageControllerChange()),
    229             this, SIGNAL(sigStorageControllerChange()),
     230    connect(m_pQtListener->getWrapped(), SIGNAL(sigStorageControllerChange(QUuid, QString)),
     231            this, SIGNAL(sigStorageControllerChange(QUuid, QString)),
    230232            Qt::DirectConnection);
    231233    connect(m_pQtListener->getWrapped(), SIGNAL(sigStorageDeviceChange(CMediumAttachment, bool, bool)),
     
    238240            this, SIGNAL(sigMediumConfigChange(CMedium)),
    239241            Qt::DirectConnection);
    240     connect(m_pQtListener->getWrapped(), SIGNAL(sigMediumRegistered(const QUuid &, KDeviceType, bool)),
    241             this, SIGNAL(sigMediumRegistered(const QUuid &, KDeviceType, bool)),
     242    connect(m_pQtListener->getWrapped(), SIGNAL(sigMediumRegistered(QUuid, KDeviceType, bool)),
     243            this, SIGNAL(sigMediumRegistered(QUuid, KDeviceType, bool)),
    242244            Qt::DirectConnection);
    243245}
     
    339341            this, SIGNAL(sigSnapshotRestore(QUuid, QUuid)),
    340342            Qt::QueuedConnection);
    341     connect(m_pProxy, SIGNAL(sigStorageControllerChange()),
    342             this, SIGNAL(sigStorageControllerChange()),
     343    connect(m_pProxy, SIGNAL(sigStorageControllerChange(QUuid, QString)),
     344            this, SIGNAL(sigStorageControllerChange(QUuid, QString)),
    343345            Qt::QueuedConnection);
    344346    connect(m_pProxy, SIGNAL(sigStorageDeviceChange(CMediumAttachment, bool, bool)),
     
    351353            this, SIGNAL(sigMediumConfigChange(CMedium)),
    352354            Qt::QueuedConnection);
    353     connect(m_pProxy, SIGNAL(sigMediumRegistered(const QUuid &, KDeviceType, bool)),
    354             this, SIGNAL(sigMediumRegistered(const QUuid &, KDeviceType, bool)),
     355    connect(m_pProxy, SIGNAL(sigMediumRegistered(QUuid, KDeviceType, bool)),
     356            this, SIGNAL(sigMediumRegistered(QUuid, KDeviceType, bool)),
    355357            Qt::QueuedConnection);
    356358}
  • trunk/src/VBox/Frontends/VirtualBox/src/globals/UIVirtualBoxEventHandler.h

    r77990 r78324  
    6464    void sigSnapshotRestore(const QUuid &uId, const QUuid &uSnapshotId);
    6565
    66     /** Notifies about storage controller change. */
    67     void sigStorageControllerChange();
     66    /** Notifies about storage controller change.
     67      * @param  uMachineId         Brings the ID of machine corresponding controller belongs to.
     68      * @param  strControllerName  Brings the name of controller this event is related to. */
     69    void sigStorageControllerChange(const QUuid &uMachineId, const QString &strControllerName);
    6870    /** Notifies about storage device change.
    6971      * @param  comAttachment  Brings corresponding attachment.
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