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

KDECore

Public Member Functions | Static Public Member Functions | List of all members
KSystemTimeZoneSource Class Reference
Time zone classes

#include <ksystemtimezone.h>

Inheritance diagram for KSystemTimeZoneSource:
Inheritance graph
[legend]

Public Member Functions

 KSystemTimeZoneSource ()
 
virtual ~KSystemTimeZoneSource ()
 
virtual KTimeZoneData * parse (const KTimeZone &zone) const
 
- Public Member Functions inherited from KTimeZoneSource
 KTimeZoneSource ()
 
virtual ~KTimeZoneSource ()
 
bool useZoneParse () const
 

Static Public Member Functions

static void endParseBlock ()
 
static void startParseBlock ()
 

Additional Inherited Members

- Protected Member Functions inherited from KTimeZoneSource
 KTimeZoneSource (bool useZoneParse)
 

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 djarv.nosp@m.ie@k.nosp@m.de.or.nosp@m.g.

Definition at line 441 of file ksystemtimezone.h.

Constructor & Destructor Documentation

KSystemTimeZoneSource::KSystemTimeZoneSource ( )

Constructs a system time zone source.

Definition at line 733 of file ksystemtimezone.cpp.

KSystemTimeZoneSource::~KSystemTimeZoneSource ( )
virtual

Definition at line 739 of file ksystemtimezone.cpp.

Member Function Documentation

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

Definition at line 768 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
zonethe 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 744 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 762 of file ksystemtimezone.cpp.


The documentation for this class was generated from the following files:
  • ksystemtimezone.h
  • ksystemtimezone.cpp
This file is part of the KDE documentation.
Documentation copyright © 1996-2020 The KDE developers.
Generated on Mon Jun 22 2020 13:22:13 by doxygen 1.8.7 written by Dimitri van Heesch, © 1997-2006

KDE's Doxygen guidelines are available online.

KDECore

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

kdelibs API Reference

Skip menu "kdelibs API Reference"
  • DNSSD
  • Interfaces
  •   KHexEdit
  •   KMediaPlayer
  •   KSpeech
  •   KTextEditor
  • kconf_update
  • KDE3Support
  •   KUnitTest
  • KDECore
  • KDED
  • KDEsu
  • KDEUI
  • KDEWebKit
  • KDocTools
  • KFile
  • KHTML
  • KImgIO
  • KInit
  • kio
  • KIOSlave
  • KJS
  •   KJS-API
  •   WTF
  • kjsembed
  • KNewStuff
  • KParts
  • KPty
  • Kross
  • KUnitConversion
  • KUtils
  • Nepomuk
  • Plasma
  • Solid
  • Sonnet
  • ThreadWeaver

Search



Report problems with this website to our bug tracking system.
Contact the specific authors with questions and comments about the page contents.

KDE® and the K Desktop Environment® logo are registered trademarks of KDE e.V. | Legal