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 CInverter * | NewL () |
static TInt | StaticWake (TAny *) |
Definition at line 21 of file CInverter.h.
CInverter::~CInverter | ( | ) | [virtual] |
Destructor, cancels the periodic timer, close the message queues.
Definition at line 37 of file CInverter.cpp.
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 90 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 116 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 173 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 75 of file CInverter.cpp.
void CInverter::ConstructL | ( | ) |
Construct a periodic timer and starts the timer function.
Definition at line 60 of file CInverter.cpp.
void CInverter::DoInvert | ( | ) |
The following function inverts words in the sentence, recieved by the message queue.
Definition at line 133 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 159 of file CInverter.cpp.
Copyright ©2010 Nokia Corporation and/or its subsidiary(-ies).
All rights
reserved. Unless otherwise stated, these materials are provided under the terms of the Eclipse Public License
v1.0.