src/hbplugins/inputmethods/common/hbinputmodehandler.h
changeset 1 f7ac710697a9
parent 0 16d8024aca5e
child 2 06ff229162e9
equal deleted inserted replaced
0:16d8024aca5e 1:f7ac710697a9
    68         HbInputModeActionSetupAutoCompletion, // setting up of autocompletion
    68         HbInputModeActionSetupAutoCompletion, // setting up of autocompletion
    69 
    69 
    70         // focus change
    70         // focus change
    71         HbInputModeActionFocusRecieved, // focus recived state
    71         HbInputModeActionFocusRecieved, // focus recived state
    72         HbInputModeActionFocusLost, // focus lost state
    72         HbInputModeActionFocusLost, // focus lost state
    73         HbInputModeActionCancelButtonPress
    73         HbInputModeActionCancelButtonPress,
    74         // more..
    74 		HbInputModeActionCloseSpellQuery
       
    75        // more..
    75     };
    76     };
    76 
    77 
    77     virtual ~HbInputModeHandler();
    78     virtual ~HbInputModeHandler();
    78 
    79 
    79     // HbInputMethod specific operations.
    80     // HbInputMethod specific operations.
    80     virtual bool isComposing() const {return false;}
    81     virtual bool isComposing() const {return false;}
    81     virtual void listInputModes(QVector<HbInputModeProperties>& modes) const = 0 ;
       
    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);
    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);
    93     virtual void characterPreviewAvailable(bool available);
       
    94 	void togglePrediction();
    94 
    95 
    95 signals:
    96 signals:
    96     // incase one mode handler is not capable of processing the events.
    97     // incase one mode handler is not capable of processing the events.
    97     // it can pass the event by sending following signals. And then it is 
    98     // it can pass the event by sending following signals. And then it is 
    98     // upto the plugin to decide which two mode handlers needs to be connected.
    99     // upto the plugin to decide which two mode handlers needs to be connected.