CInverter Class Reference

List of all members.

Public Member Functions

virtual ~CInverter ()
void Start ()
TInt RecieveMsg ()
void SendMsg ()
void Stop ()
void ConstructL ()
void DoInvert ()
void ReverseWord (TBuf< 20 > buf)

Static Public Member Functions

static CInverterNewL ()
static TInt StaticWake (TAny *)

Detailed Description

Definition at line 36 of file CInverter.h.


Constructor & Destructor Documentation

CInverter::~CInverter (  )  [virtual]

Destructor, cancels the periodic timer, close the message queues.

Definition at line 52 of file CInverter.cpp.


Member Function Documentation

TInt CInverter::RecieveMsg (  ) 

The following function opens the InveterInQ message queue and recieves data from it. If the recieved message indicates stop command given by the first process, it stops the timer and closes the message queue etc. This function is called at a regular interval of 5 secs, so every five seconds data is recieved by this process.

Definition at line 105 of file CInverter.cpp.

void CInverter::SendMsg (  ) 

The following function will send the message to the message queue after inverting the words.

Definition at line 131 of file CInverter.cpp.

void CInverter::Stop (  ) 

This function is called when user gives stop command, it closes the message queue, stops the scheduler and cancels the timer.

Definition at line 188 of file CInverter.cpp.

TInt CInverter::StaticWake ( TAny *  aAny  )  [static]

The following function is called periodically at an interval specified in the Start function of the CPeriodic class.

Definition at line 90 of file CInverter.cpp.

void CInverter::ConstructL (  ) 

Construct a periodic timer and starts the timer function.

Definition at line 75 of file CInverter.cpp.

void CInverter::DoInvert (  ) 

The following function inverts words in the sentence, recieved by the message queue.

Definition at line 148 of file CInverter.cpp.

void CInverter::ReverseWord ( TBuf< 20 >  buf  ) 

Reverse the individual words of the sentence, filtered in the function above.

Definition at line 174 of file CInverter.cpp.


Generated by  doxygen 1.6.2