LibreOffice Module vcl (master) 1
Public Member Functions | Private Member Functions | Private Attributes | List of all members
JSDialogNotifyIdle Class Referencefinal

#include <jsdialogbuilder.hxx>

Inheritance diagram for JSDialogNotifyIdle:
[legend]
Collaboration diagram for JSDialogNotifyIdle:
[legend]

Public Member Functions

 JSDialogNotifyIdle (VclPtr< vcl::Window > aNotifierWindow, VclPtr< vcl::Window > aContentWindow, const OUString &sTypeOfJSON)
 
void Invoke () override
 Calls the maInvokeHandler with the parameter this. More...
 
void clearQueue ()
 
void forceUpdate ()
 
void sendMessage (jsdialog::MessageType eType, VclPtr< vcl::Window > pWindow, std::unique_ptr< jsdialog::ActionDataMap > pData=nullptr)
 
- Public Member Functions inherited from Idle
 Idle (const char *pDebugName)
 
virtual void Start (bool bStartTimer=true) override
 Schedules the task for execution. More...
 
- Public Member Functions inherited from Timer
 Timer (const char *pDebugName)
 
 Timer (const Timer &rTimer)
 
virtual ~Timer () override
 
Timeroperator= (const Timer &rTimer)
 
virtual void Invoke () override
 Calls the maInvokeHandler with the parameter this. More...
 
void Invoke (Timer *arg)
 Calls the maInvokeHandler with the parameter. More...
 
void SetInvokeHandler (const Link< Timer *, void > &rLink)
 
void ClearInvokeHandler ()
 
void SetTimeout (sal_uInt64 nTimeoutMs)
 
sal_uInt64 GetTimeout () const
 
virtual void Start (bool bStartTimer=true) override
 Schedules the task for execution. More...
 
- 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
 
const char * GetDebugName () const
 
virtual void Invoke ()=0
 
virtual void Start (bool bStartTimer=true)
 Schedules the task for execution. More...
 
void Stop ()
 
bool IsActive () const
 
void SetStatic ()
 This function must be called for static tasks, so the Task destructor ignores the scheduler mutex, as it may not be available anymore. More...
 
bool IsStatic () const
 

Private Member Functions

void send (tools::JsonWriter &aJsonWriter)
 
std::unique_ptr< tools::JsonWritergenerateFullUpdate () const
 
std::unique_ptr< tools::JsonWritergenerateWidgetUpdate (VclPtr< vcl::Window > pWindow) const
 
std::unique_ptr< tools::JsonWritergenerateCloseMessage () const
 
std::unique_ptr< tools::JsonWritergenerateActionMessage (VclPtr< vcl::Window > pWindow, std::unique_ptr< jsdialog::ActionDataMap > pData) const
 
std::unique_ptr< tools::JsonWritergeneratePopupMessage (VclPtr< vcl::Window > pWindow, OUString sParentId, OUString sCloseId) const
 
std::unique_ptr< tools::JsonWritergenerateClosePopupMessage (OUString sWindowId) const
 

Private Attributes

VclPtr< vcl::Windowm_aNotifierWindow
 
VclPtr< vcl::Windowm_aContentWindow
 
OUString m_sTypeOfJSON
 
OString m_LastNotificationMessage
 
bool m_bForce
 
std::deque< JSDialogMessageInfom_aMessageQueue
 
std::mutex m_aQueueMutex
 

Additional Inherited Members

- Protected Member Functions inherited from Idle
virtual sal_uInt64 UpdateMinPeriod (sal_uInt64 nTimeNow) const override
 How long (in MS) until the Task is ready to be dispatched? More...
 
 Idle (bool bAuto, const char *pDebugName)
 
- Protected Member Functions inherited from Timer
virtual void SetDeletionFlags () override
 
virtual sal_uInt64 UpdateMinPeriod (sal_uInt64 nTimeNow) const override
 How long (in MS) until the Task is ready to be dispatched? More...
 
 Timer (bool bAuto, const char *pDebugName)
 
