• Skip to content
  • Skip to link menu
  • KDE API Reference
  • kdepimlibs-4.10.5 API Reference
  • KDE Home
  • Contact Us
 

KCalCore Library

  • KCalCore
  • ICalTimeZoneData
Public Member Functions | Protected Member Functions
KCalCore::ICalTimeZoneData Class Reference

#include <icaltimezones.h>

Inherits KTimeZoneData.

List of all members.

Public Member Functions

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

Protected Member Functions

virtual void virtual_hook (int id, void *data)

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

Definition at line 564 of file icaltimezones.h.


Constructor & Destructor Documentation

KCalCore::ICalTimeZoneData::ICalTimeZoneData ( )

Default constructor.

Definition at line 392 of file icaltimezones.cpp.

KCalCore::ICalTimeZoneData::ICalTimeZoneData ( const ICalTimeZoneData &  rhs)

Copy constructor.

Parameters:
rhsinstance to copy from

Definition at line 397 of file icaltimezones.cpp.

KCalCore::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:
rhsKTimeZoneData instance
tztime zone which rhs belongs to
earliestearliest date for which time zone data should be stored

Definition at line 422 of file icaltimezones.cpp.

KCalCore::ICalTimeZoneData::~ICalTimeZoneData ( )
virtual

Destructor.

Definition at line 765 of file icaltimezones.cpp.


Member Function Documentation

QString KCalCore::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 790 of file icaltimezones.cpp.

KTimeZoneData * KCalCore::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 785 of file icaltimezones.cpp.

bool KCalCore::ICalTimeZoneData::hasTransitions ( ) const
virtual

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

Returns:
true

Definition at line 827 of file icaltimezones.cpp.

icaltimezone * KCalCore::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 812 of file icaltimezones.cpp.

QDateTime KCalCore::ICalTimeZoneData::lastModified ( ) const

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

Returns:
time, or QDateTime() if none

Definition at line 800 of file icaltimezones.cpp.

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

Assignment operator.

Parameters:
rhsinstance to copy from
Returns:
this instance

Definition at line 770 of file icaltimezones.cpp.

QByteArray KCalCore::ICalTimeZoneData::url ( ) const

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

Returns:
URL

Definition at line 795 of file icaltimezones.cpp.

void KCalCore::ICalTimeZoneData::virtual_hook ( int  id,
void *  data 
)
protectedvirtual

Parameters:
idis any integer unique to this class which we will use to identify the method to be called.
datais a pointer to some glob of data, typically a struct.

Definition at line 832 of file icaltimezones.cpp.

QByteArray KCalCore::ICalTimeZoneData::vtimezone ( ) const

Returns the VTIMEZONE string which represents this time zone.

Returns:
VTIMEZONE string

Definition at line 805 of file icaltimezones.cpp.


The documentation for this class was generated from the following files:
  • icaltimezones.h
  • icaltimezones.cpp
This file is part of the KDE documentation.
Documentation copyright © 1996-2013 The KDE developers.
Generated on Wed Jul 24 2013 01:05:12 by doxygen 1.8.1.1 written by Dimitri van Heesch, © 1997-2006

KDE's Doxygen guidelines are available online.

KCalCore Library

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

kdepimlibs-4.10.5 API Reference

Skip menu "kdepimlibs-4.10.5 API Reference"
  • akonadi
  •   contact
  •   kmime
  •   socialutils
  • kabc
  • kalarmcal
  • kblog
  • kcal
  • kcalcore
  • kcalutils
  • kholidays
  • kimap
  • kioslave
  •   imap4
  •   mbox
  •   nntp
  • kldap
  • kmbox
  • kmime
  • kontactinterface
  • kpimidentities
  • kpimtextedit
  • kpimutils
  • kresources
  • ktnef
  • kxmlrpcclient
  • mailtransport
  • microblog
  • qgpgme
  • syndication
  •   atom
  •   rdf
  •   rss2
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