81 virtual bool isComposing() const {return false;} |
81 virtual bool isComposing() const {return false;} |
82 virtual void mouseHandler(int x, QMouseEvent* mouseEvent); |
82 virtual void mouseHandler(int x, QMouseEvent* mouseEvent); |
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); |
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); |
88 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 virtual void characterPreviewAvailable(bool available); |
|
94 void togglePrediction(); |
93 void togglePrediction(); |
95 |
94 |
96 signals: |
95 signals: |
97 // incase one mode handler is not capable of processing the events. |
96 // 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 |
97 // it can pass the event by sending following signals. And then it is |
115 Q_DECLARE_PRIVATE_D(d_ptr, HbInputModeHandler) |
114 Q_DECLARE_PRIVATE_D(d_ptr, HbInputModeHandler) |
116 Q_DISABLE_COPY(HbInputModeHandler) |
115 Q_DISABLE_COPY(HbInputModeHandler) |
117 Q_PRIVATE_SLOT(d_func(), virtual void _q_timeout()) |
116 Q_PRIVATE_SLOT(d_func(), virtual void _q_timeout()) |
118 }; |
117 }; |
119 |
118 |
120 // long press constant. |
|
121 const int HbLongPressTimerTimeout = 600; |
|
122 // multi tap constant |
119 // multi tap constant |
123 const int HbMultiTapTimerTimeout = 600; |
120 const int HbMultiTapTimerTimeout = 600; |
124 |
121 |
125 // shift key states |
122 // shift key states |
126 enum HbInputShiftKeyState { |
123 enum HbInputShiftKeyState { |