src/hbcore/inputfw/hbinputpredictionengine.h
changeset 7 923ff622b8b9
parent 6 c3690ec91ef8
equal deleted inserted replaced
6:c3690ec91ef8 7:923ff622b8b9
   130 
   130 
   131 
   131 
   132 class HB_CORE_EXPORT HbPredictionEngineChinese : public HbPredictionEngine
   132 class HB_CORE_EXPORT HbPredictionEngineChinese : public HbPredictionEngine
   133 {
   133 {
   134 public:
   134 public:
       
   135     virtual void updateCnInputMode() = 0;
       
   136     // HbInputModeType deprecated, int are used currently
   135     virtual void setInputMode(HbInputModeType imMode) = 0;
   137     virtual void setInputMode(HbInputModeType imMode) = 0;
       
   138     virtual bool setCnInputMode(int imMode) = 0;
       
   139 
       
   140     // HbInputModeType deprecated, int are used currently
   136     virtual HbInputModeType inputMode() const = 0;
   141     virtual HbInputModeType inputMode() const = 0;
       
   142     virtual int cnInputMode() = 0;
   137 
   143 
   138     virtual bool spelling(int index, QString &out) = 0;
   144     virtual bool spelling(int index, QString &out) = 0;
   139     virtual bool selectSpelling(int index) = 0;
   145     virtual bool selectSpelling(int index) = 0;
   140     virtual QStringList allSpellings() = 0;
   146     virtual QStringList allSpellings() = 0;
   141     virtual int spellingCount() const = 0;
   147     virtual int spellingCount() const = 0;
   144     virtual bool selectCandidate(int index) = 0;
   150     virtual bool selectCandidate(int index) = 0;
   145     virtual bool selectCandidate(const QString &candidate) = 0;
   151     virtual bool selectCandidate(const QString &candidate) = 0;
   146     virtual bool candidateExist(int index) = 0;
   152     virtual bool candidateExist(int index) = 0;
   147 
   153 
   148     virtual bool pressKey(const int keycode, const Qt::KeyboardModifiers modifiers, const int textCase = 0) = 0;
   154     virtual bool pressKey(const int keycode, const Qt::KeyboardModifiers modifiers, const int textCase = 0) = 0;
       
   155 
       
   156     // HbInputModeType deprecated, int are used currently
   149     virtual bool isInputModeSupported(HbInputModeType imMode) = 0;
   157     virtual bool isInputModeSupported(HbInputModeType imMode) = 0;
       
   158     virtual bool isCnInputModeSupported(int imMode) = 0;
       
   159 
   150     // used for hwr engine
   160     // used for hwr engine
   151     virtual bool addStroke(const QList<QPointF>& traceData) = 0;
   161     virtual bool addStroke(const QList<QPointF>& traceData) = 0;
   152     virtual bool inlineSpelling(int idx, QString &out) = 0;
   162     virtual bool inlineSpelling(int idx, QString &out) = 0;
       
   163     virtual QByteArray itutZhuyinKeySequences() = 0;
       
   164     virtual int setInputAreaSize(QSize &size) = 0;
       
   165     virtual int setScreenSize(QSize &size) = 0;
   153 };
   166 };
   154 
   167 
   155 #endif // HB_INPUT_PREDICTION_ENGINE_H
   168 #endif // HB_INPUT_PREDICTION_ENGINE_H
   156 
   169 
   157 // End of file
   170 // End of file