KDECore
#include <ktimezone.h>
Public Member Functions | |
KTimeZoneBackend () | |
KTimeZoneBackend (const QString &name) | |
KTimeZoneBackend (const KTimeZoneBackend &other) | |
virtual | ~KTimeZoneBackend () |
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 |
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 |
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.
Base backend class for KTimeZone classes
- See also
- KTimeZone
Definition at line 1120 of file ktimezone.h.
Constructor & Destructor Documentation
KTimeZoneBackend::KTimeZoneBackend | ( | ) |
Implements KTimeZone::KTimeZone().
Definition at line 417 of file ktimezone.cpp.
|
explicit |
Implements KTimeZone::KTimeZone(const QString&).
Definition at line 423 of file ktimezone.cpp.
KTimeZoneBackend::KTimeZoneBackend | ( | const KTimeZoneBackend & | other | ) |
Definition at line 432 of file ktimezone.cpp.
|
virtual |
Definition at line 438 of file ktimezone.cpp.
|
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 427 of file ktimezone.cpp.
Member Function Documentation
|
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 462 of file ktimezone.cpp.
Implements KTimeZone::hasTransitions().
- Parameters
-
caller calling KTimeZone object
Reimplemented in KTzfileTimeZoneBackend.
Definition at line 582 of file ktimezone.cpp.
Implements KTimeZone::isDst().
- Parameters
-
caller calling KTimeZone object
Reimplemented in KSystemTimeZoneBackend.
Definition at line 577 of file ktimezone.cpp.
|
virtual |
Implements KTimeZone::isDstAtUtc().
- Parameters
-
caller calling KTimeZone object
Reimplemented in KSystemTimeZoneBackend.
Definition at line 567 of file ktimezone.cpp.
|
virtual |
Implements KTimeZone::offset().
- Parameters
-
caller calling KTimeZone object
Reimplemented in KSystemTimeZoneBackend.
Definition at line 562 of file ktimezone.cpp.
|
virtual |
Implements KTimeZone::offsetAtUtc().
- Parameters
-
caller calling KTimeZone object
Reimplemented in KSystemTimeZoneBackend.
Definition at line 530 of file ktimezone.cpp.
|
virtual |
Implements KTimeZone::offsetAtZoneTime().
- Parameters
-
caller calling KTimeZone object
Reimplemented in KSystemTimeZoneBackend.
Definition at line 467 of file ktimezone.cpp.
KTimeZoneBackend & KTimeZoneBackend::operator= | ( | const KTimeZoneBackend & | other | ) |
Definition at line 445 of file ktimezone.cpp.
|
virtual |
Returns the class name of the data represented by this instance.
- Note
- Every inherited class must reimplement type().
This base class returns "KTimeZone".
- Returns
- the class name
Reimplemented in KSystemTimeZoneBackend, and KTzfileTimeZoneBackend.
Definition at line 457 of file ktimezone.cpp.
The documentation for this class was generated from the following files:
Documentation copyright © 1996-2014 The KDE developers.
Generated on Tue Oct 14 2014 22:47:11 by doxygen 1.8.7 written by Dimitri van Heesch, © 1997-2006
KDE's Doxygen guidelines are available online.