KCal Library
#include <icaltimezones.h>
Inherits KTimeZoneData.
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 |
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
Definition at line 434 of file icaltimezones.h.
Constructor & Destructor Documentation
◆ ICalTimeZoneData() [1/3]
KCal::ICalTimeZoneData::ICalTimeZoneData | ( | ) |
Default constructor.
Definition at line 317 of file icaltimezones.cpp.
◆ ICalTimeZoneData() [2/3]
KCal::ICalTimeZoneData::ICalTimeZoneData | ( | const ICalTimeZoneData & | rhs | ) |
Copy constructor.
- Parameters
-
rhs instance to copy from
Definition at line 322 of file icaltimezones.cpp.
◆ ICalTimeZoneData() [3/3]
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 toearliest earliest date for which time zone data should be stored
Definition at line 332 of file icaltimezones.cpp.
◆ ~ICalTimeZoneData()
|
virtual |
Destructor.
Definition at line 620 of file icaltimezones.cpp.
Member Function Documentation
◆ city()
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 645 of file icaltimezones.cpp.
◆ clone()
|
virtual |
Creates a new copy of this object.
The caller is responsible for deleting the copy.
- Returns
- copy of this instance
Definition at line 640 of file icaltimezones.cpp.
◆ hasTransitions()
|
virtual |
Return whether daylight saving transitions are available for the time zone.
- Returns
true
Definition at line 682 of file icaltimezones.cpp.
◆ icalTimezone()
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 667 of file icaltimezones.cpp.
◆ lastModified()
QDateTime KCal::ICalTimeZoneData::lastModified | ( | ) | const |
Returns the LAST-MODIFIED time of the VTIMEZONE, if any.
- Returns
- time, or QDateTime() if none
Definition at line 655 of file icaltimezones.cpp.
◆ operator=()
ICalTimeZoneData & KCal::ICalTimeZoneData::operator= | ( | const ICalTimeZoneData & | rhs | ) |
Assignment operator.
- Parameters
-
rhs instance to copy from
- Returns
- this instance
Definition at line 625 of file icaltimezones.cpp.
◆ url()
QByteArray KCal::ICalTimeZoneData::url | ( | ) | const |
Returns the URL of the published VTIMEZONE definition, if any.
- Returns
- URL
Definition at line 650 of file icaltimezones.cpp.
◆ vtimezone()
QByteArray KCal::ICalTimeZoneData::vtimezone | ( | ) | const |
Returns the VTIMEZONE string which represents this time zone.
- Returns
- VTIMEZONE string
Definition at line 660 of file icaltimezones.cpp.
The documentation for this class was generated from the following files:
Documentation copyright © 1996-2022 The KDE developers.
Generated on Thu Jul 21 2022 00:00:00 by doxygen 1.9.5 written by Dimitri van Heesch, © 1997-2006
KDE's Doxygen guidelines are available online.