LibreOffice Module desktop (master)  1
Public Types | Public Member Functions | Static Public Member Functions | Private Member Functions | Private Attributes | List of all members
desktop::CallbackFlushHandler Class Reference

#include <init.hxx>

Inheritance diagram for desktop::CallbackFlushHandler:
[legend]
Collaboration diagram for desktop::CallbackFlushHandler:
[legend]

Public Types

typedef std::vector< std::pair< int, std::string > > queue_type
 

Public Member Functions

 CallbackFlushHandler (LibreOfficeKitDocument *pDocument, LibreOfficeKitCallback pCallback, void *pData)
 
virtual ~CallbackFlushHandler () override
 
virtual void Invoke () override
 
void queue (const int type, const char *data)
 
void setEventLatch (const bool bEventLatch)
 When enabled events are queued but callback not invoked. More...
 
bool isEventLatchOn () const
 
void setPartTilePainting (const bool bPartPainting)
 
bool isPartTilePainting () const
 
void addViewStates (int viewId)
 
void removeViewStates (int viewId)
 
- Public Member Functions inherited from Idle
 Idle (const sal_Char *pDebugName=nullptr)
 
virtual void Start () override
 
- Public Member Functions inherited from Timer
 Timer (const sal_Char *pDebugName=nullptr)
 
 Timer (const Timer &rTimer)
 
virtual ~Timer () override
 
Timeroperator= (const Timer &rTimer)
 
void Invoke (Timer *arg)
 
void SetInvokeHandler (const Link< Timer *, void > &rLink)
 
void ClearInvokeHandler ()
 
void SetTimeout (sal_uInt64 nTimeoutMs)
 
sal_uInt64 GetTimeout () const
 
- Public Member Functions inherited from Task
 Task (const sal_Char *pDebugName)
 
 Task (const Task &rTask)
 
virtual ~Task () COVERITY_NOEXCEPT_FALSE
 
Taskoperator= (const Task &rTask)
 
void SetPriority (TaskPriority ePriority)
 
TaskPriority GetPriority () const
 
void SetDebugName (const sal_Char *pDebugName)
 
const char * GetDebugName () const
 
void Stop ()
 
bool IsActive () const
 
void SetStatic ()
 
bool IsStatic () const
 

Static Public Member Functions

static void callback (const int type, const char *payload, void *data)
 

Private Member Functions

void removeAll (const std::function< bool(const queue_type::value_type &)> &rTestFunc)
 

Private Attributes

queue_type m_queue
 
std::map< int, std::string > m_states
 
std::unordered_map< int, std::unordered_map< int, std::string > > m_viewStates
 
LibreOfficeKitDocument * m_pDocument
 
LibreOfficeKitCallback m_pCallback
 
voidm_pData
 
bool m_bPartTilePainting
 
bool m_bEventLatch
 
std::mutex m_mutex
 

Additional Inherited Members

- Protected Member Functions inherited from Idle
virtual sal_uInt64 UpdateMinPeriod (sal_uInt64 nMinPeriod, sal_uInt64 nTimeNow) const override
 
 Idle (bool bAuto, const sal_Char *pDebugName)
 
- Protected Member Functions inherited from Timer
virtual void SetDeletionFlags () override
 
 Timer (bool bAuto, const sal_Char *pDebugName)
 
- Protected Member Functions inherited from Task
const ImplSchedulerDataGetSchedulerData () const
 
- Static Protected Member Functions inherited from Task
static void StartTimer (sal_uInt64 nMS)
 

Detailed Description

Definition at line 32 of file init.hxx.

Member Typedef Documentation

typedef std::vector<std::pair<int, std::string> > desktop::CallbackFlushHandler::queue_type

Definition at line 54 of file init.hxx.

Constructor & Destructor Documentation

CallbackFlushHandler::CallbackFlushHandler ( LibreOfficeKitDocument *  pDocument,
LibreOfficeKitCallback  pCallback,
void pData 
)
explicit

Definition at line 834 of file init.cxx.

References m_states, Task::SetPriority(), and Idle::Start().

CallbackFlushHandler::~CallbackFlushHandler ( )
overridevirtual

Definition at line 860 of file init.cxx.

References Task::Stop().

Member Function Documentation

void CallbackFlushHandler::addViewStates ( int  viewId)

Definition at line 1383 of file init.cxx.

References m_viewStates.

void CallbackFlushHandler::callback ( const int  type,
const char *  payload,
void data 
)
static

Definition at line 865 of file init.cxx.

References queue().

Referenced by doc_registerCallback().

void CallbackFlushHandler::Invoke ( )
overridevirtual

Reimplemented from Timer.

Definition at line 1314 of file init.cxx.

References lock(), m_bEventLatch, m_mutex, m_pCallback, m_pData, m_queue, m_states, m_viewStates, and SAL_INFO.

bool desktop::CallbackFlushHandler::isEventLatchOn ( ) const
inline

Definition at line 47 of file init.hxx.

bool desktop::CallbackFlushHandler::isPartTilePainting ( ) const
inline

Definition at line 49 of file init.hxx.

void CallbackFlushHandler::queue ( const int  type,
const char *  data 
)
void CallbackFlushHandler::removeAll ( const std::function< bool(const queue_type::value_type &)> &  rTestFunc)
private

Definition at line 1377 of file init.cxx.

References m_queue.

Referenced by queue().

void CallbackFlushHandler::removeViewStates ( int  viewId)

Definition at line 1392 of file init.cxx.

References m_viewStates.

void desktop::CallbackFlushHandler::setEventLatch ( const bool  bEventLatch)
inline

When enabled events are queued but callback not invoked.

Definition at line 42 of file init.hxx.

void desktop::CallbackFlushHandler::setPartTilePainting ( const bool  bPartPainting)
inline

Definition at line 48 of file init.hxx.

Member Data Documentation

bool desktop::CallbackFlushHandler::m_bEventLatch
private

Definition at line 66 of file init.hxx.

Referenced by Invoke().

bool desktop::CallbackFlushHandler::m_bPartTilePainting
private

Definition at line 65 of file init.hxx.

Referenced by queue().

std::mutex desktop::CallbackFlushHandler::m_mutex
private

Definition at line 67 of file init.hxx.

Referenced by Invoke(), and queue().

LibreOfficeKitCallback desktop::CallbackFlushHandler::m_pCallback
private

Definition at line 63 of file init.hxx.

Referenced by Invoke().

void* desktop::CallbackFlushHandler::m_pData
private

Definition at line 64 of file init.hxx.

Referenced by Invoke().

LibreOfficeKitDocument* desktop::CallbackFlushHandler::m_pDocument
private

Definition at line 62 of file init.hxx.

Referenced by queue().

queue_type desktop::CallbackFlushHandler::m_queue
private

Definition at line 59 of file init.hxx.

Referenced by Invoke(), queue(), and removeAll().

std::map<int, std::string> desktop::CallbackFlushHandler::m_states
private

Definition at line 60 of file init.hxx.

Referenced by CallbackFlushHandler(), and Invoke().

std::unordered_map<int, std::unordered_map<int, std::string> > desktop::CallbackFlushHandler::m_viewStates
private

Definition at line 61 of file init.hxx.

Referenced by addViewStates(), Invoke(), and removeViewStates().


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