KDECore
ksystemtimezone.h
Go to the documentation of this file.
282class KDECORE_EXPORT KSystemTimeZone : public KTimeZone //krazy:exclude=dpointer (no d-pointer for KTimeZone derived classes)
321class KDECORE_EXPORT KSystemTimeZoneBackend : public KTimeZoneBackend //krazy:exclude=dpointer (non-const d-pointer for KTimeZoneBackend-derived classes)
364 virtual int offsetAtZoneTime(const KTimeZone *caller, const QDateTime &zoneDateTime, int *secondOffset) const;
virtual bool isDstAtUtc(const KTimeZone *caller, const QDateTime &utcDateTime) const
Implements KSystemTimeZone::isDstAtUtc().
Definition ksystemtimezone.cpp:668
virtual KTimeZoneBackend * clone() const
Creates a copy of this instance.
Definition ksystemtimezone.cpp:554
virtual int offsetAtUtc(const KTimeZone *caller, const QDateTime &utcDateTime) const
Implements KSystemTimeZone::offsetAtUtc().
Definition ksystemtimezone.cpp:633
virtual int offsetAtZoneTime(const KTimeZone *caller, const QDateTime &zoneDateTime, int *secondOffset) const
Implements KSystemTimeZone::offsetAtZoneTime().
Definition ksystemtimezone.cpp:564
virtual bool isDst(const KTimeZone *caller, time_t t) const
Implements KSystemTimeZone::isDst().
Definition ksystemtimezone.cpp:673
virtual int offset(const KTimeZone *caller, time_t t) const
Implements KSystemTimeZone::offset().
Definition ksystemtimezone.cpp:638
virtual QByteArray type() const
Returns the class name of the data represented by this instance.
Definition ksystemtimezone.cpp:559
KSystemTimeZoneBackend(KSystemTimeZoneSource *source, const QString &name, const QString &countryCode, float latitude, float longitude, const QString &comment)
Implements KSystemTimeZone::KSystemTimeZone().
Definition ksystemtimezone.cpp:546
KSystemTimeZoneData & operator=(const KSystemTimeZoneData &)
Assignment; no special ownership assumed.
Definition ksystemtimezone.cpp:835
virtual KTimeZoneData * clone() const
Creates a new copy of this object.
Definition ksystemtimezone.cpp:842
virtual QList< QByteArray > abbreviations() const
Returns the complete list of time zone abbreviations.
Definition ksystemtimezone.cpp:847
virtual QList< int > utcOffsets() const
Returns the complete list of UTC offsets for the time zone.
Definition ksystemtimezone.cpp:888
virtual ~KSystemTimeZoneData()
Definition ksystemtimezone.cpp:830
virtual QByteArray abbreviation(const QDateTime &utcDateTime) const
Returns the time zone abbreviation current at a specified time.
Definition ksystemtimezone.cpp:852
friend class KSystemTimeZoneSource
Definition ksystemtimezone.h:494
A class to read and parse system time zone data.
Definition ksystemtimezone.h:442
static void startParseBlock()
Use in conjunction with endParseBlock() to improve efficiency when calling parse() for a group of KSy...
Definition ksystemtimezone.cpp:762
KSystemTimeZone(KSystemTimeZoneSource *source, const QString &name, const QString &countryCode=QString(), float latitude=UNKNOWN, float longitude=UNKNOWN, const QString &comment=QString())
Creates a time zone.
Definition ksystemtimezone.cpp:694
static KTimeZone readZone(const QString &name)
Returns the time zone with the given name, containing the full time zone definition read directly fro...
Definition ksystemtimezone.cpp:245
static KTimeZone local()
Returns the current local system time zone.
Definition ksystemtimezone.cpp:195
static void setLocalZone(const KTimeZone &tz)
Set or clear the simulated local system time zone.
Definition ksystemtimezone.cpp:211
friend class KSystemTimeZonesPrivate
Definition ksystemtimezone.h:257
static QString zoneinfoDir()
Returns the location of the system time zone zoneinfo database.
Definition ksystemtimezone.cpp:228
static bool isSimulated()
Check whether there is a simulated local system time zone.
Definition ksystemtimezone.cpp:219
static KTimeZone realLocalZone()
Return the real (not simulated) local system time zone.
Definition ksystemtimezone.cpp:205
static const KTimeZones::ZoneMap zones()
Returns all the time zones defined in this collection.
Definition ksystemtimezone.cpp:250
static KTimeZone zone(const QString &name)
Returns the time zone with the given name.
Definition ksystemtimezone.cpp:255
static bool isTimeZoneDaemonAvailable()
Return whether the KDE time zone daemon, ktimezoned, appears to be available and working.
Definition ksystemtimezone.cpp:234
static KTimeZones * timeZones()
Returns the unique KTimeZones instance containing the system time zones collection.
Definition ksystemtimezone.cpp:240
Base class for the parsed data returned by a KTimeZoneSource class.
Definition ktimezone.h:1303
KTimeZoneSource * source() const
Returns the source reader/parser for the time zone's source database.
Definition ktimezone.cpp:749
QString countryCode() const
Returns the two-letter country code of the time zone.
Definition ktimezone.cpp:649
static const float UNKNOWN
A representation for unknown locations; this is a float that does not represent a real latitude or lo...
Definition ktimezone.h:1083
The KTimeZones class represents a time zone database which consists of a collection of individual tim...
Definition ktimezone.h:309
QMap< QString, KTimeZone > ZoneMap
Map of KTimeZone instances, indexed by time zone name.
Definition ktimezone.h:323
Definition kaboutdata.h:33
Time zone functions.
This file is part of the KDE documentation.
Documentation copyright © 1996-2025 The KDE developers.
Generated on Tue Mar 25 2025 00:00:00 by doxygen 1.14.0 written by Dimitri van Heesch, © 1997-2006
Documentation copyright © 1996-2025 The KDE developers.
Generated on Tue Mar 25 2025 00:00:00 by doxygen 1.14.0 written by Dimitri van Heesch, © 1997-2006
KDE's Doxygen guidelines are available online.