23 #include "tdelibs_export.h"
24 #include <tqdatetime.h>
25 #include <tqnamespace.h>
28 #include <ksharedptr.h>
31 class KTimezoneDetailsPrivate;
32 class KTimezonePrivate;
33 class KTimezonesPrivate;
62 virtual TQString db();
69 virtual bool parse(
const TQString &zone,
KTimezoneDetails &dataReceiver)
const;
98 static bool isValidLatitude(
float latitude);
104 static bool isValidLongitude(
float longitude);
118 const TQString &countryCode = TQString(),
float latitude = UNKNOWN,
float longitude = UNKNOWN,
119 const TQString &comment = TQString());
127 TQString name()
const;
134 TQString countryCode()
const;
141 float latitude()
const;
148 float longitude()
const;
159 int offset(TQt::TimeSpec basisSpec = TQt::UTC)
const;
167 int offset(
const TQDateTime &dateTime)
const;
175 TQDateTime convert(
const KTimezone *newZone,
const TQDateTime &dateTime)
const;
182 TQString comment()
const;
196 TQString m_countryCode;
234 virtual void parseEnded();
239 virtual void parseStarted();
244 virtual void gotHeader(
245 unsigned ttIsGmtCnt,
unsigned ttIsStdCnt,
unsigned leapCnt,
246 unsigned timeCnt,
unsigned typeCnt,
unsigned charCnt);
251 virtual void gotTransitionTime(
int index,
unsigned transitionTime);
256 virtual void gotLocalTimeIndex(
int index,
unsigned localTimeIndex);
261 virtual void gotLocalTime(
int index,
int gmtOff,
bool isDst,
unsigned abbrIndex);
268 virtual void gotAbbreviation(
int index,
const TQString &abbr);
273 virtual void gotLeapAdjustment(
int index,
unsigned leapTime,
unsigned leapSeconds);
278 virtual void gotIsStandard(
int index,
bool isStandard);
283 virtual void gotIsUTC(
int index,
bool isUTC);
286 KTimezoneDetailsPrivate *d;
324 const KTimezone *zone(
const TQString &name);
326 typedef TQMap<TQString, KTimezone *> ZoneMap;
332 const ZoneMap allZones();
343 float convertCoordinate(
const TQString &coordinate);
345 TQString m_zoneinfoDir;
348 KTimezonesPrivate *d;
The KTimezoneDetails class contains extended functions related to a timezone.
The KTimezoneSource class contains information source-dependent functions related to a timezone.
The KTimezone class contains core functions related to a timezone.
static const float UNKNOWN
A representation for unknown locations; this is a float that does not represent a real latitude or lo...
The KTimezones class models a timezone database.
Reference counting for shared objects.
TDEShared & operator=(const TDEShared &)
Overloaded assignment operator.