WIP Timezone support
* BCountry can list the timezones applicable for the country * BCountry can give its name (for example France), or LocaleName (french (France)). The second one will later be moved to BLocale class along with most of the locale settings ; but this needs a bit of refactoring. * The Locale preflet now uses LocaleName instead of Name, since it deals with locales. The time preflet will want only country names, without te language information, for example. git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@37690 a95241bf-73f2-0310-859d-f6bbb57e9c96
This commit is contained in:
@@ -8,6 +8,7 @@
|
||||
|
||||
|
||||
class BBitmap;
|
||||
class BMessage;
|
||||
|
||||
namespace icu_44 {
|
||||
class DateFormat;
|
||||
@@ -41,6 +42,7 @@ class BCountry {
|
||||
virtual ~BCountry();
|
||||
|
||||
virtual bool Name(BString&) const;
|
||||
bool LocaleName(BString&) const;
|
||||
const char* Code() const;
|
||||
status_t GetIcon(BBitmap* result);
|
||||
|
||||
@@ -106,6 +108,9 @@ class BCountry {
|
||||
bool MonGrouping(BString&) const;
|
||||
virtual int32 MonFracDigits() const;
|
||||
|
||||
// timezones
|
||||
status_t GetTimeZones(BMessage* timezones);
|
||||
|
||||
private:
|
||||
icu_44::DateFormat* fICULongDateFormatter;
|
||||
icu_44::DateFormat* fICUShortDateFormatter;
|
||||
|
||||
@@ -53,6 +53,8 @@ class BLocaleRoster {
|
||||
// the message contains one or more 'language'-string-fields
|
||||
// which contain the language-name(s)
|
||||
|
||||
status_t GetAvailableCountries(BMessage *) const;
|
||||
|
||||
status_t GetInstalledCatalogs(BMessage *, const char* sigPattern = NULL,
|
||||
const char* langPattern = NULL, int32 fingerprint = 0) const;
|
||||
// the message contains...
|
||||
|
||||
Reference in New Issue
Block a user