src/hbcore/inputfw/hbinputmethod.h
changeset 1 f7ac710697a9
parent 0 16d8024aca5e
child 2 06ff229162e9
equal deleted inserted replaced
0:16d8024aca5e 1:f7ac710697a9
    35 #include <hbinputfocusobject.h>
    35 #include <hbinputfocusobject.h>
    36 #include <hbinputlanguage.h>
    36 #include <hbinputlanguage.h>
    37 
    37 
    38 class QAction;
    38 class QAction;
    39 class HbInputMethodPrivate;
    39 class HbInputMethodPrivate;
    40 class HbInputStateMachine;
       
    41 
    40 
    42 class HB_CORE_EXPORT HbInputMethod : public QInputContext
    41 class HB_CORE_EXPORT HbInputMethod : public QInputContext
    43 {
    42 {
    44     Q_OBJECT
    43     Q_OBJECT
    45 
    44 
    66     // From QInputContext (do not override).
    65     // From QInputContext (do not override).
    67     void widgetDestroyed(QWidget* widget);
    66     void widgetDestroyed(QWidget* widget);
    68     void setFocusWidget(QWidget* widget);
    67     void setFocusWidget(QWidget* widget);
    69 
    68 
    70     void focusObjectDestroyed(const HbInputFocusObject* focusObject);
    69     void focusObjectDestroyed(const HbInputFocusObject* focusObject);
    71     HbInputState inputState() const; 
    70     HbInputState inputState() const;
    72 
    71 
    73     bool activateState(const HbInputState& state); 
    72     bool activateState(const HbInputState& state);
    74     void updateState();
    73     void updateState();
    75     void editorRootState(HbInputState &result) const;  
    74     void editorRootState(HbInputState &result) const;
    76     bool automaticTextCaseNeeded() const;
    75     bool automaticTextCaseNeeded() const;
    77     bool activateInputMethod(const HbInputMethodDescriptor &inputMethod);
    76     bool activateInputMethod(const HbInputMethodDescriptor &inputMethod);
    78       
    77 
    79 protected:
    78 protected:
    80     virtual void inputStateActivated(const HbInputState& newState);
    79     virtual void inputStateActivated(const HbInputState& newState);
    81     virtual void inputLanguageChanged(const HbInputLanguage &newLanguage);
    80     virtual void inputLanguageChanged(const HbInputLanguage &newLanguage);
    82     virtual void secondaryInputLanguageChanged(const HbInputLanguage &aNewLanguage);
    81     virtual void secondaryInputLanguageChanged(const HbInputLanguage &newLanguage);
    83     virtual void predictiveInputStatusChanged(int newStatus);
    82     virtual void predictiveInputStatusChanged(int newStatus);
    84     bool stateChangeInProgress() const;
    83     bool stateChangeInProgress() const;
    85     bool orientationContextSwitchInProgress();
    84     bool orientationContextSwitchInProgress();
    86        
    85 
    87     void releaseFocus();    
    86     void releaseFocus();
    88     HbInputLanguage activeLanguage() const;
    87     HbInputLanguage activeLanguage() const;
    89 
    88 
    90     bool modeAllowedInEditor(HbInputModeType mode) const;  
    89     bool modeAllowedInEditor(HbInputModeType mode) const;
    91     void inputStateToEditor(const HbInputState& source);
    90     void inputStateToEditor(const HbInputState& source);
    92   
    91 
    93     void constructLatinState(HbInputState &result) const;
    92     void constructLatinState(HbInputState &result) const;
    94 
    93 
    95 public slots:
    94 public slots:
    96     void globalInputLanguageChanged(const HbInputLanguage &aNewLanguage);
    95     void globalInputLanguageChanged(const HbInputLanguage &newLanguage);
    97     void globalSecondaryInputLanguageChanged(const HbInputLanguage &aNewLanguage);
    96     void globalSecondaryInputLanguageChanged(const HbInputLanguage &newLanguage);
    98     void activeHwKeyboardChanged(HbKeyboardType newKeyboard);
    97     void activeHwKeyboardChanged(HbKeyboardType newKeyboard);
    99     void activeTouchKeyboardChanged(HbKeyboardType newKeyboard);
    98     void activeTouchKeyboardChanged(HbKeyboardType newKeyboard);
   100     void activeKeyboardChanged(HbKeyboardType newKeyboard);
    99     void activeKeyboardChanged(HbKeyboardType newKeyboard);
   101     void predictiveInputStateChanged(int newState);
   100     void predictiveInputStateChanged(int newState);
       
   101     virtual void predictiveInputStateChanged(HbKeyboardSettingFlags keyboardType, bool newState);
   102     void receiveText(const QString& string);
   102     void receiveText(const QString& string);
   103     virtual void candidatePopupClosed(int closingKey = 0);
   103     virtual void candidatePopupClosed(int closingKey = 0);
   104     void orientationChanged(Qt::Orientation orientation);
   104     void orientationChanged(Qt::Orientation orientation);
   105     virtual void orientationAboutToChange();
   105     virtual void orientationAboutToChange();
   106     void editorDeleted(QObject *obj);
   106     void editorDeleted(QObject *obj);