haiku/headers/os/locale/TimeZone.h
Oliver Tappe 45f2f22b52 * update (not-so-)optional package ICU to 4.8.1, which contains interesting stuff
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
2011-08-18 22:13:06 +00:00

65 lines
1.4 KiB
C++

/*
* Copyright 2010-2011, Haiku, Inc. All rights reserved.
* Distributed under the terms of the MIT License.
*/
#ifndef _TIME_ZONE_H
#define _TIME_ZONE_H
#include <String.h>
namespace icu {
class Locale;
class TimeZone;
}
class BLanguage;
class BTimeZone {
public:
BTimeZone(const char* zoneID = NULL,
const BLanguage* language = NULL);
BTimeZone(const BTimeZone& other);
~BTimeZone();
BTimeZone& operator=(const BTimeZone& source);
const BString& ID() const;
const BString& Name() const;
const BString& DaylightSavingName() const;
const BString& ShortName() const;
const BString& ShortDaylightSavingName() const;
int OffsetFromGMT() const;
bool SupportsDaylightSaving() const;
status_t InitCheck() const;
status_t SetTo(const char* zoneID,
const BLanguage* language = NULL);
status_t SetLanguage(const BLanguage* language);
static const char* kNameOfGmtZone;
class Private;
private:
friend class Private;
icu::TimeZone* fICUTimeZone;
icu::Locale* fICULocale;
status_t fInitStatus;
mutable uint32 fInitializedFields;
mutable BString fZoneID;
mutable BString fName;
mutable BString fDaylightSavingName;
mutable BString fShortName;
mutable BString fShortDaylightSavingName;
mutable int fOffsetFromGMT;
mutable bool fSupportsDaylightSaving;
};
#endif // _TIME_ZONE_H