2010-08-01 20:28:19 +00:00
|
|
|
/*
|
2011-08-18 22:13:06 +00:00
|
|
|
* Copyright 2003-2011, Haiku, Inc.
|
2010-08-01 20:28:19 +00:00
|
|
|
* Distributed under the terms of the MIT Licence.
|
|
|
|
*/
|
2009-05-01 19:23:59 +00:00
|
|
|
#ifndef _COUNTRY_H_
|
|
|
|
#define _COUNTRY_H_
|
|
|
|
|
|
|
|
|
2010-07-23 16:25:43 +00:00
|
|
|
#include <List.h>
|
2009-05-01 19:23:59 +00:00
|
|
|
#include <LocaleStrings.h>
|
|
|
|
#include <String.h>
|
2010-07-23 16:25:43 +00:00
|
|
|
#include <SupportDefs.h>
|
2009-05-01 19:23:59 +00:00
|
|
|
|
2010-04-15 15:57:30 +00:00
|
|
|
|
|
|
|
class BBitmap;
|
2010-10-19 21:36:44 +00:00
|
|
|
class BLanguage;
|
2010-07-22 12:47:00 +00:00
|
|
|
class BMessage;
|
2010-04-15 15:57:30 +00:00
|
|
|
|
2015-05-10 21:13:59 +02:00
|
|
|
#ifndef U_ICU_NAMESPACE
|
|
|
|
#define U_ICU_NAMESPACE icu
|
|
|
|
#endif
|
|
|
|
namespace U_ICU_NAMESPACE {
|
2009-09-18 22:23:34 +00:00
|
|
|
class DateFormat;
|
2009-09-20 22:16:30 +00:00
|
|
|
class Locale;
|
2009-09-18 22:23:34 +00:00
|
|
|
}
|
|
|
|
|
2010-07-13 19:04:40 +00:00
|
|
|
|
2009-05-01 21:56:16 +00:00
|
|
|
class BCountry {
|
2010-08-01 20:28:19 +00:00
|
|
|
public:
|
2010-10-24 12:57:55 +00:00
|
|
|
BCountry(const char* countryCode = NULL);
|
2010-08-01 20:28:19 +00:00
|
|
|
BCountry(const BCountry& other);
|
|
|
|
BCountry& operator=(const BCountry& other);
|
|
|
|
~BCountry();
|
|
|
|
|
2010-10-19 21:36:44 +00:00
|
|
|
status_t GetNativeName(BString& name) const;
|
|
|
|
status_t GetName(BString& name,
|
|
|
|
const BLanguage* displayLanguage = NULL
|
|
|
|
) const;
|
|
|
|
|
2010-08-01 20:28:19 +00:00
|
|
|
const char* Code() const;
|
2010-10-24 12:57:55 +00:00
|
|
|
// ISO-3166
|
2010-08-01 20:28:19 +00:00
|
|
|
status_t GetIcon(BBitmap* result) const;
|
|
|
|
|
2010-08-28 09:23:26 +00:00
|
|
|
status_t GetAvailableTimeZones(
|
|
|
|
BMessage* timeZones) const;
|
2010-08-01 20:28:19 +00:00
|
|
|
|
2010-10-19 21:36:44 +00:00
|
|
|
class Private;
|
2010-08-01 20:28:19 +00:00
|
|
|
private:
|
2010-10-19 21:36:44 +00:00
|
|
|
friend class Private;
|
|
|
|
|
2015-05-10 21:13:59 +02:00
|
|
|
U_ICU_NAMESPACE::Locale* fICULocale;
|
2009-05-01 19:23:59 +00:00
|
|
|
};
|
|
|
|
|
2010-08-01 20:28:19 +00:00
|
|
|
|
2009-05-01 19:23:59 +00:00
|
|
|
#endif /* _COUNTRY_H_ */
|