* BCountry : add error checking in case the system runs out of memory, cleanup function prototypes (we don't need virtual, this was a leftover of

OpenTracker days)


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@37697 a95241bf-73f2-0310-859d-f6bbb57e9c96
This commit is contained in:
Adrien Destugues
2010-07-22 16:36:36 +00:00
parent 3bdfd7f340
commit d4f3002de9
2 changed files with 189 additions and 133 deletions
+19 -17
View File
@@ -41,41 +41,43 @@ class BCountry {
BCountry& operator=(const BCountry& other);
virtual ~BCountry();
virtual bool Name(BString&) const;
bool Name(BString&) const;
bool LocaleName(BString&) const;
const char* Code() const;
status_t GetIcon(BBitmap* result);
const char* GetString(uint32 id) const;
// date & time
// Date
virtual void FormatDate(char* string, size_t maxSize, time_t time,
status_t FormatDate(char* string, size_t maxSize, time_t time,
bool longFormat);
virtual void FormatDate(BString* string, time_t time,
status_t FormatDate(BString* string, time_t time,
bool longFormat);
status_t FormatDate(BString* string, int*& fieldPositions,
status_t FormatDate(BString* string, int*& fieldPositions,
int& fieldCount, time_t time, bool longFormat);
virtual void FormatTime(char* string, size_t maxSize, time_t time,
status_t DateFields(BDateElement*& fields, int& fieldCount,
bool longFormat);
virtual void FormatTime(BString* string, time_t time,
status_t DateFormat(BString&, bool longFormat);
status_t SetDateFormat(const char* formatString,
bool longFormat = true);
int StartOfWeek();
// Time
status_t FormatTime(char* string, size_t maxSize, time_t time,
bool longFormat);
status_t FormatTime(BString* string, time_t time,
bool longFormat);
status_t FormatTime(BString* string, int*& fieldPositions,
int& fieldCount, time_t time, bool longFormat);
status_t TimeFields(BDateElement*& fields, int& fieldCount,
bool longFormat);
status_t DateFields(BDateElement*& fields, int& fieldCount,
bool longFormat);
bool DateFormat(BString&, bool longFormat);
void SetDateFormat(const char* formatString,
status_t SetTimeFormat(const char* formatString,
bool longFormat = true);
void SetTimeFormat(const char* formatString,
bool longFormat = true);
bool TimeFormat(BString&, bool longFormat);
int StartOfWeek();
status_t TimeFormat(BString&, bool longFormat);
// numbers