diff options
author | Noel Grandin <noel@peralex.com> | 2015-09-15 12:18:40 +0200 |
---|---|---|
committer | Noel Grandin <noel@peralex.com> | 2015-09-16 08:38:54 +0200 |
commit | c52baea785109ff546159128c7502533477c9331 (patch) | |
tree | 54d001522ba6fd16976e4758408600e6a1fbfbd8 /include/vcl/vclevent.hxx | |
parent | 91d06b09ae019f09bca54718c1c24907762aa3ea (diff) |
clean up VclEventListeners and VclEventListeners2
Move them inside the vcl module. there is no need to expose their
implementation.
Make the VclEventListeners2 implementation similar to the
VclEventListeners implemenation - I can't see the benefit of this extra
complication with invalidated iterators, given the very small number
of listeners typically on such a list.
Change-Id: I040ddd24b10d2109af13ee25b5181703af17a109
Diffstat (limited to 'include/vcl/vclevent.hxx')
-rw-r--r-- | include/vcl/vclevent.hxx | 41 |
1 files changed, 0 insertions, 41 deletions
diff --git a/include/vcl/vclevent.hxx b/include/vcl/vclevent.hxx index f9e8b51564e0..e564100f9a48 100644 --- a/include/vcl/vclevent.hxx +++ b/include/vcl/vclevent.hxx @@ -29,9 +29,6 @@ #include <com/sun/star/uno/Reference.hxx> -#include <list> -#include <vector> - class Menu; namespace com { namespace sun { namespace star { @@ -252,44 +249,6 @@ private: ::com::sun::star::uno::Reference< ::com::sun::star::accessibility::XAccessible > mxAccessible; }; -class VCL_DLLPUBLIC VclEventListeners -{ -public: - void Call( VclSimpleEvent* pEvent ) const; - void addListener( const Link<>& rListener ); - void removeListener( const Link<>& rListener ); -private: - std::vector<Link<>> m_aListeners; -}; - -class VCL_DLLPUBLIC VclEventListeners2 : public vcl::DeletionNotifier -{ - std::list< Link<> > m_aListeners; - - struct ListenerIt - { - std::list< Link<> >::iterator m_aIt; - bool m_bWasInvalidated; - - ListenerIt(const std::list<Link<>>::iterator& rIt) - : m_aIt(rIt) - , m_bWasInvalidated( false ) - {} - }; - - std::vector< ListenerIt > m_aIterators; - - -public: - VclEventListeners2(); - ~VclEventListeners2(); - - void addListener( const Link<>& ); - void removeListener( const Link<>& ); - - void callListeners( VclSimpleEvent* ); -}; - #endif // INCLUDED_VCL_VCLEVENT_HXX /* vim:set shiftwidth=4 softtabstop=4 expandtab: */ |