70 |
70 |
71 // focus change |
71 // focus change |
72 HbInputModeActionFocusRecieved, // focus received state |
72 HbInputModeActionFocusRecieved, // focus received state |
73 HbInputModeActionFocusLost, // focus lost state |
73 HbInputModeActionFocusLost, // focus lost state |
74 HbInputModeActionCancelButtonPress, |
74 HbInputModeActionCancelButtonPress, |
75 HbInputModeActionCloseSpellQuery |
75 HbInputModeActionCloseSpellQuery, |
|
76 HbInputModeActionRestorePreviousState |
76 // more.. |
77 // more.. |
77 }; |
78 }; |
78 |
79 |
79 virtual ~HbInputModeHandler(); |
80 virtual ~HbInputModeHandler(); |
80 |
81 |
89 virtual QChar getNthCharacterInKey(int &index, int key, HbKeyboardType type); |
90 virtual QChar getNthCharacterInKey(int &index, int key, HbKeyboardType type); |
90 virtual void commitAndAppendString(const QString& string); |
91 virtual void commitAndAppendString(const QString& string); |
91 virtual void commitAndUpdate(const QString& string, int replaceFrom = 0, int replaceLength = 0, bool isAsync = false); |
92 virtual void commitAndUpdate(const QString& string, int replaceFrom = 0, int replaceLength = 0, bool isAsync = false); |
92 void sendAndUpdate(QEvent &event); |
93 void sendAndUpdate(QEvent &event); |
93 virtual void setKeymap(const HbKeymap* keymap); |
94 virtual void setKeymap(const HbKeymap* keymap); |
94 void togglePrediction(); |
95 void togglePrediction(); |
95 |
96 |
96 signals: |
97 signals: |
97 // incase one mode handler is not capable of processing the events. |
98 // incase one mode handler is not capable of processing the events. |
98 // it can pass the event by sending following signals. And then it is |
99 // it can pass the event by sending following signals. And then it is |
99 // upto the plugin to decide which two mode handlers needs to be connected. |
100 // upto the plugin to decide which two mode handlers needs to be connected. |
185 virtual void deleteOneCharacter(); |
186 virtual void deleteOneCharacter(); |
186 virtual void processExactWord(QString exactWord); |
187 virtual void processExactWord(QString exactWord); |
187 void commitExactWord(); |
188 void commitExactWord(); |
188 virtual void candidatePopupClosed(QString activatedWord, int closingKey); |
189 virtual void candidatePopupClosed(QString activatedWord, int closingKey); |
189 virtual void showExactWordPopupIfNeeded(); |
190 virtual void showExactWordPopupIfNeeded(); |
190 void closeSpellQueryDialog(); |
|
191 void spellQueryDialogClosed(QObject *savedFocusObject,HbInputSpellQuery::HbSpellCloseReason closeReason,const QString &string); |
191 void spellQueryDialogClosed(QObject *savedFocusObject,HbInputSpellQuery::HbSpellCloseReason closeReason,const QString &string); |
192 void setAutocompletionStatus(bool status); |
192 void setAutocompletionStatus(bool status); |
|
193 void setLanguage(HbInputLanguage& language); |
193 public slots: |
194 public slots: |
194 // different utility popup callbacks |
195 // different utility popup callbacks |
195 virtual void inputQueryPopupClosed(QString activatedWord, int closingKey); |
196 virtual void inputQueryPopupClosed(QString activatedWord, int closingKey); |
196 void sctCharacterSelected(QString character); |
197 void sctCharacterSelected(QString character); |
197 void smileySelected(QString smiley); |
198 void smileySelected(QString smiley); |
198 void launchSpellQueryDialog(); |
199 void launchSpellQueryDialog(); |
|
200 void closeSpellQueryDialog(); |
199 signals://some useful signals related to popups |
201 signals://some useful signals related to popups |
200 void launchInputQueryPopup(QString editWord); |
202 void launchInputQueryPopup(QString editWord); |
201 |
203 |
202 protected: |
204 protected: |
203 HbInputPredictionHandler(HbInputPredictionHandlerPrivate &dd, HbInputAbstractMethod* inputMethod); |
205 HbInputPredictionHandler(HbInputPredictionHandlerPrivate &dd, HbInputAbstractMethod* inputMethod); |