JX Application Framework
Loading...
Searching...
No Matches
Public Member Functions | Protected Member Functions | Friends | List of all members
JXUrgentTask Class Referenceabstract

#include <JXUrgentTask.h>

Inheritance diagram for JXUrgentTask:
[legend]

Public Member Functions

 JXUrgentTask (JBroadcaster *target)
 
void Go ()
 
void Cancel ()
 
bool Cancelled () const
 
- Public Member Functions inherited from JBroadcaster
 JBroadcaster ()
 
virtual ~JBroadcaster ()
 
JBroadcasteroperator= (const JBroadcaster &source)
 
bool HasSenders () const
 
JSize GetSenderCount () const
 
bool HasRecipients () const
 
JSize GetRecipientCount () const
 
virtual JString ToString () const
 
template<class T >
void ListenTo (const JBroadcaster *sender, const std::function< void(const T &)> &f)
 

Protected Member Functions

 ~JXUrgentTask () override
 
virtual void Perform ()=0
 
- Protected Member Functions inherited from JBroadcaster
 JBroadcaster (const JBroadcaster &source)
 
void ListenTo (const JBroadcaster *sender)
 
void StopListening (const JBroadcaster *sender)
 
void ClearWhenGoingAway (const JBroadcaster *sender, void *pointerToMember)
 
void StopListening (const JBroadcaster *sender, const std::type_info &messageType)
 
template<class T >
void Send (JBroadcaster *recipient, const T &message)
 
template<class T >
void Broadcast (const T &message)
 
virtual void Receive (JBroadcaster *sender, const Message &message)
 
void SendWithFeedback (JBroadcaster *recipient, Message *message)
 
void BroadcastWithFeedback (Message *message)
 
virtual void ReceiveWithFeedback (JBroadcaster *sender, Message *message)
 
virtual void ReceiveGoingAway (JBroadcaster *sender)
 

Friends

class JXApplication
 

Detailed Description

Interface for the JXUrgentTask class

Urgent tasks are performed as soon as possible and then deleted.

Constructor & Destructor Documentation

◆ JXUrgentTask()

JXUrgentTask::JXUrgentTask ( JBroadcaster target)

◆ ~JXUrgentTask()

JXUrgentTask::~JXUrgentTask ( )
overrideprotected

Member Function Documentation

◆ Cancel()

void JXUrgentTask::Cancel ( )
inline

◆ Cancelled()

bool JXUrgentTask::Cancelled ( ) const
inline

◆ Go()

void JXUrgentTask::Go ( )

◆ Perform()

virtual void JXUrgentTask::Perform ( )
protectedpure virtual

Friends And Related Symbol Documentation

◆ JXApplication

friend class JXApplication
friend

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