• Skip to content
  • Skip to link menu
KDE 4.3 API Reference
  • KDE API Reference
  • KDE-PIM Libraries
  • Sitemap
  • Contact Us
 

KCal Library

KCal::ICalTimeZoneData

KCal::ICalTimeZoneData Class Reference

Parsed iCalendar VTIMEZONE data. More...

#include <icaltimezones.h>

Inherits KTimeZoneData.

List of all members.

Public Member Functions

QString city () const
virtual KTimeZoneData * clone () const
virtual bool hasTransitions () const
icaltimezone * icalTimezone () const
 ICalTimeZoneData (const KTimeZoneData &rhs, const KTimeZone &tz, const QDate &earliest)
 ICalTimeZoneData (const ICalTimeZoneData &rhs)
 ICalTimeZoneData ()
QDateTime lastModified () const
ICalTimeZoneData & operator= (const ICalTimeZoneData &rhs)
QByteArray url () const
QByteArray vtimezone () const
virtual ~ICalTimeZoneData ()

Detailed Description

Parsed iCalendar VTIMEZONE data.

This class is used by the ICalTimeZoneSource class to pass parsed data to an ICalTimeZone intance.

Parsed iCalendar time zone data

See also:
ICalTimeZone, ICalTimeZoneSource
Author:
David Jarvie <software@astrojar.org.uk>.

Definition at line 434 of file icaltimezones.h.


Constructor & Destructor Documentation

KCal::ICalTimeZoneData::ICalTimeZoneData (  ) 

Default constructor.

Definition at line 318 of file icaltimezones.cpp.

KCal::ICalTimeZoneData::ICalTimeZoneData ( const ICalTimeZoneData &  rhs  ) 

Copy constructor.

Parameters:
rhs instance to copy from

Definition at line 323 of file icaltimezones.cpp.

KCal::ICalTimeZoneData::ICalTimeZoneData ( const KTimeZoneData &  rhs,
const KTimeZone &  tz,
const QDate &  earliest 
)

Constructor which converts a KTimeZoneData to an ICalTimeZoneData instance.

If data is for a system time zone (i.e. tz is a KSystemTimeZone instance), the full time zone data is read from the system time zone database if possible; otherwise, the built-in libical time zone's data is used.

Parameters:
rhs KTimeZoneData instance
tz time zone which rhs belongs to
earliest earliest date for which time zone data should be stored

Definition at line 333 of file icaltimezones.cpp.

KCal::ICalTimeZoneData::~ICalTimeZoneData (  )  [virtual]

Destructor.

Definition at line 621 of file icaltimezones.cpp.


Member Function Documentation

QString KCal::ICalTimeZoneData::city (  )  const

Returns the name of the city for this time zone, if any.

There is no fixed format for the name.

Returns:
city name

Definition at line 646 of file icaltimezones.cpp.

KTimeZoneData * KCal::ICalTimeZoneData::clone (  )  const [virtual]

Creates a new copy of this object.

The caller is responsible for deleting the copy.

Returns:
copy of this instance

Definition at line 641 of file icaltimezones.cpp.

bool KCal::ICalTimeZoneData::hasTransitions (  )  const [virtual]

Return whether daylight saving transitions are available for the time zone.

Returns:
true

Definition at line 681 of file icaltimezones.cpp.

icaltimezone * KCal::ICalTimeZoneData::icalTimezone (  )  const

Returns the ICal timezone structure which represents this time zone.

The caller is responsible for freeing the returned structure using icaltimezone_free().

Returns:
icaltimezone structure

Definition at line 666 of file icaltimezones.cpp.

QDateTime KCal::ICalTimeZoneData::lastModified (  )  const

Returns the LAST-MODIFIED time of the VTIMEZONE, if any.

Returns:
time, or QDateTime() if none

Definition at line 656 of file icaltimezones.cpp.

ICalTimeZoneData & KCal::ICalTimeZoneData::operator= ( const ICalTimeZoneData &  rhs  ) 

Assignment operator.

Parameters:
rhs instance to copy from
Returns:
this instance

Definition at line 626 of file icaltimezones.cpp.

QByteArray KCal::ICalTimeZoneData::url (  )  const

Returns the URL of the published VTIMEZONE definition, if any.

Returns:
URL

Definition at line 651 of file icaltimezones.cpp.

QByteArray KCal::ICalTimeZoneData::vtimezone (  )  const

Returns the VTIMEZONE string which represents this time zone.

Returns:
VTIMEZONE string

Definition at line 661 of file icaltimezones.cpp.


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

KCal Library

Skip menu "KCal Library"
  • Main Page
  • Namespace List
  • Class Hierarchy
  • Alphabetical List
  • Class List
  • File List
  • Namespace Members
  • Class Members
  • Related Pages

KDE-PIM Libraries

Skip menu "KDE-PIM Libraries"
  • akonadi
  • kabc
  • kblog
  • kcal
  • kholidays
  • kimap
  • kioslave
  •   imap4
  •   mbox
  • kldap
  • kmime
  • kpimidentities
  • kpimtextedit
  •   richtextbuilders
  • kpimutils
  • kresources
  • ktnef
  • kxmlrpcclient
  • mailtransport
  • microblog
  • qgpgme
  • syndication
  •   atom
  •   rdf
  •   rss2
Generated for KDE-PIM Libraries 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