Changeset 30345 in vbox for trunk/src/VBox/Main/include
- Timestamp:
- Jun 21, 2010 4:49:59 PM (15 years ago)
- svn:sync-xref-src-repo-rev:
- 62921
- Location:
- trunk/src/VBox/Main/include
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/Main/include/EventImpl.h
r30331 r30345 69 69 70 70 class ATL_NO_VTABLE EventSource : 71 public VirtualBoxBase, 71 72 public VirtualBoxSupportErrorInfoImpl<EventSource, IEventSource>, 72 73 public VirtualBoxSupportTranslation<EventSource>, 73 public VirtualBoxBase,74 74 VBOX_SCRIPTABLE_IMPL(IEventSource) 75 75 { … … 88 88 END_COM_MAP() 89 89 90 EventSource() {} 91 virtual ~EventSource() {} 90 DECLARE_EMPTY_CTOR_DTOR (EventSource) 92 91 93 92 HRESULT FinalConstruct(); … … 95 94 96 95 // public initializer/uninitializer for internal purposes only 97 HRESULT init ( );96 HRESULT init (IUnknown * aParent); 98 97 void uninit(); 99 98 100 99 // IEventSource methods 100 STDMETHOD(CreateListener)(IEventListener ** aListener); 101 101 STDMETHOD(RegisterListener)(IEventListener * aListener, 102 102 ComSafeArrayIn(VBoxEventType_T, aInterested), -
trunk/src/VBox/Main/include/VirtualBoxCallbackImpl.h
r29519 r30345 25 25 VBOX_SCRIPTABLE_IMPL(ILocalOwner), 26 26 VBOX_SCRIPTABLE_IMPL(IConsoleCallback), 27 VBOX_SCRIPTABLE_IMPL(IVirtualBoxCallback) 27 VBOX_SCRIPTABLE_IMPL(IVirtualBoxCallback), 28 VBOX_SCRIPTABLE_IMPL(IEventListener) 28 29 #ifdef RT_OS_WINDOWS 29 30 , public CComCoClass<CallbackWrapper, &CLSID_CallbackWrapper> … … 45 46 COM_INTERFACE_ENTRY(IVirtualBoxCallback) 46 47 COM_INTERFACE_ENTRY(IConsoleCallback) 48 COM_INTERFACE_ENTRY(IEventListener) 47 49 END_COM_MAP() 48 50 … … 95 97 STDMETHOD(OnShowWindow)(ULONG64 *winId); 96 98 99 // IEventListener 100 STDMETHOD(HandleEvent)(IEvent *aEvent); 101 97 102 // for VirtualBoxSupportErrorInfoImpl 98 103 static const wchar_t *getComponentName() { return L"CallbackWrapper"; } -
trunk/src/VBox/Main/include/VirtualBoxImpl.h
r30207 r30345 96 96 CONNECTION_POINT_ENTRY(IID_IVirtualBoxCallback) 97 97 END_CONNECTION_POINT_MAP() 98 98 99 99 typedef CComDynamicUnkArray EventListenersList; 100 100 #endif … … 130 130 STDMETHOD(COMGETTER(PerformanceCollector)) (IPerformanceCollector **aPerformanceCollector); 131 131 STDMETHOD(COMGETTER(DHCPServers)) (ComSafeArrayOut (IDHCPServer *, aDHCPServers)); 132 STDMETHOD(COMGETTER(EventSource)) (IEventSource ** aEventSource); 132 133 133 134 /* IVirtualBox methods */
Note:
See TracChangeset
for help on using the changeset viewer.