45f2f22b52
for message formatting * adjust LocaleKit to use namespace 'icu', as ICU has been configured to no longer use a version specific namespace * adjust LocaleKit to general API changes in ICU 4.8 Note: all software using ICU (like WebPositive) needs to be rebuilt! Note: the ICU package for PPC needs to be updated before it can be used! git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@42638 a95241bf-73f2-0310-859d-f6bbb57e9c96
53 lines
960 B
C++
53 lines
960 B
C++
/*
|
|
* Copyright 2003-2011, 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;
|
|
|
|
namespace icu {
|
|
class DateFormat;
|
|
class Locale;
|
|
}
|
|
|
|
|
|
class BCountry {
|
|
public:
|
|
BCountry(const char* countryCode = NULL);
|
|
BCountry(const BCountry& other);
|
|
BCountry& operator=(const BCountry& other);
|
|
~BCountry();
|
|
|
|
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;
|
|
|
|
icu::Locale* fICULocale;
|
|
};
|
|
|
|
|
|
#endif /* _COUNTRY_H_ */
|