JanaEcalTime

JanaEcalTime — An implementation of JanaTime using libecal

Synopsis

                    JanaEcalTime;
JanaTime *          jana_ecal_time_new                  ();
JanaTime *          jana_ecal_time_new_from_icaltime    (const icaltimetype *time);
JanaTime *          jana_ecal_time_new_from_ecaltime    (ECalComponentDateTime *dt);
void                jana_ecal_time_set_location         (JanaEcalTime *self,
                                                         const gchar *location);
const gchar *       jana_ecal_time_get_location         (JanaEcalTime *self);

Object Hierarchy

  GObject
   +----JanaEcalTime

Implemented Interfaces

JanaEcalTime implements JanaTime.

Properties

  "icaltime"                 gpointer              : Read / Write / Construct Only

Description

JanaEcalTime is an implementation of JanaTime that provides a wrapper over icaltimetype, using libecal.

Details

JanaEcalTime

typedef struct _JanaEcalTime JanaEcalTime;

The JanaEcalTime struct contains only private data.


jana_ecal_time_new ()

JanaTime *          jana_ecal_time_new                  ();

Creates a new JanaEcalTime.

Returns :

A new JanaEcalTime, cast as a JanaTime.

jana_ecal_time_new_from_icaltime ()

JanaTime *          jana_ecal_time_new_from_icaltime    (const icaltimetype *time);

Creates a new JanaEcalTime using the given icaltimetype.

time :

An icaltimetype

Returns :

A new JanaEcalTime, cast as a JanaTime.

jana_ecal_time_new_from_ecaltime ()

JanaTime *          jana_ecal_time_new_from_ecaltime    (ECalComponentDateTime *dt);

Creates a new JanaEcalTime using the given ECalComponentDateTime

dt :

Returns :

A new JanaEcalTime, cast as a JanaTime

jana_ecal_time_set_location ()

void                jana_ecal_time_set_location         (JanaEcalTime *self,
                                                         const gchar *location);

Sets the location of the time, using a timezone string such as "Europe/London", as opposed to the libc timezone name as used in jana_time_set_tzname(). The time will still be adjusted for the new timezone. A NULL location parameter will be treated as "UTC".

self :

A JanaEcalTime

location :

An iCal/vCalendar timezone string

jana_ecal_time_get_location ()

const gchar *       jana_ecal_time_get_location         (JanaEcalTime *self);

Retrieves the full timezone name of the given time. See jana_ecal_time_set_location().

self :

A JanaEcalTime

Returns :

A string containing the full timezone name. This is owned by libecal and must not be freed.

Property Details

The "icaltime" property

  "icaltime"                 gpointer              : Read / Write / Construct Only

The icaltimetype represented by this JanaTime object.