CSubtractor Class Reference

List of all members.

Public Member Functions

void RunL ()
void DoCancel ()
 ~CSubtractor ()
void StartTimer ()
void StopTimer ()
void ReadFunction ()
void Subtract ()

Static Public Member Functions

static CSubtractorNewL (CConsoleBase *aConsole)
static TInt SubtractFunction (TAny *aPtr)

Detailed Description

The subtractor class. This class opens the global chunk and periodically subtracts random values from it. The condition variable ensures that the value of the chunk is always greater than 0.

Definition at line 45 of file subtractor.h.


Constructor & Destructor Documentation

CSubtractor::~CSubtractor (  ) 

Destructor.

Definition at line 83 of file subtractor.cpp.


Member Function Documentation

CSubtractor * CSubtractor::NewL ( CConsoleBase *  aConsole  )  [static]

Performs the two-phase construction of an object of the CAdder class.

Parameters:
aConsole The console object.
Returns:
A CSubtractor object.

Definition at line 43 of file subtractor.cpp.

void CSubtractor::RunL (  ) 

Handles the key press events from the console. It stops the active scheduler for any key press event.

Definition at line 56 of file subtractor.cpp.

void CSubtractor::DoCancel (  ) 

Cancel any outstanding request.

Definition at line 71 of file subtractor.cpp.

void CSubtractor::StartTimer (  ) 

Starts the timer object.

See also:
CPeriodic::Start().

Definition at line 137 of file subtractor.cpp.

void CSubtractor::StopTimer (  ) 

Stops the timer object.

Definition at line 145 of file subtractor.cpp.

void CSubtractor::ReadFunction (  ) 

Issues an outstanding request to get a keystroke from the console.

Definition at line 124 of file subtractor.cpp.

TInt CSubtractor::SubtractFunction ( TAny *  aPtr  )  [static]

The call back function for the CSubtractor::iPeriodic object.

Parameters:
aPtr Contains the address of the object passed as an argument to the SubtractFunction().
Returns:
KErrNone.

Definition at line 156 of file subtractor.cpp.

void CSubtractor::Subtract (  ) 

Subtracts a random integer value from the global chunk.

Definition at line 169 of file subtractor.cpp.


Generated by  doxygen 1.6.2