src/hbplugins/inputmethods/touchinput/virtual12key.h
changeset 5 627c4a0fd0e7
parent 2 06ff229162e9
child 6 c3690ec91ef8
equal deleted inserted replaced
3:11d3954df52a 5:627c4a0fd0e7
    34 class HbKeymap;
    34 class HbKeymap;
    35 class QTimer;
    35 class QTimer;
    36 class HbInputVkbWidget;
    36 class HbInputVkbWidget;
    37 class Hb12KeyTouchKeyboard;
    37 class Hb12KeyTouchKeyboard;
    38 class HbSctKeyboard;
    38 class HbSctKeyboard;
    39 class HbInputThaiSpecialPopup;
       
    40 class HbCandidateList;
    39 class HbCandidateList;
    41 class HbPredictionEngine;
    40 class HbPredictionEngine;
    42 class HbAction;
    41 class HbAction;
    43 
    42 
    44     // input mode handlers.
    43     // input mode handlers.
    45 class HbInputModeHandler;
    44 class HbInputModeHandler;
    46 class HbInputPrediction12KeyHandler;
    45 class HbInputPrediction12KeyHandler;
    47 class HbInputBasic12KeyHandler;
    46 class HbInputBasic12KeyHandler;
    48 class HbInputNumeric12KeyHandler;
    47 class HbInputNumeric12KeyHandler;
    49 class HbInputBasic12KeyThaiHandler;
       
    50 class HbInputPrediction12KeyThaiHandler;
       
    51 
    48 
    52 class HbVirtual12Key : public HbInputAbstractMethod
    49 class HbVirtual12Key : public HbInputAbstractMethod
    53 {
    50 {
    54     Q_OBJECT
    51     Q_OBJECT
    55 
    52 
    90     void closeKeypad();
    87     void closeKeypad();
    91     void selectSpecialCharacterTableMode();
    88     void selectSpecialCharacterTableMode();
    92     void launchAutoCompletionPopup(const QStringList &candidates);
    89     void launchAutoCompletionPopup(const QStringList &candidates);
    93     void closeAutoCompletionPopup();
    90     void closeAutoCompletionPopup();
    94     void switchMode(int keyCode);
    91     void switchMode(int keyCode);
    95     void showThaiSpecialCharacters(uint buttonId);
       
    96     void starKeySelected();
    92     void starKeySelected();
    97     uint previousChar();
       
    98     HbKeyboardType currentKeyboardType() const;
    93     HbKeyboardType currentKeyboardType() const;
    99 private:
    94 private:
   100     void openKeypad(HbInputVkbWidget * keypadToOpen,bool inMinimizedMode = false);
    95     void openKeypad(HbInputVkbWidget * keypadToOpen,bool inMinimizedMode = false);
   101     void switchToAlphaMode(bool openAlphaInMinimizedMode = false);
    96     void switchToAlphaMode(bool openAlphaInMinimizedMode = false);
   102     void setSpecialCharacters();
    97     void setSpecialCharacters();
   113     void candidatePopupClosed(int closingKey, const QString &candidate);
   108     void candidatePopupClosed(int closingKey, const QString &candidate);
   114     void flickEvent(HbInputVkbWidget::HbFlickDirection direction);
   109     void flickEvent(HbInputVkbWidget::HbFlickDirection direction);
   115     void mouseMovedOutOfButton();
   110     void mouseMovedOutOfButton();
   116     void smileySelected(QString smiley);
   111     void smileySelected(QString smiley);
   117     void predictiveInputStateChanged(HbKeyboardSettingFlags keyboardType, bool newState);
   112     void predictiveInputStateChanged(HbKeyboardSettingFlags keyboardType, bool newState);
   118     void thaiSctCharacterSelected(QString sctChar);
   113     void aboutToActivateCustomAction(HbAction *custAction);
   119 
   114 
   120 private:
   115 private:
   121     // mCurrentKeypad contains currently active keypad, we dont need to have
   116     // mCurrentKeypad contains currently active keypad, we dont need to have
   122     // anyother variables to tell us which is current keypad
   117     // anyother variables to tell us which is current keypad
   123     QPointer<HbInputVkbWidget> mCurrentKeypad;
   118     QPointer<HbInputVkbWidget> mCurrentKeypad;
   124     // contains itut keypad
   119     // contains itut keypad
   125     QPointer<Hb12KeyTouchKeyboard> mItutKeypad;
   120     QPointer<Hb12KeyTouchKeyboard> mItutKeypad;
   126     // contains sct keypad
   121     // contains sct keypad
   127     QPointer<HbSctKeyboard> mSctKeypad;
   122     QPointer<HbSctKeyboard> mSctKeypad;
   128     // contains Thai special characters
       
   129     QPointer<HbInputThaiSpecialPopup> mThaiSpecialChar;
       
   130 
   123 
   131     //Owned by the keymap factory
   124     //Owned by the keymap factory
   132     const HbKeymap* mKeymap;
   125     const HbKeymap* mKeymap;
   133     bool mOrientationAboutToChange;
   126     bool mOrientationAboutToChange;
   134 
   127 
   139     // input mode handlers.
   132     // input mode handlers.
   140     HbInputModeHandler *mActiveModeHandler;
   133     HbInputModeHandler *mActiveModeHandler;
   141     HbInputPrediction12KeyHandler *mPredictionModeHandler;
   134     HbInputPrediction12KeyHandler *mPredictionModeHandler;
   142     HbInputBasic12KeyHandler *mBasicModeHandler;
   135     HbInputBasic12KeyHandler *mBasicModeHandler;
   143     HbInputNumeric12KeyHandler *mNumericModeHandler;
   136     HbInputNumeric12KeyHandler *mNumericModeHandler;
   144     HbInputBasic12KeyThaiHandler *mBasic12keyThaiHandler;
   137 	
   145     HbInputPrediction12KeyThaiHandler *mPrediction12keyThaiHandler;
       
   146 
       
   147     QPointer<HbVkbHost> mVkbHost;
   138     QPointer<HbVkbHost> mVkbHost;
   148     bool mKeyboardChangeAlreadyInprogress;
   139     bool mKeyboardChangeAlreadyInprogress;
   149 };
   140 };
   150 
   141 
   151 #endif // _Virtual12Key_H
   142 #endif // _Virtual12Key_H