src/hbplugins/inputmethods/common/hbinputmodehandler.h
changeset 5 627c4a0fd0e7
parent 2 06ff229162e9
child 6 c3690ec91ef8
equal deleted inserted replaced
3:11d3954df52a 5:627c4a0fd0e7
    83     virtual bool filterEvent(const QEvent * event);
    83     virtual bool filterEvent(const QEvent * event);
    84 
    84 
    85     // Utility functions.
    85     // Utility functions.
    86     void commitFirstMappedNumber(int key, HbKeyboardType type);
    86     void commitFirstMappedNumber(int key, HbKeyboardType type);
    87     void getAndFilterCharactersBoundToKey(QStringList &list, Qt::Key key);
    87     void getAndFilterCharactersBoundToKey(QStringList &list, Qt::Key key);
    88     QChar getNthCharacterInKey(int &index, int key, HbKeyboardType type);
    88     virtual QChar getNthCharacterInKey(int &index, int key, HbKeyboardType type);
    89     virtual void commitAndAppendString(const QString& string);
    89     virtual void commitAndAppendString(const QString& string);
    90     virtual void commitAndUpdate(const QString& string, int replaceFrom = 0, int replaceLength = 0, bool isAsync = false);
    90     virtual void commitAndUpdate(const QString& string, int replaceFrom = 0, int replaceLength = 0, bool isAsync = false);
    91     void sendAndUpdate(QEvent &event);
    91     void sendAndUpdate(QEvent &event);
    92     virtual void setKeymap(const HbKeymap* keymap);
    92     virtual void setKeymap(const HbKeymap* keymap);
    93 	void togglePrediction();
    93 	void togglePrediction();
   182     void appendUnicodeCharacter(QChar character);
   182     void appendUnicodeCharacter(QChar character);
   183     void commitAndAppendCharacter(QChar character);
   183     void commitAndAppendCharacter(QChar character);
   184     virtual void deleteOneCharacter();
   184     virtual void deleteOneCharacter();
   185     virtual void processExactWord(QString exactWord);
   185     virtual void processExactWord(QString exactWord);
   186     void commitExactWord();
   186     void commitExactWord();
   187     virtual void processCustomWord(QString customWord);
       
   188     virtual void candidatePopupClosed(QString activatedWord, int closingKey);
   187     virtual void candidatePopupClosed(QString activatedWord, int closingKey);
   189     virtual void showExactWordPopupIfNeeded();
   188     virtual void showExactWordPopupIfNeeded();
       
   189     void closeSpellQueryDialog();
       
   190     void spellQueryDialogClosed(QObject *savedFocusObject,bool isOk,QString string);
   190 public slots:
   191 public slots:
   191     // different utility popup callbacks
   192     // different utility popup callbacks
   192     virtual void inputQueryPopupClosed(QString activatedWord, int closingKey);    
   193     virtual void inputQueryPopupClosed(QString activatedWord, int closingKey);    
   193     void sctCharacterSelected(QString character);
   194     void sctCharacterSelected(QString character);
   194     void smileySelected(QString smiley);
   195     void smileySelected(QString smiley);
       
   196     void launchSpellQueryDialog();
   195 signals://some useful signals related to popups
   197 signals://some useful signals related to popups
   196     void launchInputQueryPopup(QString editWord);
   198     void launchInputQueryPopup(QString editWord);
   197 
   199 
   198 protected:
   200 protected:
   199     HbInputPredictionHandler(HbInputPredictionHandlerPrivate &dd, HbInputAbstractMethod* inputMethod);
   201     HbInputPredictionHandler(HbInputPredictionHandlerPrivate &dd, HbInputAbstractMethod* inputMethod);