src/hbplugins/inputmethods/touchinput/hbinputprediction12keyhandler_p.h
changeset 5 627c4a0fd0e7
parent 3 11d3954df52a
equal deleted inserted replaced
3:11d3954df52a 5:627c4a0fd0e7
    30 
    30 
    31 #include "hbinputpredictionhandler_p.h"
    31 #include "hbinputpredictionhandler_p.h"
    32 #include "hbinputprediction12keyhandler.h"
    32 #include "hbinputprediction12keyhandler.h"
    33 
    33 
    34 class HbAction;
    34 class HbAction;
    35 class HbInputSpellQuery;
       
    36 
    35 
    37 class HbInputPrediction12KeyHandlerPrivate: public HbInputPredictionHandlerPrivate
    36 class HbInputPrediction12KeyHandlerPrivate: public HbInputPredictionHandlerPrivate
    38 {
    37 {
    39     Q_DECLARE_PUBLIC(HbInputPrediction12KeyHandler)
    38     Q_DECLARE_PUBLIC(HbInputPrediction12KeyHandler)
    40 
    39 
    50     int mLastKey;
    49     int mLastKey;
    51     bool mButtonDown;
    50     bool mButtonDown;
    52     QChar mCurrentChar;
    51     QChar mCurrentChar;
    53     bool mLongPressHappened;
    52     bool mLongPressHappened;
    54     bool mShiftKeyDoubleTap;
    53     bool mShiftKeyDoubleTap;
    55     HbInputSpellQuery *mInputSpellQuery;
       
    56 };
    54 };
    57 
    55 
    58 class HbInputSpellQuery : public HbInputDialog
       
    59 {
       
    60 Q_OBJECT
       
    61 public:
       
    62     HbInputSpellQuery(HbInputPrediction12KeyHandlerPrivate *owner);
       
    63     void getPositionAndSize(QPointF & pos,QSizeF & size, QRectF &geom);
       
    64     void launch(QString editorText);
       
    65 public slots:
       
    66     void dialogClosed(HbAction* action);    
       
    67 private:
       
    68     HbInputState mSavedState;
       
    69     bool mDidHandleFinish;
       
    70     QPointer<QObject> mSavedFocusObject;
       
    71     HbInputPrediction12KeyHandlerPrivate* mOwner;
       
    72     QString mSavedEditorText;
       
    73     HbAction *mPrimaryAction;
       
    74 };
       
    75 #endif //HB_INPUT_PREDICTION_12KEY_HANDLER_PRIVATE
    56 #endif //HB_INPUT_PREDICTION_12KEY_HANDLER_PRIVATE