70cdd7d4f5
Change-Id: I5fbc2a1c0e735d6edeb23672017bb64d1b3f4390 Reviewed-on: https://review.haiku-os.org/c/haiku/+/1872 Reviewed-by: Adrien Destugues <pulkomandy@gmail.com>
59 lines
1.1 KiB
C++
59 lines
1.1 KiB
C++
/*
|
|
* Copyright 2003-2019, 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 BLanguage;
|
|
class BMessage;
|
|
|
|
#ifndef U_ICU_NAMESPACE
|
|
#define U_ICU_NAMESPACE icu
|
|
#endif
|
|
namespace U_ICU_NAMESPACE {
|
|
class DateFormat;
|
|
class Locale;
|
|
}
|
|
|
|
|
|
class BCountry {
|
|
public:
|
|
BCountry(const char* countryCode = NULL);
|
|
BCountry(const BCountry& other);
|
|
BCountry& operator=(const BCountry& other);
|
|
~BCountry();
|
|
|
|
status_t SetTo(const char* countryCode);
|
|
status_t InitCheck() const;
|
|
|
|
status_t GetNativeName(BString& name) const;
|
|
status_t GetName(BString& name,
|
|
const BLanguage* displayLanguage = NULL
|
|
) const;
|
|
|
|
const char* Code() const;
|
|
// ISO-3166
|
|
status_t GetIcon(BBitmap* result) const;
|
|
|
|
status_t GetAvailableTimeZones(
|
|
BMessage* timeZones) const;
|
|
|
|
class Private;
|
|
private:
|
|
friend class Private;
|
|
|
|
U_ICU_NAMESPACE::Locale* fICULocale;
|
|
};
|
|
|
|
|
|
#endif /* _COUNTRY_H_ */
|