class KTimeZoneSource |
|
|
Base class representing a source of time zone information. Derive subclasses from KTimeZoneSource to read and parse time zone details from a time zone database or other source of time zone information. If can know in advance what KTimeZone instances to create without having to parse the source data, you should reimplement the virtual method parse(const KTimeZone&). Otherwise, you need to define your own parse() methods with appropriate signatures, to both read and parse the new data, and create new KTimeZone instances. KTimeZoneSource itself may be used as a dummy source which returns empty time zone details. Base class representing a source of time zone information
See also KTimeZone, KTimeZoneData
Author David Jarvie |
|
|
Extracts detail information for one time zone from the source database. In this base class, the method always succeeds and returns an empty data instance. Derived classes should reimplement this method to return an appropriate data class derived from KTimeZoneData.
zone - the time zone for which data is to be extracted. Returns an instance of a class derived from KTimeZoneData containing the parsed data. The caller is responsible for deleting the KTimeZoneData instance. Null is returned on error. |