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

KDECore

KTimezoneSource Class Reference

The KTimezoneSource class contains information source-dependent functions related to a timezone. More...

#include <ktimezones.h>

Inheritance diagram for KTimezoneSource:

Inheritance graph
[legend]

List of all members.


Public Member Functions

virtual QString db ()
 KTimezoneSource (const QString &db)
virtual bool parse (const QString &zone, KTimezoneDetails &dataReceiver) const
virtual ~KTimezoneSource ()

Detailed Description

The KTimezoneSource class contains information source-dependent functions related to a timezone.

Create subclasses to implement custom sources of timezone information.

For example, to be able to create KTimezone objects from libical's VTIMEZONE objects:

  • Subclass this class with a custom parse() routine.
  • Create one or more instances of this class.
  • Use the instance(s) to create KTimezone objects.
  • If required, add the objects to a KTimezones database.
Since:
3.5
Author:
S.R.Haque <srhaque@iee.org>.

Definition at line 51 of file ktimezones.h.


Constructor & Destructor Documentation

KTimezoneSource::KTimezoneSource ( const QString &  db  ) 

Definition at line 674 of file ktimezones.cpp.

KTimezoneSource::~KTimezoneSource (  )  [virtual]

Definition at line 679 of file ktimezones.cpp.


Member Function Documentation

QString KTimezoneSource::db (  )  [virtual]

Location of system timezone information.

Returns:
value which can be combined with zone name to retrieve timezone info.

Definition at line 683 of file ktimezones.cpp.

bool KTimezoneSource::parse ( const QString &  zone,
KTimezoneDetails &  dataReceiver 
) const [virtual]

Extract timezone detail information.

The default implementation consists of a parser for zoneinfo files in tzfile(5).

Returns:
true if the parse encountered no errors.

Definition at line 688 of file ktimezones.cpp.


The documentation for this class was generated from the following files:
  • ktimezones.h
  • ktimezones.cpp

KDECore

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

API Reference

Skip menu "API Reference"
  • dcop
  • DNSSD
  • interfaces
  • Kate
  • kconf_update
  • KDECore
  • KDED
  • kdefx
  • KDEsu
  • kdeui
  • KDocTools
  • KHTML
  • KImgIO
  • KInit
  • kio
  • kioslave
  • KJS
  • KNewStuff
  • KParts
  • KUtils
Generated for API Reference by doxygen 1.5.9
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