* 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:
Adrien Destugues
2010-07-23 16:25:43 +00:00
parent 2774e142e1
commit 282582c005
4 changed files with 75 additions and 75 deletions
+7 -6
View File
@@ -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;
+1 -2
View File
@@ -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: