src/hbcore/inputfw/hbinputlanguagedatabase.h
changeset 6 c3690ec91ef8
parent 2 06ff229162e9
equal deleted inserted replaced
5:627c4a0fd0e7 6:c3690ec91ef8
    20 **
    20 **
    21 ** If you have questions regarding the use of this file, please contact
    21 ** If you have questions regarding the use of this file, please contact
    22 ** Nokia at developer.feedback@nokia.com.
    22 ** Nokia at developer.feedback@nokia.com.
    23 **
    23 **
    24 ****************************************************************************/
    24 ****************************************************************************/
    25 #ifndef HB_LANGUAGE_DATABASE_H
    25 #ifndef HB_INPUT_LANGUAGE_DATABASE_H
    26 #define HB_LANGUAGE_DATABASE_H
    26 #define HB_INPUT_LANGUAGE_DATABASE_H
    27 
    27 
    28 #include <QObject>
    28 #include <QObject>
    29 #include <QList>
    29 #include <QList>
    30 
    30 
    31 #include <hbinputdef.h>
    31 #include <hbinputdef.h>
    32 
    32 
    33 class HB_CORE_EXPORT HbLanguageDatabase
    33 class HB_CORE_EXPORT HbLanguageDatabase
    34 {
    34 {
    35 public:
    35 public:
    36     virtual ~HbLanguageDatabase()
    36     virtual ~HbLanguageDatabase() {
    37     {
       
    38     }
    37     }
    39 
    38 
    40     virtual int hostId() const = 0;
    39     virtual int hostId() const = 0;
    41     virtual int languageCode() const = 0;
    40     virtual int languageCode() const = 0;
    42     virtual char* languageData(void* aNativeParams = 0) const = 0;
    41     virtual char *languageData(void *aNativeParams = 0) const = 0;
    43     virtual int nativeId() const = 0;
    42     virtual int nativeId() const = 0;
    44 };
    43 };
    45 
    44 
    46 class HB_CORE_EXPORT HbLanguageDatabaseInterface : public QObject
    45 class HB_CORE_EXPORT HbLanguageDatabaseInterface : public QObject
    47 {
    46 {
    48     Q_OBJECT
    47     Q_OBJECT
    49 
    48 
    50 public:
    49 public:
    51     virtual ~HbLanguageDatabaseInterface()
    50     virtual ~HbLanguageDatabaseInterface() {
    52     {
       
    53     }
    51     }
    54     virtual QList<int> listLanguages() = 0;
    52     virtual QList<int> listLanguages() = 0;
    55     virtual HbLanguageDatabase* languageDatabase(int aLanguage) = 0;
    53     virtual HbLanguageDatabase *languageDatabase(int aLanguage) = 0;
    56 };
    54 };
    57 
    55 
    58 #endif // HB_LANGUAGE_DATABASE_H
    56 #endif // HB_INPUT_LANGUAGE_DATABASE_H
    59 
    57 
    60 // End of file
    58 // End of file