KDECore
KSystemTimeZoneSource Class Reference
[Time zone classes]
A class to read and parse system time zone data.
More...
#include <ksystemtimezone.h>

Public Member Functions | |
KSystemTimeZoneSource () | |
virtual KTimeZoneData * | parse (const KTimeZone &zone) const |
virtual | ~KSystemTimeZoneSource () |
Static Public Member Functions | |
static void | endParseBlock () |
static void | startParseBlock () |
Detailed Description
A class to read and parse system time zone data.Access is performed via the system time zone library functions.
Reads and parses system time zone data
- See also:
- KSystemTimeZones, KSystemTimeZone, KSystemTimeZoneData
Definition at line 353 of file ksystemtimezone.h.
Constructor & Destructor Documentation
KSystemTimeZoneSource::KSystemTimeZoneSource | ( | ) |
KSystemTimeZoneSource::~KSystemTimeZoneSource | ( | ) | [virtual] |
Definition at line 619 of file ksystemtimezone.cpp.
Member Function Documentation
void KSystemTimeZoneSource::endParseBlock | ( | ) | [static] |
KTimeZoneData * KSystemTimeZoneSource::parse | ( | const KTimeZone & | zone | ) | const [virtual] |
Extract detailed information for one time zone, via the system time zone library functions.
- Parameters:
-
zone the time zone for which data is to be extracted
- Returns:
- a KSystemTimeZoneData instance containing the parsed data. The caller is responsible for deleting the KTimeZoneData instance. Null is returned on error.
Reimplemented from KTimeZoneSource.
Definition at line 624 of file ksystemtimezone.cpp.
void KSystemTimeZoneSource::startParseBlock | ( | ) | [static] |
Use in conjunction with endParseBlock() to improve efficiency when calling parse() for a group of KSystemTimeZone instances in succession.
Call startParseBlock() before the first parse(), and call endParseBlock() after the last.
The effect of calling these methods is to save and restore the TZ environment variable only once before and after the group of parse() calls, rather than before and after every call. So, between calls to startParseBlock() and endParseBlock(), do not call any functions which rely directly or indirectly on the local time zone setting.
Definition at line 642 of file ksystemtimezone.cpp.
The documentation for this class was generated from the following files: