SystemMessenger Class Reference

#include <SystemMessenger.h>

Inheritance diagram for SystemMessenger:

Inheritance graph
[legend]
Collaboration diagram for SystemMessenger:

Collaboration graph
[legend]
List of all members.

Detailed Description

Main System class responsible for distributing events to relevant listeners.


Public Types

enum  Status {
  OK,
  NEEDRESET,
  NEEDREBOOT
}
 An enumeration of status values that are returned by the execute method. More...

Public Member Functions

virtual SystemTask::Status execute ()
 This method must be implemented in the realization.

Static Public Member Functions

static SystemMessengergetInstance ()
 A static method to get the one and only instance of the SystemMessenger.

Private Member Functions

 SystemMessenger ()
 Constructor.


Member Enumeration Documentation

enum SystemTask::Status [inherited]
 

An enumeration of status values that are returned by the execute method.

Enumerator:
OK  Everything went well.
NEEDRESET  Things didn't go well, and the system cycle should reset.
NEEDREBOOT  Things really didn't go well, and the system should reboot.


Constructor & Destructor Documentation

SystemMessenger::SystemMessenger  )  [inline, private]
 

Constructor.

Kept private to force users to invoke getInstance to obtain the singleton copy.


Member Function Documentation

SystemTask::Status SystemMessenger::execute  )  [virtual]
 

This method must be implemented in the realization.

The execute() method is invoked each cycle of the main loop.

Returns:
Status

Implements SystemTask.

SystemMessenger & SystemMessenger::getInstance  )  [static]
 

A static method to get the one and only instance of the SystemMessenger.

Returns:
SystemMessenger&


The documentation for this class was generated from the following files:
Generated on Tue Sep 19 14:04:52 2006 for MegaPlusPlus by  doxygen 1.4.6