equal
deleted
inserted
replaced
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 */ |