LibreOffice Module forms (master) 1
Public Member Functions | Protected Member Functions | Private Types | Private Member Functions | Private Attributes | List of all members
frm::OComponentEventThread Class Referenceabstract

#include <EventThread.hxx>

Inheritance diagram for frm::OComponentEventThread:
[legend]
Collaboration diagram for frm::OComponentEventThread:
[legend]

Public Member Functions

virtual css::uno::Any SAL_CALL queryInterface (const css::uno::Type &_rType) override
 
 OComponentEventThread (::cppu::OComponentHelper *pCompImpl)
 
virtual ~OComponentEventThread () override
 
void addEvent (std::unique_ptr< css::lang::EventObject > _pEvt)
 
void addEvent (std::unique_ptr< css::lang::EventObject > _pEvt, const css::uno::Reference< css::awt::XControl > &rControl, bool bFlag=false)
 
virtual void SAL_CALL disposing (const css::lang::EventObject &_rSource) override
 
- Public Member Functions inherited from cppu::OWeakObject
 OWeakObject ()
 
 OWeakObject (const OWeakObject &)
 
OWeakObject &SAL_CALL operator= (const OWeakObject &)
 
virtual css::uno::Any SAL_CALL queryInterface (const css::uno::Type &rType) SAL_OVERRIDE
 
virtual void SAL_CALL acquire () SAL_NOEXCEPT SAL_OVERRIDE
 
virtual void SAL_CALL release () SAL_NOEXCEPT SAL_OVERRIDE
 
virtual css::uno::Reference< css::uno::XAdapter > SAL_CALL queryAdapter () SAL_OVERRIDE
 
SAL_CALL operator css::uno::Reference< css::uno::XInterface > ()
 

Protected Member Functions

virtual void SAL_CALL run () override
 
virtual void SAL_CALL onTerminated () override
 
virtual void processEvent (::cppu::OComponentHelper *_pCompImpl, const css::lang::EventObject *_pEvt, const css::uno::Reference< css::awt::XControl > &_rControl, bool _bFlag)=0
 
- Protected Member Functions inherited from cppu::OWeakObject
virtual ~OWeakObject () COVERITY_NOEXCEPT_FALSE
 
void disposeWeakConnectionPoint ()
 

Private Types

typedef std::vector< std::unique_ptr< css::lang::EventObject > > ThreadEvents
 
typedef std::vector< css::uno::Reference< css::uno::XAdapter > > ThreadObjects
 

Private Member Functions

void impl_clearEventQueue ()
 

Private Attributes

std::mutex m_aMutex
 
::osl::Condition m_aCond
 
ThreadEvents m_aEvents
 
ThreadObjects m_aControls
 
std::vector< bool > m_aFlags
 
rtl::Reference<::cppu::OComponentHelperm_xComp
 

Additional Inherited Members

- Protected Attributes inherited from cppu::OWeakObject
oslInterlockedCount m_refCount
 

Detailed Description

Definition at line 46 of file EventThread.hxx.

Member Typedef Documentation

◆ ThreadEvents

typedef std::vector<std::unique_ptr<css::lang::EventObject> > frm::OComponentEventThread::ThreadEvents
private

Definition at line 51 of file EventThread.hxx.

◆ ThreadObjects

typedef std::vector< css::uno::Reference< css::uno::XAdapter> > frm::OComponentEventThread::ThreadObjects
private

Definition at line 52 of file EventThread.hxx.

Constructor & Destructor Documentation

◆ OComponentEventThread()

frm::OComponentEventThread::OComponentEventThread ( ::cppu::OComponentHelper pCompImpl)
explicit

Definition at line 34 of file EventThread.cxx.

References cppu::OWeakObject::m_refCount, and m_xComp.

◆ ~OComponentEventThread()

frm::OComponentEventThread::~OComponentEventThread ( )
overridevirtual

Definition at line 49 of file EventThread.cxx.

References DBG_ASSERT, impl_clearEventQueue(), and m_aEvents.

Member Function Documentation

◆ addEvent() [1/2]

void frm::OComponentEventThread::addEvent ( std::unique_ptr< css::lang::EventObject >  _pEvt)

◆ addEvent() [2/2]

void frm::OComponentEventThread::addEvent ( std::unique_ptr< css::lang::EventObject >  _pEvt,
const css::uno::Reference< css::awt::XControl > &  rControl,
bool  bFlag = false 
)

◆ disposing()

void frm::OComponentEventThread::disposing ( const css::lang::EventObject &  _rSource)
overridevirtual

Definition at line 77 of file EventThread.cxx.

References impl_clearEventQueue(), m_aCond, m_aMutex, and m_xComp.

◆ impl_clearEventQueue()

void frm::OComponentEventThread::impl_clearEventQueue ( )
private

Definition at line 70 of file EventThread.cxx.

References m_aControls, m_aEvents, and m_aFlags.

Referenced by disposing(), and ~OComponentEventThread().

◆ onTerminated()

void SAL_CALL frm::OComponentEventThread::onTerminated ( )
overrideprotectedvirtual

Definition at line 125 of file EventThread.cxx.

References cppu::OWeakObject::release().

◆ processEvent()

virtual void frm::OComponentEventThread::processEvent ( ::cppu::OComponentHelper _pCompImpl,
const css::lang::EventObject *  _pEvt,
const css::uno::Reference< css::awt::XControl > &  _rControl,
bool  _bFlag 
)
protectedpure virtual

Implemented in frm::OImageProducerThread_Impl.

References DECLARE_UNO3_DEFAULTS.

Referenced by run().

◆ queryInterface()

Any SAL_CALL frm::OComponentEventThread::queryInterface ( const css::uno::Type &  _rType)
overridevirtual

Reimplemented from cppu::OWeakObject.

Definition at line 58 of file EventThread.cxx.

References Any.

◆ run()

void frm::OComponentEventThread::run ( )
overrideprotectedvirtual

Member Data Documentation

◆ m_aCond

::osl::Condition frm::OComponentEventThread::m_aCond
private

Definition at line 55 of file EventThread.hxx.

Referenced by disposing(), and run().

◆ m_aControls

ThreadObjects frm::OComponentEventThread::m_aControls
private

Definition at line 57 of file EventThread.hxx.

Referenced by impl_clearEventQueue(), and run().

◆ m_aEvents

ThreadEvents frm::OComponentEventThread::m_aEvents
private

Definition at line 56 of file EventThread.hxx.

Referenced by impl_clearEventQueue(), run(), and ~OComponentEventThread().

◆ m_aFlags

std::vector<bool> frm::OComponentEventThread::m_aFlags
private

Definition at line 58 of file EventThread.hxx.

Referenced by impl_clearEventQueue(), and run().

◆ m_aMutex

std::mutex frm::OComponentEventThread::m_aMutex
private

Definition at line 54 of file EventThread.hxx.

Referenced by disposing(), and run().

◆ m_xComp

rtl::Reference<::cppu::OComponentHelper> frm::OComponentEventThread::m_xComp
private

Definition at line 60 of file EventThread.hxx.

Referenced by disposing(), OComponentEventThread(), and run().


The documentation for this class was generated from the following files: