Maliit Plugins  0.92.5
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator
Public Member Functions | Private Attributes
MaliitKeyboard::Logic::WordEngine Class Reference

Provides word prediction and error correction. More...

#include <wordengine.h>

List of all members.

Public Member Functions

 WordEngine (QObject *parent=0)
virtual ~WordEngine ()
 D'tor.
virtual Q_SLOT void onTextChanged (const Model::SharedText &text)
Q_SIGNAL void candidatesUpdated (const QStringList &candidates)

Private Attributes

const QScopedPointer
< WordEnginePrivate > 
d_ptr

Detailed Description

Provides word prediction and error correction.

Provides error correction based on preedit (default engine: hunspell) and word predication based on surrounding text and preedit (default engine: presage). WordEngine is a consumer of the shared Model::Text master copy, but does not modify it.


Constructor & Destructor Documentation

MaliitKeyboard::Logic::WordEngine::WordEngine ( QObject *  parent = 0)
explicit

C'tor.

Parameters:
parentthe parent object, takes ownership if valid.
MaliitKeyboard::Logic::WordEngine::~WordEngine ( )
virtual

D'tor.


Member Function Documentation

void MaliitKeyboard::Logic::WordEngine::candidatesUpdated ( const QStringList &  candidates)

Emitted when new candidates have been calculuated, usually as a result of text changes.

Parameters:
candidatesthe list of updated candidates
void MaliitKeyboard::Logic::WordEngine::onTextChanged ( const Model::SharedText text)
virtual

Called when text model changed. Can trigger emission of candidatesUpdated signal.

Parameters:
textthe shared text model

Member Data Documentation

const QScopedPointer<WordEnginePrivate> MaliitKeyboard::Logic::WordEngine::d_ptr
private

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