• Skip to content
  • Skip to link menu
KDE 4.1 API Reference
  • KDE API Reference
  • kdelibs
  • Sitemap
  • Contact Us
 

KDECore

KSystemTimeZoneSource Class Reference
[Time zone classes]

#include <ksystemtimezone.h>

Inheritance diagram for KSystemTimeZoneSource:

Inheritance graph
[legend]

List of all members.


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
Author:
David Jarvie <djarvie@kde.org>.

Definition at line 353 of file 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 ()

Constructor & Destructor Documentation

KSystemTimeZoneSource::KSystemTimeZoneSource (  ) 

Constructs a system time zone source.

Definition at line 613 of file ksystemtimezone.cpp.

KSystemTimeZoneSource::~KSystemTimeZoneSource (  )  [virtual]

Definition at line 619 of file ksystemtimezone.cpp.


Member Function Documentation

void KSystemTimeZoneSource::endParseBlock (  )  [static]

See also:
startParseBlock()

Definition at line 648 of file ksystemtimezone.cpp.

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:
  • ksystemtimezone.h
  • ksystemtimezone.cpp

KDECore

Skip menu "KDECore"
  • Main Page
  • Modules
  • Namespace List
  • Class Hierarchy
  • Alphabetical List
  • Class List
  • File List
  • Namespace Members
  • Class Members
  • Related Pages

kdelibs

Skip menu "kdelibs"
  • DNSSD
  • Interfaces
  •   KHexEdit
  •   KMediaPlayer
  •   KSpeech
  •   KTextEditor
  • Kate
  • kconf_update
  • KDE3Support
  •   KUnitTest
  • KDECore
  • KDED
  • KDEsu
  • KDEUI
  • KDocTools
  • KFile
  • KHTML
  • KImgIO
  • KInit
  • KIO
  • KIOSlave
  • KJS
  •   KJS-API
  •   WTF
  • kjsembed
  • KNewStuff
  • KParts
  • Kross
  • KUtils
  • Nepomuk
  • Solid
  • Sonnet
  • ThreadWeaver
Generated for kdelibs by doxygen 1.5.4
This website is maintained by Adriaan de Groot and Allen Winter.
KDE® and the K Desktop Environment® logo are registered trademarks of KDE e.V. | Legal