KDECore
KTimeZoneBackend Class Reference
[Time zone classes]
Base backend class for KTimeZone classes.
More...
#include <ktimezone.h>

Public Member Functions | |
virtual KTimeZoneBackend * | clone () const |
virtual bool | hasTransitions (const KTimeZone *caller) const |
virtual bool | isDst (const KTimeZone *caller, time_t t) const |
virtual bool | isDstAtUtc (const KTimeZone *caller, const QDateTime &utcDateTime) const |
KTimeZoneBackend (const KTimeZoneBackend &other) | |
KTimeZoneBackend (const QString &name) | |
KTimeZoneBackend () | |
virtual int | offset (const KTimeZone *caller, time_t t) const |
virtual int | offsetAtUtc (const KTimeZone *caller, const QDateTime &utcDateTime) const |
virtual int | offsetAtZoneTime (const KTimeZone *caller, const QDateTime &zoneDateTime, int *secondOffset) const |
KTimeZoneBackend & | operator= (const KTimeZoneBackend &other) |
virtual QByteArray | type () const |
virtual | ~KTimeZoneBackend () |
Protected Member Functions | |
KTimeZoneBackend (KTimeZoneSource *source, const QString &name, const QString &countryCode=QString(), float latitude=KTimeZone::UNKNOWN, float longitude=KTimeZone::UNKNOWN, const QString &comment=QString()) |
Detailed Description
Base backend class for KTimeZone classes.KTimeZone and each class inherited from it must have a corresponding backend class to implement its constructors and its virtual methods, and to provide a virtual clone() method. This allows KTimeZone virtual methods to work together with reference counting of private data.
- Note:
- Classes derived from KTimeZoneBackend should not normally implement their own copy constructor or assignment operator, and must have a non-const d-pointer.
- See also:
- KTimeZone
Definition at line 1115 of file ktimezone.h.
Constructor & Destructor Documentation
KTimeZoneBackend::KTimeZoneBackend | ( | ) |
KTimeZoneBackend::KTimeZoneBackend | ( | const QString & | name | ) | [explicit] |
KTimeZoneBackend::KTimeZoneBackend | ( | const KTimeZoneBackend & | other | ) |
Definition at line 417 of file ktimezone.cpp.
KTimeZoneBackend::~KTimeZoneBackend | ( | ) | [virtual] |
Definition at line 423 of file ktimezone.cpp.
KTimeZoneBackend::KTimeZoneBackend | ( | KTimeZoneSource * | source, | |
const QString & | name, | |||
const QString & | countryCode = QString() , |
|||
float | latitude = KTimeZone::UNKNOWN , |
|||
float | longitude = KTimeZone::UNKNOWN , |
|||
const QString & | comment = QString() | |||
) | [protected] |
Constructs a time zone.
- Parameters:
-
source reader/parser for the database containing this time zone. This will be an instance of a class derived from KTimeZoneSource. name in system-dependent format. The name must be unique within any KTimeZones instance which contains this KTimeZone. countryCode ISO 3166 2-character country code, empty if unknown latitude in degrees (between -90 and +90), UNKNOWN if not known longitude in degrees (between -180 and +180), UNKNOWN if not known comment description of the time zone, if any
Definition at line 412 of file ktimezone.cpp.
Member Function Documentation
KTimeZoneBackend * KTimeZoneBackend::clone | ( | ) | const [virtual] |
Creates a copy of this instance.
- Note:
- Every inherited class must reimplement clone().
- Returns:
- new copy
Reimplemented in KSystemTimeZoneBackend, and KTzfileTimeZoneBackend.
Definition at line 447 of file ktimezone.cpp.
bool KTimeZoneBackend::hasTransitions | ( | const KTimeZone * | caller | ) | const [virtual] |
Implements KTimeZone::hasTransitions().
- Parameters:
-
caller calling KTimeZone object
Reimplemented in KTzfileTimeZoneBackend.
Definition at line 520 of file ktimezone.cpp.
bool KTimeZoneBackend::isDst | ( | const KTimeZone * | caller, | |
time_t | t | |||
) | const [virtual] |
Implements KTimeZone::isDst().
- Parameters:
-
caller calling KTimeZone object
Reimplemented in KSystemTimeZoneBackend.
Definition at line 515 of file ktimezone.cpp.
bool KTimeZoneBackend::isDstAtUtc | ( | const KTimeZone * | caller, | |
const QDateTime & | utcDateTime | |||
) | const [virtual] |
Implements KTimeZone::isDstAtUtc().
- Parameters:
-
caller calling KTimeZone object
Reimplemented in KSystemTimeZoneBackend.
Definition at line 505 of file ktimezone.cpp.
int KTimeZoneBackend::offset | ( | const KTimeZone * | caller, | |
time_t | t | |||
) | const [virtual] |
Implements KTimeZone::offset().
- Parameters:
-
caller calling KTimeZone object
Reimplemented in KSystemTimeZoneBackend.
Definition at line 500 of file ktimezone.cpp.
int KTimeZoneBackend::offsetAtUtc | ( | const KTimeZone * | caller, | |
const QDateTime & | utcDateTime | |||
) | const [virtual] |
Implements KTimeZone::offsetAtUtc().
- Parameters:
-
caller calling KTimeZone object
Reimplemented in KSystemTimeZoneBackend.
Definition at line 490 of file ktimezone.cpp.
int KTimeZoneBackend::offsetAtZoneTime | ( | const KTimeZone * | caller, | |
const QDateTime & | zoneDateTime, | |||
int * | secondOffset | |||
) | const [virtual] |
Implements KTimeZone::offsetAtZoneTime().
- Parameters:
-
caller calling KTimeZone object
Reimplemented in KSystemTimeZoneBackend.
Definition at line 452 of file ktimezone.cpp.
KTimeZoneBackend & KTimeZoneBackend::operator= | ( | const KTimeZoneBackend & | other | ) |
Definition at line 430 of file ktimezone.cpp.
QByteArray KTimeZoneBackend::type | ( | ) | const [virtual] |
Returns the class name of the data represented by this instance.
- Note:
- Every inherited class must reimplement type().
- Returns:
- the class name
Reimplemented in KSystemTimeZoneBackend, and KTzfileTimeZoneBackend.
Definition at line 442 of file ktimezone.cpp.
The documentation for this class was generated from the following files: