VirtualBox

Ignore:
Timestamp:
Jul 28, 2023 3:08:35 PM (19 months ago)
Author:
vboxsync
svn:sync-xref-src-repo-rev:
158593
Message:

API/FE/Qt: bugref:10466. bugref:10465. Adding GUI side of the extension pack install event handling.

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

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/Frontends/VirtualBox/src/extensionpackmanager/UIExtensionPackManager.cpp

    r100027 r100730  
    4545#include "UIMessageCenter.h"
    4646#include "UINotificationCenter.h"
     47#include "UIVirtualBoxEventHandler.h"
    4748
    4849/* COM includes: */
     
    386387    uiCommon().setHelpKeyword(this, "ext-pack-manager");
    387388    connect(&uiCommon(), &UICommon::sigExtensionPackInstalled,
     389            this, &UIExtensionPackManagerWidget::sltHandleExtensionPackInstalled);
     390    connect(gVBoxEvents, &UIVirtualBoxEventHandler::sigExtensionPackInstalled,
    388391            this, &UIExtensionPackManagerWidget::sltHandleExtensionPackInstalled);
    389392
  • trunk/src/VBox/Frontends/VirtualBox/src/globals/UIMainEventListener.cpp

    r100729 r100730  
    630630        {
    631631            CExtPackInstalledEvent comEventSpecific(pEvent);
    632             //printf("Ext. pack installed from the file: %s\n", qPrintable(comEventSpecific.GetFilename()));
     632            emit sigExtensionPackInstalled(comEventSpecific.GetName());
    633633        };
    634634        default: break;
  • trunk/src/VBox/Frontends/VirtualBox/src/globals/UIMainEventListener.h

    r100606 r100730  
    123123        /** Notifies about cloud profile with specified @a strName of provider with specified @a uProviderId is changed. */
    124124        void sigCloudProfileChanged(const QUuid &uProviderId, const QString &strName);
     125        /** Notifies about ext.pack installation @a strname is the name of the installed ext. pack. */
     126        void sigExtensionPackInstalled(const QString &strName);
    125127    /** @} */
    126128
  • trunk/src/VBox/Frontends/VirtualBox/src/globals/UIVirtualBoxEventHandler.cpp

    r100729 r100730  
    9090      * @param  fRegistered    Brings whether medium is registered or unregistered. */
    9191    void sigMediumRegistered(const QUuid &uMediumId, KDeviceType enmMediumType, bool fRegistered);
     92    /** Notifies extension pack. install.
     93     *  @param  strName      Passes extension pack name. */
     94    void sigExtensionPackInstalled(const QString &strName);
    9295
    9396public:
     
    256259            this, SIGNAL(sigMediumRegistered(QUuid, KDeviceType, bool)),
    257260            Qt::DirectConnection);
     261    connect(m_pQtListener->getWrapped(), SIGNAL(sigExtensionPackInstalled(QString)),
     262            this, SIGNAL(sigExtensionPackInstalled(QString)),
     263            Qt::DirectConnection);
    258264}
    259265
     
    377383            this, SIGNAL(sigMediumRegistered(QUuid, KDeviceType, bool)),
    378384            Qt::QueuedConnection);
     385    connect(m_pProxy, SIGNAL(sigExtensionPackInstalled(QString)),
     386            this, SIGNAL(sigExtensionPackInstalled(QString)),
     387            Qt::QueuedConnection);
    379388}
    380389
  • trunk/src/VBox/Frontends/VirtualBox/src/globals/UIVirtualBoxEventHandler.h

    r98309 r100730  
    9898      * @param  fRegistered    Brings whether medium is registered or unregistered. */
    9999    void sigMediumRegistered(const QUuid &uMediumId, KDeviceType enmMediumType, bool fRegistered);
     100    /** Notifies extension pack. install.
     101     *  @param  strName      Passes extension pack name. */
     102    void sigExtensionPackInstalled(const QString &strName);
    100103
    101104public:
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