src/hbplugins/inputmethods/common/hbinputmodehandler.h
changeset 23 e6ad4ef83b23
parent 21 4633027730f5
child 30 80e4d18b72f5
equal deleted inserted replaced
21:4633027730f5 23:e6ad4ef83b23
    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         HbInputModeActionRestorePreviousState
    77        // more..
    77        // more..
    78     };
    78     };
    79 
    79 
    80     virtual ~HbInputModeHandler();
    80     virtual ~HbInputModeHandler();
    90     virtual QChar getNthCharacterInKey(int &index, int key, HbKeyboardType type);
    90     virtual QChar getNthCharacterInKey(int &index, int key, HbKeyboardType type);
    91     virtual void commitAndAppendString(const QString& string);
    91     virtual void commitAndAppendString(const QString& string);
    92     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);
    93     void sendAndUpdate(QEvent &event);
    93     void sendAndUpdate(QEvent &event);
    94     virtual void setKeymap(const HbKeymap* keymap);
    94     virtual void setKeymap(const HbKeymap* keymap);
    95 	void togglePrediction();
    95     void togglePrediction();
    96 
    96 
    97 signals:
    97 signals:
    98     // incase one mode handler is not capable of processing the events.
    98     // incase one mode handler is not capable of processing the events.
    99     // 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 
   100     // 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.
   186     virtual void deleteOneCharacter();
   186     virtual void deleteOneCharacter();
   187     virtual void processExactWord(QString exactWord);
   187     virtual void processExactWord(QString exactWord);
   188     void commitExactWord();
   188     void commitExactWord();
   189     virtual void candidatePopupClosed(QString activatedWord, int closingKey);
   189     virtual void candidatePopupClosed(QString activatedWord, int closingKey);
   190     virtual void showExactWordPopupIfNeeded();
   190     virtual void showExactWordPopupIfNeeded();
   191     void closeSpellQueryDialog();
       
   192     void spellQueryDialogClosed(QObject *savedFocusObject,HbInputSpellQuery::HbSpellCloseReason closeReason,const QString &string);
   191     void spellQueryDialogClosed(QObject *savedFocusObject,HbInputSpellQuery::HbSpellCloseReason closeReason,const QString &string);
   193     void setAutocompletionStatus(bool status);  
   192     void setAutocompletionStatus(bool status);  
   194 public slots:
   193 public slots:
   195     // different utility popup callbacks
   194     // different utility popup callbacks
   196     virtual void inputQueryPopupClosed(QString activatedWord, int closingKey);    
   195     virtual void inputQueryPopupClosed(QString activatedWord, int closingKey);    
   197     void sctCharacterSelected(QString character);
   196     void sctCharacterSelected(QString character);
   198     void smileySelected(QString smiley);
   197     void smileySelected(QString smiley);
   199     void launchSpellQueryDialog();
   198     void launchSpellQueryDialog();
       
   199     void closeSpellQueryDialog();
   200 signals://some useful signals related to popups
   200 signals://some useful signals related to popups
   201     void launchInputQueryPopup(QString editWord);
   201     void launchInputQueryPopup(QString editWord);
   202 
   202 
   203 protected:
   203 protected:
   204     HbInputPredictionHandler(HbInputPredictionHandlerPrivate &dd, HbInputAbstractMethod* inputMethod);
   204     HbInputPredictionHandler(HbInputPredictionHandlerPrivate &dd, HbInputAbstractMethod* inputMethod);