MoSync 3.3
MAUtil::CharInput Class Reference

A C++ wrapper for the text input system. More...

#include <MAUtil/CharInput.h>

Inheritance diagram for MAUtil::CharInput:
MAUtil::KeyListener MAUtil::TimerListener

List of all members.

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)
virtual void charEvent (uint character)
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 ()

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().


Member Enumeration Documentation

Enumerator for the different input modes.

Enumerator:
LOWERCASE 
UPPERCASE 
NUMBERS 

Member Function Documentation

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.

virtual void MAUtil::CharInput::charEvent ( uint  character) [virtual]

Inherited function from class Keylistener, updates the system.

Reimplemented from MAUtil::KeyListener.

Inherited function from class TimerListener, updates the system.

Implements MAUtil::TimerListener.

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

Force deployment of the currently selected character.

Set the character input mode.

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.

Get the qwerty mode.

virtual void MAUtil::KeyListener::keyPressEvent ( int  keyCode) [inline, virtual, inherited]
virtual void MAUtil::KeyListener::keyReleaseEvent ( int  keyCode) [inline, virtual, inherited]
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Defines