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

KDECore

KSystemTimeZoneSource Class Reference
[Time zone classes]

A class to read and parse system time zone data. More...

#include <ksystemtimezone.h>

Inheritance diagram for KSystemTimeZoneSource:
KTimeZoneSource KSystemTimeZoneSourceWindows

List of all members.

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

Definition at line 424 of file ksystemtimezone.h.


Constructor & Destructor Documentation

KSystemTimeZoneSource::KSystemTimeZoneSource (  ) 

Constructs a system time zone source.

Definition at line 707 of file ksystemtimezone.cpp.

KSystemTimeZoneSource::~KSystemTimeZoneSource (  )  [virtual]

Definition at line 713 of file ksystemtimezone.cpp.


Member Function Documentation

void KSystemTimeZoneSource::endParseBlock (  )  [static]
See also:
startParseBlock()

Definition at line 742 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.

Reimplemented in KSystemTimeZoneSourceWindows.

Definition at line 718 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 736 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
  • KPty
  • Kross
  • KUtils
  • Nepomuk
  • Plasma
  • Solid
  • Sonnet
  • ThreadWeaver
Generated for kdelibs by doxygen 1.6.1
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