src/hbcore/inputfw/hbinputkeymap.h
changeset 6 c3690ec91ef8
parent 0 16d8024aca5e
equal deleted inserted replaced
5:627c4a0fd0e7 6:c3690ec91ef8
    45     QChar keycode;
    45     QChar keycode;
    46     QStringList chars;
    46     QStringList chars;
    47     const QString characters(const HbModifiers modifiers) const;
    47     const QString characters(const HbModifiers modifiers) const;
    48 };
    48 };
    49 
    49 
    50 struct HbKeyboardMap
    50 struct HbKeyboardMap {
    51 {
       
    52 public:
    51 public:
    53     HbKeyboardType type;
    52     HbKeyboardType type;
    54     QList<HbMappedKey*> keys;
    53     QList<HbMappedKey *> keys;
    55 };
    54 };
    56 
    55 
    57 class HB_CORE_EXPORT HbKeymap
    56 class HB_CORE_EXPORT HbKeymap
    58 {
    57 {
    59 public:
    58 public:
    65     const HbKeyboardMap *keyboard(HbKeyboardType keyboard) const;
    64     const HbKeyboardMap *keyboard(HbKeyboardType keyboard) const;
    66     HbInputLanguage language() const;
    65     HbInputLanguage language() const;
    67     virtual const HbMappedKey *keyForIndex(HbKeyboardType keyboard, int keyIndex) const;
    66     virtual const HbMappedKey *keyForIndex(HbKeyboardType keyboard, int keyIndex) const;
    68     virtual const HbMappedKey *keyForKeycode(HbKeyboardType keyboard, QChar keyCode) const;
    67     virtual const HbMappedKey *keyForKeycode(HbKeyboardType keyboard, QChar keyCode) const;
    69     virtual const HbMappedKey *keyForCharacter(HbKeyboardType keyboard, QChar character) const;
    68     virtual const HbMappedKey *keyForCharacter(HbKeyboardType keyboard, QChar character) const;
    70     static bool isDeadKey (int key);
    69     static bool isDeadKey(int key);
    71     static void combineCharacter(QChar deadKey, QChar key, QChar &firstKey, QChar &secondKey);
    70     static void combineCharacter(QChar deadKey, QChar key, QChar &firstKey, QChar &secondKey);
    72 
    71 
    73 private:
    72 private:
    74     HbKeymapPrivate* mPrivate;
    73     HbKeymapPrivate *mPrivate;
    75 };
    74 };
    76 
    75 
    77 #endif // HB_INPUT_KEYMAP_DATA_H
    76 #endif // HB_INPUT_KEYMAP_DATA_H
    78 
    77 
    79 // End of file
    78 // End of file