- Protected Member Functions inherited from Task
const ImplSchedulerDataGetSchedulerData () const
 
virtual void SetDeletionFlags ()
 
virtual sal_uInt64 UpdateMinPeriod (sal_uInt64 nTimeNow) const =0
 How long (in MS) until the Task is ready to be dispatched? More...
 
- Static Protected Member Functions inherited from Task
static void StartTimer (sal_uInt64 nMS)
 

Detailed Description

Definition at line 107 of file jsdialogbuilder.hxx.

Constructor & Destructor Documentation

◆ JSDialogNotifyIdle()

JSDialogNotifyIdle::JSDialogNotifyIdle ( VclPtr< vcl::Window aNotifierWindow,
VclPtr< vcl::Window aContentWindow,
const OUString &  sTypeOfJSON 
)

Member Function Documentation

◆ clearQueue()

void JSDialogNotifyIdle::clearQueue ( )

◆ forceUpdate()

void JSDialogNotifyIdle::forceUpdate ( )

◆ generateActionMessage()

std::unique_ptr< tools::JsonWriter > JSDialogNotifyIdle::generateActionMessage ( VclPtr< vcl::Window pWindow,
std::unique_ptr< jsdialog::ActionDataMap pData 
) const
private

◆ generateCloseMessage()

std::unique_ptr< tools::JsonWriter > JSDialogNotifyIdle::generateCloseMessage ( ) const
private

◆ generateClosePopupMessage()

std::unique_ptr< tools::JsonWriter > JSDialogNotifyIdle::generateClosePopupMessage ( OUString  sWindowId) const
private

◆ generateFullUpdate()

std::unique_ptr< tools::JsonWriter > JSDialogNotifyIdle::generateFullUpdate ( ) const
private

◆ generatePopupMessage()

std::unique_ptr< tools::JsonWriter > JSDialogNotifyIdle::generatePopupMessage ( VclPtr< vcl::Window pWindow,
OUString  sParentId,
OUString  sCloseId 
) const
private

◆ generateWidgetUpdate()

std::unique_ptr< tools::JsonWriter > JSDialogNotifyIdle::generateWidgetUpdate ( VclPtr< vcl::Window pWindow) const
private

◆ Invoke()

void JSDialogNotifyIdle::Invoke ( )
overridevirtual

Calls the maInvokeHandler with the parameter this.

Reimplemented from Timer.

◆ send()

void JSDialogNotifyIdle::send ( tools::JsonWriter aJsonWriter)
private

◆ sendMessage()

void JSDialogNotifyIdle::sendMessage ( jsdialog::MessageType  eType,
VclPtr< vcl::Window pWindow,
std::unique_ptr< jsdialog::ActionDataMap pData = nullptr 
)

Member Data Documentation

◆ m_aContentWindow

VclPtr<vcl::Window> JSDialogNotifyIdle::m_aContentWindow
private

Definition at line 112 of file jsdialogbuilder.hxx.

◆ m_aMessageQueue

std::deque<JSDialogMessageInfo> JSDialogNotifyIdle::m_aMessageQueue
private

Definition at line 117 of file jsdialogbuilder.hxx.

◆ m_aNotifierWindow

VclPtr<vcl::Window> JSDialogNotifyIdle::m_aNotifierWindow
private

Definition at line 110 of file jsdialogbuilder.hxx.

◆ m_aQueueMutex

std::mutex JSDialogNotifyIdle::m_aQueueMutex
private

Definition at line 118 of file jsdialogbuilder.hxx.

◆ m_bForce

bool JSDialogNotifyIdle::m_bForce
private

Definition at line 115 of file jsdialogbuilder.hxx.

◆ m_LastNotificationMessage

OString JSDialogNotifyIdle::m_LastNotificationMessage
private

Definition at line 114 of file jsdialogbuilder.hxx.

◆ m_sTypeOfJSON

OUString JSDialogNotifyIdle::m_sTypeOfJSON
private

Definition at line 113 of file jsdialogbuilder.hxx.


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