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 Referencefinal

#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 disableCallbacks ()
 Disables callbacks on this handler. More...
 
void enableCallbacks ()
 Enables callbacks on this handler. More...
 
bool callbacksDisabled () const
 Returns true iff callbacks are disabled. More...
 
void addViewStates (int viewId)
 
void removeViewStates (int viewId)
 
- Public Member Functions inherited from Idle
 Idle (const char *pDebugName=nullptr)
 
virtual void Start () override
 
- Public Member Functions inherited from Timer
 Timer (const 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 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 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
 
int m_nDisableCallbacks
 
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 char *pDebugName)
 
- Protected Member Functions inherited from Timer
virtual void SetDeletionFlags () override
 
 Timer (bool bAuto, const 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 74 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 1323 of file init.cxx.

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

CallbackFlushHandler::~CallbackFlushHandler ( )
overridevirtual

Definition at line 1348 of file init.cxx.

References Task::Stop().

Member Function Documentation

void CallbackFlushHandler::addViewStates ( int  viewId)

Definition at line 1991 of file init.cxx.

References m_viewStates.

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

Definition at line 1353 of file init.cxx.

References queue().

Referenced by doc_registerCallback().

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

Returns true iff callbacks are disabled.

Definition at line 90 of file init.hxx.

Referenced by queue().

void desktop::CallbackFlushHandler::disableCallbacks ( )
inline

Disables callbacks on this handler.

Must match with identical count of enableCallbacks. Used during painting and changing views.

Definition at line 85 of file init.hxx.

void desktop::CallbackFlushHandler::enableCallbacks ( )
inline

Enables callbacks on this handler.

Must match with identical count of disableCallbacks. Used during painting and changing views.

Definition at line 88 of file init.hxx.

void CallbackFlushHandler::Invoke ( )
overridevirtual
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 1979 of file init.cxx.

References m_queue.

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

void CallbackFlushHandler::removeViewStates ( int  viewId)

Definition at line 2000 of file init.cxx.

References m_viewStates.

Member Data Documentation

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

Definition at line 144 of file init.hxx.

Referenced by Invoke(), and queue().

int desktop::CallbackFlushHandler::m_nDisableCallbacks
private

Definition at line 143 of file init.hxx.

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: