mirror of
https://review.haiku-os.org/haiku
synced 2025-01-22 06:16:03 +01:00
c91aa9f4e6
since we'd like to be able to get the timezones of the global (i.e. empty) country, too. git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@38380 a95241bf-73f2-0310-859d-f6bbb57e9c96
56 lines
944 B
C++
56 lines
944 B
C++
/*
|
|
* Copyright 2003-2010, Haiku, Inc.
|
|
* Distributed under the terms of the MIT Licence.
|
|
*/
|
|
#ifndef _COUNTRY_H_
|
|
#define _COUNTRY_H_
|
|
|
|
|
|
#include <List.h>
|
|
#include <LocaleStrings.h>
|
|
#include <String.h>
|
|
#include <SupportDefs.h>
|
|
|
|
|
|
class BBitmap;
|
|
class BMessage;
|
|
|
|
namespace icu_44 {
|
|
class DateFormat;
|
|
class Locale;
|
|
}
|
|
|
|
|
|
enum {
|
|
B_METRIC = 0,
|
|
B_US
|
|
};
|
|
|
|
|
|
class BCountry {
|
|
public:
|
|
BCountry(const char* languageCode,
|
|
const char* countryCode);
|
|
BCountry(const char* languageAndCountryCode
|
|
= "en_US");
|
|
BCountry(const BCountry& other);
|
|
BCountry& operator=(const BCountry& other);
|
|
~BCountry();
|
|
|
|
bool GetName(BString& name) const;
|
|
const char* Code() const;
|
|
status_t GetIcon(BBitmap* result) const;
|
|
|
|
const char* GetLocalizedString(uint32 id) const;
|
|
|
|
// measurements
|
|
|
|
int8 Measurement() const;
|
|
|
|
private:
|
|
icu_44::Locale* fICULocale;
|
|
};
|
|
|
|
|
|
#endif /* _COUNTRY_H_ */
|