X-Git-Url: https://git.sesse.net/?a=blobdiff_plain;f=projects%2Factivex%2Fconnectioncontainer.h;h=e4f9589f03383edc00e0dc8887d62647d5e5eb9e;hb=4da38d89222cc2b5cd971b25d50e3b6af4e36958;hp=704c57fd1716075f7b8e420ce23577a620b0c704;hpb=2e888fde246ecb0d346ecc02e7df0c82724f02b9;p=vlc diff --git a/projects/activex/connectioncontainer.h b/projects/activex/connectioncontainer.h index 704c57fd17..e4f9589f03 100644 --- a/projects/activex/connectioncontainer.h +++ b/projects/activex/connectioncontainer.h @@ -2,8 +2,10 @@ * connectioncontainer.h: ActiveX control for VLC ***************************************************************************** * Copyright (C) 2005 the VideoLAN team + * Copyright (C) 2010 M2X BV * * Authors: Damien Fouilleul + * Jean-Paul Saman * * This program is free software; you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by @@ -27,15 +29,15 @@ #include #include #include +#include class VLCConnectionPoint : public IConnectionPoint { public: - VLCConnectionPoint(IConnectionPointContainer *p_cpc, REFIID iid) : - _iid(iid), _p_cpc(p_cpc) {}; - virtual ~VLCConnectionPoint() {}; + VLCConnectionPoint(IConnectionPointContainer *p_cpc, REFIID iid); + virtual ~VLCConnectionPoint(); // IUnknown methods STDMETHODIMP QueryInterface(REFIID riid, void **ppv) @@ -69,6 +71,7 @@ public: private: REFIID _iid; + IGlobalInterfaceTable *m_pGIT; IConnectionPointContainer *_p_cpc; std::map _connections; }; @@ -121,14 +124,20 @@ public: void fireEvent(DISPID, DISPPARAMS*); void firePropChangedEvent(DISPID dispId); -private: +public: + CRITICAL_SECTION csEvents; + HANDLE sEvents; VLCPlugin *_p_instance; - BOOL _b_freeze; + BOOL isRunning; + BOOL freeze; VLCConnectionPoint *_p_events; VLCConnectionPoint *_p_props; std::vector _v_cps; std::queue _q_events; + +private: + HANDLE hThread; }; #endif