Public Member Functions

DummyDriverHwr Class Reference

DummyDriverHwr inherits from MImEngineWordsInterface(Abstract driver class) and QObject, it implements a dummy input method engine. More...

#include <dummydriver_hwr.h>

Inheritance diagram for DummyDriverHwr:
Inheritance graph
[legend]
Collaboration diagram for DummyDriverHwr:
Collaboration graph
[legend]

List of all members.

Public Member Functions

 DummyDriverHwr ()
 ~DummyDriverHwr ()
virtual bool init (void)
virtual void setAreaSize (QSize size)
virtual QSize areaSize ()
virtual void setScreenSize (QSize size)
virtual QSize screenSize ()
virtual bool setScripts (const QStringList scripts)
virtual QStringList scripts ()
virtual QStringList recognize ()
virtual void appendStroke (const QList< QPoint > stroke)
virtual void clear ()
virtual QString error ()
virtual void train (const QString &string)
virtual QString driver ()

Detailed Description

DummyDriverHwr inherits from MImEngineWordsInterface(Abstract driver class) and QObject, it implements a dummy input method engine.


Constructor & Destructor Documentation

DummyDriverHwr::DummyDriverHwr (  ) 

DummyDriverHwr construtor

DummyDriverHwr::~DummyDriverHwr (  ) 

DummyDriverHwr destructor


Member Function Documentation

void DummyDriverHwr::appendStroke ( const QList< QPoint >  stroke  )  [virtual]

Appends a stroke into the buffer

Parameters:
QList<QPoint> the stroke

Implements MImEngineHwrInterface.

QSize DummyDriverHwr::areaSize (  )  [virtual]

Gets the recognition area size

Returns:
QSize

Implements MImEngineHwrInterface.

void DummyDriverHwr::clear (  )  [virtual]

Clears the strokes in the buffer

Implements MImEngineHwrInterface.

QString DummyDriverHwr::driver (  )  [virtual]

Gets name for current driver

Parameters:
N/A 
Returns:
QString, current driver name

Implements MImEngineHwrInterface.

QString DummyDriverHwr::error (  )  [virtual]

Gets error

Parameters:
N/A 
Returns:
QString, error

Implements MImEngineHwrInterface.

bool DummyDriverHwr::init ( void   )  [virtual]

REIMPLEMENTATION

Implements MImEngineHwrInterface.

QStringList DummyDriverHwr::recognize (  )  [virtual]

Recognizes the strokes in the buffer

Returns:
QString string recognized

Implements MImEngineHwrInterface.

QSize DummyDriverHwr::screenSize (  )  [virtual]

Gets the screen size

Returns:
QSize

Implements MImEngineHwrInterface.

QStringList DummyDriverHwr::scripts (  )  [virtual]

Gets the scripts requested to be recognized

Parameters:
QStringList 

Implements MImEngineHwrInterface.

void DummyDriverHwr::setAreaSize ( QSize  size  )  [virtual]

Sets the area size of the recognition should take place

Parameters:
QSize the size of the area

Implements MImEngineHwrInterface.

void DummyDriverHwr::setScreenSize ( QSize  size  )  [virtual]

Sets the screen size, this may be needed by the engine whenever the device orientation changes

Parameters:
QSize the size of the screen

Implements MImEngineHwrInterface.

bool DummyDriverHwr::setScripts ( const QStringList  scripts  )  [virtual]

Sets the scripts desired to be recognized

Parameters:
QStringList scripts in ISO15924 format
Returns:
bool whether the operation was successful

Implements MImEngineHwrInterface.

void DummyDriverHwr::train ( const QString &  string  )  [virtual]

Trains the stroke in the buffer as string specified in the argument

Parameters:
QString string
Returns:
bool whether the training was successful

Implements MImEngineHwrInterface.


The documentation for this class was generated from the following files: