iberbox  2.1.2
iberbox::TaskManager Class Reference

The Task Manager class. More...

Inherits SharedOwnership.

Collaboration diagram for iberbox::TaskManager:

Public Member Functions

virtual void fireNotifications ()
 
virtual void onFireNotificationsRequested ()
 
virtual void runTask (std::function< void()> callback)
 Puts the callback in a queue so as to run it in order of request. More...
 
 TaskManager ()
 Constructs a new Task Manager object. More...
 
 TaskManager (std::function< void()> fireNotificationsRequested)
 Constructs a new Task Manager object. More...
 
virtual ~TaskManager ()
 Destroys the Task Manager object. More...
 

Detailed Description

The Task Manager class.

The task manager is responsible for running action listeners' methods.

Constructor & Destructor Documentation

◆ TaskManager() [1/2]

iberbox::TaskManager::TaskManager ( )

Constructs a new Task Manager object.

◆ TaskManager() [2/2]

iberbox::TaskManager::TaskManager ( std::function< void()>  fireNotificationsRequested)

Constructs a new Task Manager object.

Parameters
fireNotificationsRequestedThe function to run when calling onFireNotificationsRequested.

◆ ~TaskManager()

virtual iberbox::TaskManager::~TaskManager ( )
virtual

Destroys the Task Manager object.

Member Function Documentation

◆ fireNotifications()

virtual void iberbox::TaskManager::fireNotifications ( )
virtual

◆ onFireNotificationsRequested()

virtual void iberbox::TaskManager::onFireNotificationsRequested ( )
virtual

◆ runTask()

virtual void iberbox::TaskManager::runTask ( std::function< void()>  callback)
virtual

Puts the callback in a queue so as to run it in order of request.

Adds the callback to the callback queue and invokes onFireNotificationsRequested.

Parameters
callbackThe function to be run.

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