VirtualBox

Changeset 86545 in vbox for trunk/src/VBox/Frontends


Ignore:
Timestamp:
Oct 12, 2020 2:54:02 PM (4 years ago)
Author:
vboxsync
Message:

FE/Qt: bugref:9653: Event handling stuff, Chooser pane: Handle new signals about cloud profile being [un]registered and changed.

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

Legend:

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

    r86323 r86545  
    2929#include "CCanShowWindowEvent.h"
    3030#include "CClipboardModeChangedEvent.h"
     31#include "CCloudProfileChangedEvent.h"
     32#include "CCloudProfileRegisteredEvent.h"
    3133#include "CCloudProviderListChangedEvent.h"
    3234#include "CCloudProviderUninstallEvent.h"
     
    334336            break;
    335337        }
     338        case KVBoxEventType_OnCloudProfileRegistered:
     339        {
     340            CCloudProfileRegisteredEvent comEventSpecific(pEvent);
     341            emit sigCloudProfileRegistered(comEventSpecific.GetProviderId(), comEventSpecific.GetName(), comEventSpecific.GetRegistered());
     342            break;
     343        }
     344        case KVBoxEventType_OnCloudProfileChanged:
     345        {
     346            CCloudProfileChangedEvent comEventSpecific(pEvent);
     347            emit sigCloudProfileChanged(comEventSpecific.GetProviderId(), comEventSpecific.GetName());
     348            break;
     349        }
    336350
    337351        case KVBoxEventType_OnExtraDataCanChange:
  • trunk/src/VBox/Frontends/VirtualBox/src/globals/UIMainEventListener.h

    r86323 r86545  
    107107        /** Notifies about cloud provider list changed. */
    108108        void sigCloudProviderListChanged();
     109        /** Notifies about cloud profile with specified @a strName of provider with specified @a uProviderId is @a fRegistered. */
     110        void sigCloudProfileRegistered(const QUuid &uProviderId, const QString &strName, bool fRegistered);
     111        /** Notifies about cloud profile with specified @a strName of provider with specified @a uProviderId is changed. */
     112        void sigCloudProfileChanged(const QUuid &uProviderId, const QString &strName);
    109113    /** @} */
    110114
  • trunk/src/VBox/Frontends/VirtualBox/src/globals/UIVirtualBoxEventHandler.cpp

    r86541 r86545  
    5555    /** Notifies about cloud provider list changed. */
    5656    void sigCloudProviderListChanged();
     57    /** Notifies about cloud profile with specified @a strName of provider with specified @a uProviderId is @a fRegistered. */
     58    void sigCloudProfileRegistered(const QUuid &uProviderId, const QString &strName, bool fRegistered);
     59    /** Notifies about cloud profile with specified @a strName of provider with specified @a uProviderId is changed. */
     60    void sigCloudProfileChanged(const QUuid &uProviderId, const QString &strName);
    5761
    5862    /** Notifies about storage controller change.
     
    164168        << KVBoxEventType_OnCloudProviderListChanged
    165169        << KVBoxEventType_OnCloudProviderUninstall
     170        << KVBoxEventType_OnCloudProfileRegistered
     171        << KVBoxEventType_OnCloudProfileChanged
    166172        << KVBoxEventType_OnStorageControllerChanged
    167173        << KVBoxEventType_OnStorageDeviceChanged
     
    212218            this, SIGNAL(sigCloudProviderUninstall(QUuid)),
    213219            Qt::DirectConnection);
     220    connect(m_pQtListener->getWrapped(), SIGNAL(sigCloudProfileRegistered(QUuid, QString, bool)),
     221            this, SIGNAL(sigCloudProfileRegistered(QUuid, QString, bool)),
     222            Qt::DirectConnection);
     223    connect(m_pQtListener->getWrapped(), SIGNAL(sigCloudProfileChanged(QUuid, QString)),
     224            this, SIGNAL(sigCloudProfileChanged(QUuid, QString)),
     225            Qt::DirectConnection);
    214226    connect(m_pQtListener->getWrapped(), SIGNAL(sigStorageControllerChange(QUuid, QString)),
    215227            this, SIGNAL(sigStorageControllerChange(QUuid, QString)),
     
    324336            this, SIGNAL(sigCloudProviderUninstall(QUuid)),
    325337            Qt::BlockingQueuedConnection);
     338    connect(m_pProxy, SIGNAL(sigCloudProfileRegistered(QUuid, QString, bool)),
     339            this, SIGNAL(sigCloudProfileRegistered(QUuid, QString, bool)),
     340            Qt::QueuedConnection);
     341    connect(m_pProxy, SIGNAL(sigCloudProfileChanged(QUuid, QString)),
     342            this, SIGNAL(sigCloudProfileChanged(QUuid, QString)),
     343            Qt::QueuedConnection);
    326344    connect(m_pProxy, SIGNAL(sigStorageControllerChange(QUuid, QString)),
    327345            this, SIGNAL(sigStorageControllerChange(QUuid, QString)),
  • trunk/src/VBox/Frontends/VirtualBox/src/globals/UIVirtualBoxEventHandler.h

    r86154 r86545  
    6363    /** Notifies about cloud provider list changed. */
    6464    void sigCloudProviderListChanged();
     65    /** Notifies about cloud profile with specified @a strName of provider with specified @a uProviderId is @a fRegistered. */
     66    void sigCloudProfileRegistered(const QUuid &uProviderId, const QString &strName, bool fRegistered);
     67    /** Notifies about cloud profile with specified @a strName of provider with specified @a uProviderId is changed. */
     68    void sigCloudProfileChanged(const QUuid &uProviderId, const QString &strName);
    6569
    6670    /** Notifies about storage controller change.
  • trunk/src/VBox/Frontends/VirtualBox/src/manager/chooser/UIChooserAbstractModel.cpp

    r86544 r86545  
    818818            this, &UIChooserAbstractModel::sltSnapshotChanged);
    819819    connect(gVBoxEvents, &UIVirtualBoxEventHandler::sigCloudProviderListChanged,
     820            this, &UIChooserAbstractModel::sltHandleCloudProfileManagerCumulativeChange);
     821    connect(gVBoxEvents, &UIVirtualBoxEventHandler::sigCloudProfileRegistered,
     822            this, &UIChooserAbstractModel::sltHandleCloudProfileManagerCumulativeChange);
     823    connect(gVBoxEvents, &UIVirtualBoxEventHandler::sigCloudProfileChanged,
    820824            this, &UIChooserAbstractModel::sltHandleCloudProfileManagerCumulativeChange);
    821825    connect(gVBoxEvents, &UIVirtualBoxEventHandler::sigCloudProviderUninstall,
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