MAUtil::CharInput Class Reference

#include <MAUtil/CharInput.h>

Inheritance diagram for MAUtil::CharInput:

MAUtil::KeyListener MAUtil::TimerListener List of all members.

Detailed Description

A C++ wrapper for the text input system.

This can only be used together with the Moblet system as it depends on functionality in Environment (key input and timers).

This class is a singleton. Retrieve its instance with getCharInput().


Public Types

enum  CharMode { LOWERCASE = 0, UPPERCASE = 1, NUMBERS = 2 }

Public Member Functions

bool isCharInputListener (CharInputListener *listener)
void addCharInputListener (CharInputListener *listener)
void removeCharInputListener (CharInputListener *listener)
virtual void keyPressEvent (int keyCode, int nativeCode)
virtual void keyReleaseEvent (int keyCode, int nativeCode)
void runTimerEvent ()
void forceDeployment ()
void setMode (CharMode charMode)
CharMode getMode () const
void setQwerty (bool on)
bool getQwerty () const
virtual void keyPressEvent (int keyCode)
virtual void keyReleaseEvent (int keyCode)

Static Public Member Functions

static CharInputgetCharInput ()


Member Enumeration Documentation

enum MAUtil::CharInput::CharMode
 

Enumerator for the different input modes.

Enumerator:
LOWERCASE 
UPPERCASE 
NUMBERS 


Member Function Documentation

bool MAUtil::CharInput::isCharInputListener CharInputListener listener  ) 
 

is a CharInputListener?

void MAUtil::CharInput::addCharInputListener CharInputListener listener  ) 
 

Add a CharInputListener to the system.

void MAUtil::CharInput::removeCharInputListener CharInputListener listener  ) 
 

Remove a CharInputListener from the system.

virtual void MAUtil::CharInput::keyPressEvent int  keyCode,
int  nativeCode
[virtual]
 

Inherited function from class Keylistener, updates the system.

Reimplemented from MAUtil::KeyListener.

virtual void MAUtil::CharInput::keyReleaseEvent int  keyCode,
int  nativeCode
[virtual]
 

Inherited function from class Keylistener, updates the system.

Reimplemented from MAUtil::KeyListener.

void MAUtil::CharInput::runTimerEvent  )  [virtual]
 

Inherited function from class TimerListener, updates the system.

Implements MAUtil::TimerListener.

static CharInput& MAUtil::CharInput::getCharInput  )  [static]
 

Get the charinput singleton. (only one instance can exist).

void MAUtil::CharInput::forceDeployment  ) 
 

Force deployment of the currently selected character.

void MAUtil::CharInput::setMode CharMode  charMode  ) 
 

Set the character input mode.

CharMode MAUtil::CharInput::getMode  )  const
 

Get the character input mode.

void MAUtil::CharInput::setQwerty bool  on  ) 
 

In standard mode, only the 0-9, # and * keys are used. This is suitable for devices with such keypads.

In qwerty mode, all keys are used. This is suitable for devices with qwerty keyboards.

bool MAUtil::CharInput::getQwerty  )  const
 

Get the qwerty mode.

virtual void MAUtil::KeyListener::keyPressEvent int  keyCode  )  [inline, virtual, inherited]
 

virtual void MAUtil::KeyListener::keyReleaseEvent int  keyCode  )  [inline, virtual, inherited]
 


Generated on Sat Feb 13 00:15:39 2010 for MoSync 2 beta 1 by  doxygen 1.4.6-NO