src/hbcore/i18n/hblocaleutil.h
changeset 30 80e4d18b72f5
parent 6 c3690ec91ef8
equal deleted inserted replaced
28:b7da29130b0e 30:80e4d18b72f5
    27 #define HBLOCALEUTIL_H
    27 #define HBLOCALEUTIL_H
    28 
    28 
    29 #include <QHash>
    29 #include <QHash>
    30 #include <hbglobal.h>
    30 #include <hbglobal.h>
    31 
    31 
       
    32 struct HbLanguageRegionMapping
       
    33 {
       
    34     QString languageId;
       
    35     QString regionId;
       
    36     QString collationId;
       
    37 };
       
    38 
    32 class HB_CORE_EXPORT HbLocaleUtil
    39 class HB_CORE_EXPORT HbLocaleUtil
    33 {
    40 {
    34 public:
    41 public:
    35     static QString currentLanguage();
    42     static QString currentLanguage();
    36     static QStringList supportedLanguages();
    43     static QStringList supportedLanguages();
    46     static QStringList supportedCollations();
    53     static QStringList supportedCollations();
    47     static QString localisedCollationName( const QString &collation );
    54     static QString localisedCollationName( const QString &collation );
    48     static bool changeCollation( const QString &collation );
    55     static bool changeCollation( const QString &collation );
    49     
    56     
    50     static bool changeLocale( const QString &language );
    57     static bool changeLocale( const QString &language );
       
    58     
       
    59     static QList<HbLanguageRegionMapping> languageRegionMappings( bool onlySupported=true );
    51 };
    60 };
    52 
    61 
    53 #endif /* HBLOCALEUTIL_H */
    62 #endif /* HBLOCALEUTIL_H */