LibreOffice Module vcl (master)
1
|
#include <salusereventlist.hxx>
Classes | |
struct | SalUserEvent |
Public Member Functions | |
SalUserEventList () | |
virtual | ~SalUserEventList () COVERITY_NOEXCEPT_FALSE |
const SalFrameSet & | getFrames () const |
SalFrame * | anyFrame () const |
void | insertFrame (SalFrame *pFrame) |
void | eraseFrame (SalFrame *pFrame) |
bool | isFrameAlive (const SalFrame *pFrame) const |
void | PostEvent (SalFrame *pFrame, void *pData, SalEvent nEvent) |
void | RemoveEvent (SalFrame *pFrame, void *pData, SalEvent nEvent) |
bool | HasUserEvents () const |
bool | DispatchUserEvents (bool bHandleAllCurrentEvents) |
Protected Member Functions | |
virtual void | ProcessEvent (SalUserEvent aEvent)=0 |
virtual void | TriggerUserEventProcessing ()=0 |
virtual void | TriggerAllUserEventsProcessed () |
Protected Attributes | |
osl::Mutex | m_aUserEventsMutex |
std::list< SalUserEvent > | m_aUserEvents |
std::list< SalUserEvent > | m_aProcessingUserEvents |
bool | m_bAllUserEventProcessedSignaled |
SalFrameSet | m_aFrames |
oslThreadIdentifier | m_aProcessingThread |
Definition at line 36 of file salusereventlist.hxx.
SalUserEventList::SalUserEventList | ( | ) |
Definition at line 35 of file salusereventlist.cxx.
|
virtual |
Definition at line 41 of file salusereventlist.cxx.
|
inline |
Definition at line 88 of file salusereventlist.hxx.
References o3tl::sorted_vector< Value, Compare, Find, class >::begin(), and o3tl::sorted_vector< Value, Compare, Find, class >::empty().
bool SalUserEventList::DispatchUserEvents | ( | bool | bHandleAllCurrentEvents | ) |
Definition at line 59 of file salusereventlist.cxx.
References aEvent, DBG_TESTSOLARMUTEX, HasUserEvents(), isFrameAlive(), m_aProcessingThread, m_aProcessingUserEvents, m_aUserEvents, m_aUserEventsMutex, m_bAllUserEventProcessedSignaled, SalUserEventList::SalUserEvent::m_nEvent, SalUserEventList::SalUserEvent::m_pData, SalUserEventList::SalUserEvent::m_pFrame, name, NONE, ProcessEvent(), SAL_WARN, TOOLS_WARN_EXCEPTION, TriggerAllUserEventsProcessed(), and UserEvent.
Definition at line 51 of file salusereventlist.cxx.
References assert(), o3tl::sorted_vector< Value, Compare, Find, class >::end(), o3tl::sorted_vector< Value, Compare, Find, class >::erase(), o3tl::sorted_vector< Value, Compare, Find, class >::find(), and m_aFrames.
Referenced by SvpSalInstance::deregisterFrame().
|
inline |
Definition at line 115 of file salusereventlist.hxx.
|
inline |
Definition at line 101 of file salusereventlist.hxx.
Referenced by DispatchUserEvents(), and RemoveEvent().
Definition at line 45 of file salusereventlist.cxx.
References assert(), o3tl::sorted_vector< Value, Compare, Find, class >::insert(), m_aFrames, and void().
Referenced by SvpSalInstance::registerFrame().
|
inline |
Definition at line 95 of file salusereventlist.hxx.
References o3tl::sorted_vector< Value, Compare, Find, class >::end(), and o3tl::sorted_vector< Value, Compare, Find, class >::find().
Referenced by DispatchUserEvents(), and AquaSalFrame::isAlive().
Definition at line 107 of file salusereventlist.hxx.
|
protectedpure virtual |
Implemented in Qt5Instance, SvpSalInstance, AquaSalInstance, and SalGenericDisplay.
Referenced by DispatchUserEvents().
Definition at line 152 of file salusereventlist.cxx.
References aEvent, HasUserEvents(), m_aProcessingUserEvents, m_aUserEvents, m_aUserEventsMutex, m_bAllUserEventProcessedSignaled, and TriggerAllUserEventsProcessed().
|
inlineprotectedvirtual |
Reimplemented in GtkSalDisplay.
Definition at line 69 of file salusereventlist.hxx.
Referenced by DispatchUserEvents(), and RemoveEvent().
|
protectedpure virtual |
Implemented in SalX11Display, GtkSalDisplay, Qt5Instance, SvpSalInstance, and AquaSalInstance.
|
protected |
Definition at line 64 of file salusereventlist.hxx.
Referenced by eraseFrame(), SalDisplay::getFrames(), and insertFrame().
|
protected |
Definition at line 65 of file salusereventlist.hxx.
Referenced by DispatchUserEvents().
|
protected |
Definition at line 62 of file salusereventlist.hxx.
Referenced by DispatchUserEvents(), and RemoveEvent().
|
protected |
Definition at line 61 of file salusereventlist.hxx.
Referenced by DispatchUserEvents(), and RemoveEvent().
|
mutableprotected |
Definition at line 60 of file salusereventlist.hxx.
Referenced by DispatchUserEvents(), and RemoveEvent().
|
protected |
Definition at line 63 of file salusereventlist.hxx.
Referenced by DispatchUserEvents(), and RemoveEvent().