VirtualBox

Changeset 100729 in vbox for trunk/src/VBox/Main


Ignore:
Timestamp:
Jul 28, 2023 12:24:15 PM (18 months ago)
Author:
vboxsync
Message:

API/FE/Qt: bugref:10466. bugref:10465. Adding a new event to signal successful installation of extension pack.

Location:
trunk/src/VBox/Main
Files:
4 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/Main/idl/VirtualBox.xidl

    r100606 r100729  
    2691726917      </desc>
    2691826918    </const>
     26919    <const name="OnExtPackInstalled" value="123">
     26920      <desc>
     26921        See <link to="IClipboardErrorEvent">IClipboardErrorEvent</link>.
     26922      </desc>
     26923    </const>
    2691926924    <!-- End event marker -->
    26920     <const name="End" value="123">
     26925    <const name="End" value="124">
    2692126926      <desc>
    2692226927        Must be last event, used for iterations and structures relying on numerical event values.
     
    2726827273      <desc>New execution state.</desc>
    2726927274    </attribute>
     27275  </interface>
     27276
     27277  <interface
     27278    name="IExtPackInstalledEvent" extends="IEvent"
     27279    uuid="29059fea-2c99-11ee-be56-0242ac120002"
     27280    wsmap="managed" autogen="VBoxEvent" id="OnExtPackInstalled"
     27281    >
     27282    <desc>Extension pack installed event.</desc>
     27283    <attribute name="filename" readonly="yes" type="wstring">
     27284      <desc>
     27285        Name of the extension pack install file.
     27286      </desc>
     27287    </attribute>
     27288
    2727027289  </interface>
    2727127290
  • trunk/src/VBox/Main/include/VirtualBoxImpl.h

    r98103 r100729  
    226226    void i_onUpdateAgentSettingsChanged(IUpdateAgent *aAgent, const Utf8Str &aAttributeHint);
    227227#endif /* VBOX_WITH_UPDATE_AGENT */
     228
     229#ifdef VBOX_WITH_EXTPACK
     230    void i_onExtPackInstalled(const Utf8Str &aExtPackInstallFile);
     231#endif
    228232
    229233#ifdef VBOX_WITH_CLOUD_NET
     
    500504
    501505#endif /* !MAIN_INCLUDED_VirtualBoxImpl_h */
    502 
  • trunk/src/VBox/Main/src-all/ExtPackManagerImpl.cpp

    r98262 r100729  
    31643164                    pExtPack->i_callInstalledHook(m->pVirtualBox, &autoLock, &ErrInfo.Core);
    31653165                    if (RT_SUCCESS(ErrInfo.Core.rc))
     3166                    {
    31663167                        LogRel(("ExtPackManager: Successfully installed extension pack '%s'.\n", pStrName->c_str()));
     3168                        m->pVirtualBox->i_onExtPackInstalled(*pStrName);
     3169                    }
    31673170                    else
    31683171                    {
  • trunk/src/VBox/Main/src-server/VirtualBoxImpl.cpp

    r99739 r100729  
    37913791#endif /* VBOX_WITH_UPDATE_AGENT */
    37923792
     3793#ifdef VBOX_WITH_EXTPACK
     3794void VirtualBox::i_onExtPackInstalled(const Utf8Str &aExtPackInstallFile)
     3795{
     3796    ::FireExtPackInstalledEvent(m->pEventSource, aExtPackInstallFile);
     3797}
     3798#endif
     3799
    37933800/**
    37943801 *  @note Locks the list of other objects for reading.
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