VirtualBox

Changeset 30345 in vbox for trunk/src/VBox/Main/include


Ignore:
Timestamp:
Jun 21, 2010 4:49:59 PM (15 years ago)
Author:
vboxsync
svn:sync-xref-src-repo-rev:
62921
Message:

Main: more events

Location:
trunk/src/VBox/Main/include
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/Main/include/EventImpl.h

    r30331 r30345  
    6969
    7070class ATL_NO_VTABLE EventSource :
     71    public VirtualBoxBase,
    7172    public VirtualBoxSupportErrorInfoImpl<EventSource, IEventSource>,
    7273    public VirtualBoxSupportTranslation<EventSource>,
    73     public VirtualBoxBase,
    7474    VBOX_SCRIPTABLE_IMPL(IEventSource)
    7575{
     
    8888    END_COM_MAP()
    8989
    90     EventSource() {}
    91     virtual ~EventSource() {}
     90    DECLARE_EMPTY_CTOR_DTOR (EventSource)
    9291
    9392    HRESULT FinalConstruct();
     
    9594
    9695    // public initializer/uninitializer for internal purposes only
    97     HRESULT init ();
     96    HRESULT init (IUnknown * aParent);
    9897    void uninit();
    9998
    10099    // IEventSource methods
     100    STDMETHOD(CreateListener)(IEventListener ** aListener);
    101101    STDMETHOD(RegisterListener)(IEventListener * aListener,
    102102                                ComSafeArrayIn(VBoxEventType_T, aInterested),
  • trunk/src/VBox/Main/include/VirtualBoxCallbackImpl.h

    r29519 r30345  
    2525    VBOX_SCRIPTABLE_IMPL(ILocalOwner),
    2626    VBOX_SCRIPTABLE_IMPL(IConsoleCallback),
    27     VBOX_SCRIPTABLE_IMPL(IVirtualBoxCallback)
     27    VBOX_SCRIPTABLE_IMPL(IVirtualBoxCallback),
     28    VBOX_SCRIPTABLE_IMPL(IEventListener)
    2829#ifdef RT_OS_WINDOWS
    2930    , public CComCoClass<CallbackWrapper, &CLSID_CallbackWrapper>
     
    4546        COM_INTERFACE_ENTRY(IVirtualBoxCallback)
    4647        COM_INTERFACE_ENTRY(IConsoleCallback)
     48        COM_INTERFACE_ENTRY(IEventListener)
    4749    END_COM_MAP()
    4850
     
    9597    STDMETHOD(OnShowWindow)(ULONG64 *winId);
    9698
     99    // IEventListener
     100    STDMETHOD(HandleEvent)(IEvent *aEvent);
     101
    97102    // for VirtualBoxSupportErrorInfoImpl
    98103    static const wchar_t *getComponentName() { return L"CallbackWrapper"; }
  • trunk/src/VBox/Main/include/VirtualBoxImpl.h

    r30207 r30345  
    9696         CONNECTION_POINT_ENTRY(IID_IVirtualBoxCallback)
    9797    END_CONNECTION_POINT_MAP()
    98    
     98
    9999    typedef CComDynamicUnkArray EventListenersList;
    100100#endif
     
    130130    STDMETHOD(COMGETTER(PerformanceCollector)) (IPerformanceCollector **aPerformanceCollector);
    131131    STDMETHOD(COMGETTER(DHCPServers)) (ComSafeArrayOut (IDHCPServer *, aDHCPServers));
     132    STDMETHOD(COMGETTER(EventSource)) (IEventSource ** aEventSource);
    132133
    133134    /* IVirtualBox methods */
Note: See TracChangeset for help on using the changeset viewer.

© 2025 Oracle Support Privacy / Do Not Sell My Info Terms of Use Trademark Policy Automated Access Etiquette