Public Member Functions | |
void | Initialize (CConsoleBase *aConsole, CTimerEntry *aTimerEntry) |
void | RunL () |
void | DoCancel () |
~CUserInterface () | |
void | ReadFunc () |
void | Initialize (CConsoleBase *aConsole, CProducer *aProducer) |
void | RunL () |
void | DoCancel () |
void | ReadFunc () |
Static Public Member Functions | |
static CUserInterface * | NewL (CConsoleBase *aConsole, CTimerEntry *aTimerEntry) |
static CUserInterface * | NewL (CConsoleBase *aConsole, CProducer *aProducer) |
This class processes key press events from the console. The example prints a menu and waits for the user to select an option from the menu. The CUserInterface::RunL() function handles the asynchronous key press event.
Definition at line 32 of file userinterface.h.
CUserInterface::~CUserInterface | ( | ) |
Destructor.
Definition at line 99 of file userinterface.cpp.
CUserInterface * CUserInterface::NewL | ( | CConsoleBase * | aConsole, | |
CTimerEntry * | aTimerEntry | |||
) | [static] |
The static function to create an object of the CUserInterface class.
aConsole | The console object. | |
aTimerEntry | A pointer to an object of the CTimerEntry class. |
Definition at line 30 of file userinterface.cpp.
void CUserInterface::Initialize | ( | CConsoleBase * | aConsole, | |
CTimerEntry * | aTimerEntry | |||
) |
Initialize the data members of the CUserInterface class.
aConsole | The console object. | |
aTimerEntry | A pointer to an object of the CTimerEntry class. |
Definition at line 42 of file userinterface.cpp.
void CUserInterface::RunL | ( | ) |
Handles the key press events from the console. It stops the active scheduler if any key is pressed.
Handles the key press events from the console. The following actions are defined for a key press event:
Definition at line 61 of file userinterface.cpp.
void CUserInterface::DoCancel | ( | ) |
Cancel any outstanding request.
Definition at line 87 of file userinterface.cpp.
void CUserInterface::ReadFunc | ( | ) |
Issues an outstanding request to get a keystroke from the console.
Definition at line 74 of file userinterface.cpp.
CUserInterface * CUserInterface::NewL | ( | CConsoleBase * | aConsole, | |
CProducer * | aProducer | |||
) | [static] |
The static function to create an object of the CUserInterface class.
aConsole | The console object. | |
aProducer | A pointer to an object of the CProducer class. | |
aConsumer | A pointer to an object of the CConsumer class. |
Definition at line 32 of file userinterface.cpp.
void CUserInterface::Initialize | ( | CConsoleBase * | aConsole, | |
CProducer * | aProducer | |||
) |
Initialize the data members of the CUserInterface class.
aConsole | The console object. | |
aProducer | A pointer to an object of the CProducer class. | |
aConsumer | A pointer to an object of the CConsumer class. |
Definition at line 45 of file userinterface.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.