Public Slots | Signals | Public Member Functions | Protected Slots | List of all members
pqTriggerOnIdleHelper Class Reference

Often times we need to call certain slots on idle. More...

#include <pqTriggerOnIdleHelper.h>

Inherits QObject.

Public Slots

void setServer (pqServer *)
 
void trigger ()
 

Signals

void triggered ()
 

Public Member Functions

 pqTriggerOnIdleHelper (QObject *parent=nullptr)
 
 ~pqTriggerOnIdleHelper () override
 
pqServerserver () const
 get the server More...
 

Protected Slots

void triggerInternal ()
 

Detailed Description

Often times we need to call certain slots on idle.

However, just relying on Qt's idle is not safe since progress events often result in processing of pending events, which may not be a safe place for such slots to be called. In that such cases this class can be used. It emits the triggered() signal when the server (set using setServer()) is indeed idle. Otherwise it simply reschedules the triggering of another time.

Definition at line 23 of file pqTriggerOnIdleHelper.h.

Constructor & Destructor Documentation

◆ pqTriggerOnIdleHelper()

pqTriggerOnIdleHelper::pqTriggerOnIdleHelper ( QObject *  parent = nullptr)

◆ ~pqTriggerOnIdleHelper()

pqTriggerOnIdleHelper::~pqTriggerOnIdleHelper ( )
override

Member Function Documentation

◆ server()

pqServer* pqTriggerOnIdleHelper::server ( ) const

get the server

◆ triggered

void pqTriggerOnIdleHelper::triggered ( )
signal

◆ setServer

void pqTriggerOnIdleHelper::setServer ( pqServer )
slot

◆ trigger

void pqTriggerOnIdleHelper::trigger ( )
slot

◆ triggerInternal

void pqTriggerOnIdleHelper::triggerInternal ( )
protectedslot

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