VirtualBox

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


Ignore:
Timestamp:
Jun 15, 2010 3:49:27 PM (15 years ago)
Author:
vboxsync
svn:sync-xref-src-repo-rev:
62689
Message:

Main: console COM events, cleanup, locking

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

Legend:

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

    r29965 r30207  
    4343#ifdef VBOX_WITH_GUEST_PROPS
    4444# include <VBox/HostServices/GuestPropertySvc.h>  /* For the property notification callback */
     45#endif
     46
     47#ifdef RT_OS_WINDOWS
     48# include "win/VBoxComEvents.h"
    4549#endif
    4650
     
    7983    public VirtualBoxSupportTranslation<Console>,
    8084    VBOX_SCRIPTABLE_IMPL(IConsole)
     85#ifdef RT_OS_WINDOWS
     86    , public CComCoClass<Console, &CLSID_Console>
     87    , public IConnectionPointContainerImpl<Console>
     88    , public IConnectionPointImpl<Console, &IID_IConsoleCallback, CComDynamicUnkArray>
     89#endif
    8190{
    8291    Q_OBJECT
     
    92101        COM_INTERFACE_ENTRY(IConsole)
    93102        COM_INTERFACE_ENTRY(IDispatch)
     103        COM_INTERFACE_ENTRY(IConnectionPointContainer)
    94104    END_COM_MAP()
     105
     106#ifdef RT_OS_WINDOWS
     107    BEGIN_CONNECTION_POINT_MAP(Console)
     108         CONNECTION_POINT_ENTRY(IID_IConsoleCallback)
     109    END_CONNECTION_POINT_MAP()
     110#endif
     111
    95112
    96113    Console();
     
    713730    mCallbackData;
    714731
     732#ifdef RT_OS_WINDOWS
     733    ComEventsHelper                     mComEvHelper;
     734#endif
     735   
    715736    friend struct VMTask;
    716737};
  • trunk/src/VBox/Main/include/VirtualBoxImpl.h

    r29925 r30207  
    9696         CONNECTION_POINT_ENTRY(IID_IVirtualBoxCallback)
    9797    END_CONNECTION_POINT_MAP()
     98   
     99    typedef CComDynamicUnkArray EventListenersList;
    98100#endif
    99101
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