VirtualBox

Changeset 100730 in vbox


Ignore:
Timestamp:
Jul 28, 2023 3:08:35 PM (16 months ago)
Author:
vboxsync
Message:

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

Location:
trunk/src/VBox
Files:
8 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:
  • trunk/src/VBox/Main/idl/VirtualBox.xidl

    r100729 r100730  
    2691926919    <const name="OnExtPackInstalled" value="123">
    2692026920      <desc>
    26921         See <link to="IClipboardErrorEvent">IClipboardErrorEvent</link>.
     26921        See <link to="IExtPackInstalledEvent">IExtPackInstalledEvent</link>.
    2692226922      </desc>
    2692326923    </const>
     
    2728127281    >
    2728227282    <desc>Extension pack installed event.</desc>
    27283     <attribute name="filename" readonly="yes" type="wstring">
    27284       <desc>
    27285         Name of the extension pack install file.
     27283    <attribute name="name" readonly="yes" type="wstring">
     27284      <desc>
     27285        Name of the extension pack.
    2728627286      </desc>
    2728727287    </attribute>
  • trunk/src/VBox/Main/include/VirtualBoxImpl.h

    r100729 r100730  
    228228
    229229#ifdef VBOX_WITH_EXTPACK
    230     void i_onExtPackInstalled(const Utf8Str &aExtPackInstallFile);
     230    void i_onExtPackInstalled(const Utf8Str &aExtPackName);
    231231#endif
    232232
  • trunk/src/VBox/Main/src-server/VirtualBoxImpl.cpp

    r100729 r100730  
    37923792
    37933793#ifdef VBOX_WITH_EXTPACK
    3794 void VirtualBox::i_onExtPackInstalled(const Utf8Str &aExtPackInstallFile)
    3795 {
    3796     ::FireExtPackInstalledEvent(m->pEventSource, aExtPackInstallFile);
     3794void VirtualBox::i_onExtPackInstalled(const Utf8Str &aExtPackName)
     3795{
     3796    ::FireExtPackInstalledEvent(m->pEventSource, aExtPackName);
    37973797}
    37983798#endif
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