* Bcountry : private methods start with underscore. The timezone list isnow actually a list of BTimeZone objects, that holdsall the needed info, not only the code. Also tweak the listing code to
remove duplicatesfromthe list generated by ICU. * BTimeZone : remove Code, rename Name to GetName. The class is likely to change again for further optimization. git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@37719 a95241bf-73f2-0310-859d-f6bbb57e9c96
This commit is contained in:
@@ -2,10 +2,11 @@
|
||||
#define _COUNTRY_H_
|
||||
|
||||
|
||||
#include <SupportDefs.h>
|
||||
#include <List.h>
|
||||
#include <LocaleStrings.h>
|
||||
#include <Locker.h>
|
||||
#include <String.h>
|
||||
#include <SupportDefs.h>
|
||||
|
||||
|
||||
class BBitmap;
|
||||
@@ -112,13 +113,13 @@ class BCountry {
|
||||
virtual int32 MonFracDigits() const;
|
||||
|
||||
// timezones
|
||||
status_t GetTimeZones(BMessage* timezones);
|
||||
int GetTimeZones(BList& timezones);
|
||||
|
||||
private:
|
||||
icu_44::DateFormat* LockDateFormatter(bool longFormat);
|
||||
icu_44::DateFormat* LockTimeFormatter(bool longFormat);
|
||||
void UnlockDateFormatter(bool longFormat);
|
||||
void UnlockTimeFormatter(bool longFormat);
|
||||
icu_44::DateFormat* _LockDateFormatter(bool longFormat);
|
||||
icu_44::DateFormat* _LockTimeFormatter(bool longFormat);
|
||||
void _UnlockDateFormatter(bool longFormat);
|
||||
void _UnlockTimeFormatter(bool longFormat);
|
||||
|
||||
icu_44::DateFormat* fICULongDateFormatter;
|
||||
icu_44::DateFormat* fICUShortDateFormatter;
|
||||
|
||||
@@ -19,8 +19,7 @@ class BTimeZone {
|
||||
BTimeZone(const char* zoneCode);
|
||||
~BTimeZone();
|
||||
|
||||
void Name(BString& name);
|
||||
void Code(BString& code);
|
||||
void GetName(BString& name);
|
||||
int OffsetFromGMT();
|
||||
|
||||
private:
|
||||
|
||||
Reference in New Issue
Block a user