LibreOffice Module desktop (master)  1
Classes | 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]

Classes

struct  CallbackData
 

Public Types

typedef std::vector< CallbackDataqueue_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

bool removeAll (const std::function< bool(const queue_type::value_type &)> &rTestFunc)
 
bool processInvalidateTilesEvent (CallbackData &aCallbackData)
 
bool processWindowEvent (CallbackData &aCallbackData)
 

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 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 73 of file init.hxx.

Member Typedef Documentation

Definition at line 130 of file init.hxx.

Constructor & Destructor Documentation

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

Definition at line 1062 of file init.cxx.

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

CallbackFlushHandler::~CallbackFlushHandler ( )
overridevirtual

Definition at line 1088 of file init.cxx.

References Task::Stop().

Member Function Documentation

void CallbackFlushHandler::addViewStates ( int  viewId)

Definition at line 1724 of file init.cxx.

References m_viewStates.

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

Definition at line 1093 of file init.cxx.

References queue().

Referenced by doc_registerCallback().

void CallbackFlushHandler::Invoke ( )
overridevirtual
bool desktop::CallbackFlushHandler::isEventLatchOn ( ) const
inline

Definition at line 88 of file init.hxx.

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

Definition at line 90 of file init.hxx.

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

Definition at line 1712 of file init.cxx.

References m_queue.

Referenced by processInvalidateTilesEvent(), processWindowEvent(), and queue().

void CallbackFlushHandler::removeViewStates ( int  viewId)

Definition at line 1733 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 83 of file init.hxx.

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

Definition at line 89 of file init.hxx.

Member Data Documentation

bool desktop::CallbackFlushHandler::m_bEventLatch
private

Definition at line 144 of file init.hxx.

Referenced by Invoke().

bool desktop::CallbackFlushHandler::m_bPartTilePainting
private

Definition at line 143 of file init.hxx.

Referenced by queue().

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

Definition at line 145 of file init.hxx.

Referenced by Invoke(), and queue().

LibreOfficeKitCallback desktop::CallbackFlushHandler::m_pCallback
private

Definition at line 141 of file init.hxx.

Referenced by Invoke().

void* desktop::CallbackFlushHandler::m_pData
private

Definition at line 142 of file init.hxx.

Referenced by Invoke().

LibreOfficeKitDocument* desktop::CallbackFlushHandler::m_pDocument
private

Definition at line 140 of file init.hxx.

Referenced by queue().

queue_type desktop::CallbackFlushHandler::m_queue
private

Definition at line 137 of file init.hxx.

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

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

Definition at line 138 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 139 of file init.hxx.

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


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