Changeset 100737 in vbox
- Timestamp:
- Jul 30, 2023 9:48:13 AM (16 months ago)
- Location:
- trunk/src/VBox
- Files:
-
- 9 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/Frontends/VirtualBox/src/extensionpackmanager/UIExtensionPackManager.cpp
r100730 r100737 390 390 connect(gVBoxEvents, &UIVirtualBoxEventHandler::sigExtensionPackInstalled, 391 391 this, &UIExtensionPackManagerWidget::sltHandleExtensionPackInstalled); 392 connect(gVBoxEvents, &UIVirtualBoxEventHandler::sigExtensionPackUninstalled, 393 this, &UIExtensionPackManagerWidget::sltHandleExtensionPackUninstalled); 392 394 393 395 /* Prepare stuff: */ -
trunk/src/VBox/Frontends/VirtualBox/src/globals/UIMainEventListener.cpp
r100730 r100737 52 52 #include "CExtraDataChangedEvent.h" 53 53 #include "CExtPackInstalledEvent.h" 54 #include "CExtPackUninstalledEvent.h" 54 55 #include "CGuestMonitorChangedEvent.h" 55 56 #include "CGuestProcessIOEvent.h" … … 631 632 CExtPackInstalledEvent comEventSpecific(pEvent); 632 633 emit sigExtensionPackInstalled(comEventSpecific.GetName()); 633 }; 634 break; 635 } 636 case KVBoxEventType_OnExtPackUninstalled: 637 { 638 CExtPackInstalledEvent comEventSpecific(pEvent); 639 emit sigExtensionPackUninstalled(comEventSpecific.GetName()); 640 break; 641 } 634 642 default: break; 635 643 } -
trunk/src/VBox/Frontends/VirtualBox/src/globals/UIMainEventListener.h
r100730 r100737 125 125 /** Notifies about ext.pack installation @a strname is the name of the installed ext. pack. */ 126 126 void sigExtensionPackInstalled(const QString &strName); 127 /** Notifies about ext.pack uninstallation @a strname is the name of the installed ext. pack. */ 128 void sigExtensionPackUninstalled(const QString &strName); 127 129 /** @} */ 128 130 -
trunk/src/VBox/Frontends/VirtualBox/src/globals/UIVirtualBoxEventHandler.cpp
r100730 r100737 93 93 * @param strName Passes extension pack name. */ 94 94 void sigExtensionPackInstalled(const QString &strName); 95 /** Notifies extension pack. unnstall. 96 * @param strName Passes extension pack name. */ 97 void sigExtensionPackUninstalled(const QString &strName); 95 98 96 99 public: … … 262 265 this, SIGNAL(sigExtensionPackInstalled(QString)), 263 266 Qt::DirectConnection); 267 connect(m_pQtListener->getWrapped(), SIGNAL(sigExtensionPackUninstalled(QString)), 268 this, SIGNAL(sigExtensionPackUninstalled(QString)), 269 Qt::DirectConnection); 264 270 } 265 271 … … 386 392 this, SIGNAL(sigExtensionPackInstalled(QString)), 387 393 Qt::QueuedConnection); 394 connect(m_pProxy, SIGNAL(sigExtensionPackUninstalled(QString)), 395 this, SIGNAL(sigExtensionPackUninstalled(QString)), 396 Qt::QueuedConnection); 388 397 } 389 398 -
trunk/src/VBox/Frontends/VirtualBox/src/globals/UIVirtualBoxEventHandler.h
r100730 r100737 101 101 * @param strName Passes extension pack name. */ 102 102 void sigExtensionPackInstalled(const QString &strName); 103 /** Notifies extension pack. uninstall. 104 * @param strName Passes extension pack name. */ 105 void sigExtensionPackUninstalled(const QString &strName); 103 106 104 107 public: -
trunk/src/VBox/Main/idl/VirtualBox.xidl
r100730 r100737 26922 26922 </desc> 26923 26923 </const> 26924 <const name="OnExtPackUninstalled" value="124"> 26925 <desc> 26926 See <link to="IExtPackUninstalledEvent">IExtPackUninstalledEvent</link>. 26927 </desc> 26928 </const> 26924 26929 <!-- End event marker --> 26925 <const name="End" value="12 4">26930 <const name="End" value="125"> 26926 26931 <desc> 26927 26932 Must be last event, used for iterations and structures relying on numerical event values. … … 27286 27291 </desc> 27287 27292 </attribute> 27288 27293 </interface> 27294 27295 <interface 27296 name="IExtPackUninstalledEvent" extends="IEvent" 27297 uuid="31aab263-95ef-48a4-9ce7-eaf0d3ae150f" 27298 wsmap="managed" autogen="VBoxEvent" id="OnExtPackUninstalled" 27299 > 27300 <desc>Extension pack uninstalled event.</desc> 27301 <attribute name="name" readonly="yes" type="wstring"> 27302 <desc> 27303 Name of the extension pack. 27304 </desc> 27305 </attribute> 27289 27306 </interface> 27290 27307 -
trunk/src/VBox/Main/include/VirtualBoxImpl.h
r100730 r100737 229 229 #ifdef VBOX_WITH_EXTPACK 230 230 void i_onExtPackInstalled(const Utf8Str &aExtPackName); 231 void i_onExtPackUninstalled(const Utf8Str &aExtPackName); 231 232 #endif 232 233 -
trunk/src/VBox/Main/src-all/ExtPackManagerImpl.cpp
r100729 r100737 3287 3287 { 3288 3288 if (!pExtPack) 3289 { 3289 3290 LogRel(("ExtPackManager: Successfully uninstalled extension pack '%s'.\n", a_pstrName->c_str())); 3291 m->pVirtualBox->i_onExtPackInstalled(*a_pstrName); 3292 } 3290 3293 else 3291 3294 hrc = setError(E_FAIL, -
trunk/src/VBox/Main/src-server/VirtualBoxImpl.cpp
r100730 r100737 3796 3796 ::FireExtPackInstalledEvent(m->pEventSource, aExtPackName); 3797 3797 } 3798 3799 void VirtualBox::i_onExtPackUninstalled(const Utf8Str &aExtPackName) 3800 { 3801 ::FireExtPackUninstalledEvent(m->pEventSource, aExtPackName); 3802 } 3798 3803 #endif 3799 3804
Note:
See TracChangeset
for help on using the changeset viewer.