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

#include <debugevent.hxx>

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

Static Public Member Functions

static DebugEventInjectorgetCreate ()
 

Private Member Functions

 DebugEventInjector (sal_uInt32 nMaxEvents)
 
virtual void Invoke () override
 Calls the maInvokeHandler with the parameter this. More...
 
- Private 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...
 
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)
 
- Private 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
 
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 Private Member Functions

static vcl::WindowChooseWindow ()
 
static void InjectTextEvent ()
 
static void InjectMenuEvent ()
 
static void InjectEvent ()
 
static void InjectKeyNavEdit ()
 
- Static Private Member Functions inherited from Task
static void StartTimer (sal_uInt64 nMS)
 

Private Attributes

sal_uInt32 mnEventsLeft
 

Detailed Description

Definition at line 19 of file debugevent.hxx.

Constructor & Destructor Documentation

◆ DebugEventInjector()

DebugEventInjector::DebugEventInjector ( sal_uInt32  nMaxEvents)
private

Definition at line 22 of file debugevent.cxx.

References Timer::SetTimeout(), and Timer::Start().

Referenced by getCreate().

Member Function Documentation

◆ ChooseWindow()

vcl::Window * DebugEventInjector::ChooseWindow ( )
staticprivate

◆ getCreate()

DebugEventInjector * DebugEventInjector::getCreate ( )
static

Definition at line 258 of file debugevent.cxx.

References DebugEventInjector(), and o3tl::toUInt32().

Referenced by InitVCL().

◆ InjectEvent()

void DebugEventInjector::InjectEvent ( )
staticprivate

Definition at line 168 of file debugevent.cxx.

References getRandom(), i, InjectKeyNavEdit(), InjectMenuEvent(), and InjectTextEvent().

Referenced by Invoke().

◆ InjectKeyNavEdit()

void DebugEventInjector::InjectKeyNavEdit ( )
staticprivate

◆ InjectMenuEvent()

void DebugEventInjector::InjectMenuEvent ( )
staticprivate

◆ InjectTextEvent()

void DebugEventInjector::InjectTextEvent ( )
staticprivate

◆ Invoke()

void DebugEventInjector::Invoke ( )
overrideprivatevirtual

Calls the maInvokeHandler with the parameter this.

Reimplemented from Timer.

Definition at line 245 of file debugevent.cxx.

References InjectEvent(), mnEventsLeft, Application::Quit(), Timer::SetTimeout(), and Timer::Start().

Member Data Documentation

◆ mnEventsLeft

sal_uInt32 DebugEventInjector::mnEventsLeft
private

Definition at line 20 of file debugevent.hxx.

Referenced by Invoke().


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