CMyStringReverse Class Reference

List of all members.

Public Member Functions

void RunL ()
void DoCancel ()
void AddToScheduler ()
 ~CMyStringReverse ()
void ReadOption ()
void ReadChar ()
void PrintStrings ()

Static Public Member Functions

static CMyStringReverseNewL (CConsoleBase *aConsole)

Detailed Description

This class has the doubly linked list, iString. This string represents the user-entered string. The member functions of this class allow users to edit the string and get a reverse string of this string.

Definition at line 44 of file mystringreverse.h.

Constructor & Destructor Documentation

CMyStringReverse::~CMyStringReverse (  ) 

Destructor. The TLetter objects were allocated memory at runtime. Iterate over the list to delete them.

Definition at line 248 of file mystringreverse.cpp.

Member Function Documentation

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

Creates an object of the CMyStringReverse class.

aConsole The user console.

Definition at line 40 of file mystringreverse.cpp.

void CMyStringReverse::RunL (  ) 

Handles the key press events for this active object. The following actions are defined for a key press event:

  • Call the iString.AddFirst() function if '1' is pressed.
  • Call the iString.AddLast() function if '2' is pressed.
  • Stop the active scheduler if any other number keys are pressed.
  • Add the character to iString if any alphabetic keys are pressed depending on the previous numeric key press.

Definition at line 79 of file mystringreverse.cpp.

void CMyStringReverse::DoCancel (  ) 

Cancel any outstanding request.

Definition at line 234 of file mystringreverse.cpp.

void CMyStringReverse::AddToScheduler (  ) 

Adds this active object to the active scheduler

Definition at line 50 of file mystringreverse.cpp.

void CMyStringReverse::ReadOption (  ) 

Reads the option entered by the user.

Definition at line 170 of file mystringreverse.cpp.

void CMyStringReverse::ReadChar (  ) 

Reads the character entered by the user.

Definition at line 182 of file mystringreverse.cpp.

void CMyStringReverse::PrintStrings (  ) 

Prints the data in iString and iReverseString.

Definition at line 193 of file mystringreverse.cpp.

Generated by  doxygen 1.6.2