CAL_COMPONENT_TYPE
#define CAL_COMPONENT_TYPE (cal_component_get_type ())
CAL_COMPONENT
#define CAL_COMPONENT(obj) (GTK_CHECK_CAST ((obj), CAL_COMPONENT_TYPE, CalComponent))
CAL_COMPONENT_CLASS
#define CAL_COMPONENT_CLASS(klass) (GTK_CHECK_CLASS_CAST ((klass), CAL_COMPONENT_TYPE, \
CalComponentClass))
IS_CAL_COMPONENT
#define IS_CAL_COMPONENT(obj) (GTK_CHECK_TYPE ((obj), CAL_COMPONENT_TYPE))
IS_CAL_COMPONENT_CLASS
#define IS_CAL_COMPONENT_CLASS(klass) (GTK_CHECK_CLASS_TYPE ((klass), CAL_COMPONENT_TYPE))
CalComponentVType
typedef enum {
CAL_COMPONENT_NO_TYPE,
CAL_COMPONENT_EVENT,
CAL_COMPONENT_TODO,
CAL_COMPONENT_JOURNAL,
CAL_COMPONENT_FREEBUSY,
CAL_COMPONENT_TIMEZONE
} CalComponentVType;
CalComponentField
typedef enum {
CAL_COMPONENT_FIELD_CATEGORIES, /* concatenation of the categories list */
CAL_COMPONENT_FIELD_CLASSIFICATION,
CAL_COMPONENT_FIELD_COMPLETED,
CAL_COMPONENT_FIELD_DTEND,
CAL_COMPONENT_FIELD_DTSTART,
CAL_COMPONENT_FIELD_DUE,
CAL_COMPONENT_FIELD_GEO,
CAL_COMPONENT_FIELD_PERCENT,
CAL_COMPONENT_FIELD_PRIORITY,
CAL_COMPONENT_FIELD_SUMMARY,
CAL_COMPONENT_FIELD_TRANSPARENCY,
CAL_COMPONENT_FIELD_URL,
CAL_COMPONENT_FIELD_HAS_ALARMS, /* not a real field */
CAL_COMPONENT_FIELD_ICON, /* not a real field */
CAL_COMPONENT_FIELD_COMPLETE, /* not a real field */
CAL_COMPONENT_FIELD_RECURRING, /* not a real field */
CAL_COMPONENT_FIELD_OVERDUE, /* not a real field */
CAL_COMPONENT_FIELD_COLOR, /* not a real field */
CAL_COMPONENT_FIELD_STATUS,
CAL_COMPONENT_FIELD_COMPONENT, /* not a real field */
#if 0
CAL_COMPONENT_FIELD_LOCATION,
#endif
CAL_COMPONENT_FIELD_NUM_FIELDS
} CalComponentField;
CalComponentClassification
typedef enum {
CAL_COMPONENT_CLASS_NONE,
CAL_COMPONENT_CLASS_PUBLIC,
CAL_COMPONENT_CLASS_PRIVATE,
CAL_COMPONENT_CLASS_CONFIDENTIAL,
CAL_COMPONENT_CLASS_UNKNOWN
} CalComponentClassification;
CalComponentDateTime
typedef struct {
/* Actual date/time value */
struct icaltimetype *value;
/* Timezone ID */
const char *tzid;
} CalComponentDateTime;
CalComponentPeriodType
typedef enum {
CAL_COMPONENT_PERIOD_DATETIME,
CAL_COMPONENT_PERIOD_DURATION
} CalComponentPeriodType;
CalComponentPeriod
typedef struct {
CalComponentPeriodType type;
struct icaltimetype start;
union {
struct icaltimetype end;
struct icaldurationtype duration;
} u;
} CalComponentPeriod;
CalComponentRangeType
typedef enum {
CAL_COMPONENT_RANGE_SINGLE,
CAL_COMPONENT_RANGE_THISPRIOR,
CAL_COMPONENT_RANGE_THISFUTURE,
} CalComponentRangeType;
CalComponentRange
typedef struct {
CalComponentRangeType type;
CalComponentDateTime datetime;
} CalComponentRange;
CalComponentText
typedef struct {
/* Description string */
const char *value;
/* Alternate representation URI */
const char *altrep;
} CalComponentText;
CalComponentTransparency
typedef enum {
CAL_COMPONENT_TRANSP_NONE,
CAL_COMPONENT_TRANSP_TRANSPARENT,
CAL_COMPONENT_TRANSP_OPAQUE,
CAL_COMPONENT_TRANSP_UNKNOWN
} CalComponentTransparency;
CalComponentAttendee
typedef struct {
const char *value;
const char *member;
icalparameter_cutype cutype;
icalparameter_role role;
icalparameter_partstat status;
gboolean rsvp;
const char *delto;
const char *delfrom;
const char *sentby;
const char *cn;
const char *language;
} CalComponentAttendee;
CalComponentOrganizer
typedef struct {
const char *value;
const char *sentby;
const char *cn;
const char *language;
} CalComponentOrganizer;
CalComponent
CalComponentClass
CalComponentPrivate
CalComponent
struct CalComponent {
GtkObject object;
/* Private data */
CalComponentPrivate *priv;
};
cal_component_get_type
GtkType
void
cal_component_gen_uid
char *
void
cal_component_new
CalComponent *
void
cal_component_clone
CalComponent *
CalComponent *comp
cal_component_set_new_vtype
void
CalComponent *comp, CalComponentVType type
cal_component_set_icalcomponent
gboolean
CalComponent *comp, icalcomponent *icalcomp
cal_component_get_icalcomponent
icalcomponent *
CalComponent *comp
cal_component_rescan
void
CalComponent *comp
cal_component_strip_errors
void
CalComponent *comp
cal_component_get_vtype
CalComponentVType
CalComponent *comp
cal_component_get_as_string
char *
CalComponent *comp
cal_component_commit_sequence
void
CalComponent *comp
cal_component_abort_sequence
void
CalComponent *comp
cal_component_get_uid
void
CalComponent *comp, const char **uid
cal_component_set_uid
void
CalComponent *comp, const char *uid
cal_component_get_categories
void
CalComponent *comp, const char **categories
cal_component_set_categories
void
CalComponent *comp, const char *categories
cal_component_get_categories_list
void
CalComponent *comp, GSList **categ_list
cal_component_set_categories_list
void
CalComponent *comp, GSList *categ_list
cal_component_get_classification
void
CalComponent *comp, CalComponentClassification *classif
cal_component_set_classification
void
CalComponent *comp, CalComponentClassification classif
cal_component_get_comment_list
void
CalComponent *comp, GSList **text_list
cal_component_set_comment_list
void
CalComponent *comp, GSList *text_list
cal_component_get_completed
void
CalComponent *comp, struct icaltimetype **t
cal_component_set_completed
void
CalComponent *comp, struct icaltimetype *t
cal_component_get_contact_list
void
CalComponent *comp, GSList **text_list
cal_component_set_contact_list
void
CalComponent *comp, GSList *text_list
cal_component_get_created
void
CalComponent *comp, struct icaltimetype **t
cal_component_set_created
void
CalComponent *comp, struct icaltimetype *t
cal_component_get_description_list
void
CalComponent *comp, GSList **text_list
cal_component_set_description_list
void
CalComponent *comp, GSList *text_list
cal_component_get_dtend
void
CalComponent *comp, CalComponentDateTime *dt
cal_component_set_dtend
void
CalComponent *comp, CalComponentDateTime *dt
cal_component_get_dtstamp
void
CalComponent *comp, struct icaltimetype *t
cal_component_set_dtstamp
void
CalComponent *comp, struct icaltimetype *t
cal_component_get_dtstart
void
CalComponent *comp, CalComponentDateTime *dt
cal_component_set_dtstart
void
CalComponent *comp, CalComponentDateTime *dt
cal_component_get_due
void
CalComponent *comp, CalComponentDateTime *dt
cal_component_set_due
void
CalComponent *comp, CalComponentDateTime *dt
cal_component_get_exdate_list
void
CalComponent *comp, GSList **exdate_list
cal_component_set_exdate_list
void
CalComponent *comp, GSList *exdate_list
cal_component_has_exdates
gboolean
CalComponent *comp
cal_component_get_exrule_list
void
CalComponent *comp, GSList **recur_list
cal_component_get_exrule_property_list
void
CalComponent *comp, GSList **recur_list
cal_component_set_exrule_list
void
CalComponent *comp, GSList *recur_list
cal_component_has_exrules
gboolean
CalComponent *comp
cal_component_has_exceptions
gboolean
CalComponent *comp
cal_component_get_geo
void
CalComponent *comp, struct icalgeotype **geo
cal_component_set_geo
void
CalComponent *comp, struct icalgeotype *geo
cal_component_get_last_modified
void
CalComponent *comp, struct icaltimetype **t
cal_component_set_last_modified
void
CalComponent *comp, struct icaltimetype *t
cal_component_get_organizer
void
CalComponent *comp, CalComponentOrganizer *organizer
cal_component_set_organizer
void
CalComponent *comp, CalComponentOrganizer *organizer
cal_component_has_organizer
gboolean
CalComponent *comp
cal_component_get_percent
void
CalComponent *comp, int **percent
cal_component_set_percent
void
CalComponent *comp, int *percent
cal_component_get_priority
void
CalComponent *comp, int **priority
cal_component_set_priority
void
CalComponent *comp, int *priority
cal_component_get_recurid
void
CalComponent *comp, CalComponentRange *recur_id
cal_component_set_recurid
void
CalComponent *comp, CalComponentRange *recur_id
cal_component_get_rdate_list
void
CalComponent *comp, GSList **period_list
cal_component_set_rdate_list
void
CalComponent *comp, GSList *period_list
cal_component_has_rdates
gboolean
CalComponent *comp
cal_component_get_rrule_list
void
CalComponent *comp, GSList **recur_list
cal_component_get_rrule_property_list
void
CalComponent *comp, GSList **recur_list
cal_component_set_rrule_list
void
CalComponent *comp, GSList *recur_list
cal_component_has_rrules
gboolean
CalComponent *comp
cal_component_has_recurrences
gboolean
CalComponent *comp
cal_component_has_simple_recurrence
gboolean
CalComponent *comp
cal_component_get_sequence
void
CalComponent *comp, int **sequence
cal_component_set_sequence
void
CalComponent *comp, int *sequence
cal_component_get_status
void
CalComponent *comp, icalproperty_status *status
cal_component_set_status
void
CalComponent *comp, icalproperty_status status
cal_component_get_summary
void
CalComponent *comp, CalComponentText *summary
cal_component_set_summary
void
CalComponent *comp, CalComponentText *summary
cal_component_get_transparency
void
CalComponent *comp, CalComponentTransparency *transp
cal_component_set_transparency
void
CalComponent *comp, CalComponentTransparency transp
cal_component_get_url
void
CalComponent *comp, const char **url
cal_component_set_url
void
CalComponent *comp, const char *url
cal_component_get_attendee_list
void
CalComponent *comp, GSList **attendee_list
cal_component_set_attendee_list
void
CalComponent *comp, GSList *attendee_list
cal_component_has_attendees
gboolean
CalComponent *comp
cal_component_get_location
void
CalComponent *comp, const char **location
cal_component_set_location
void
CalComponent *comp, const char *location
cal_component_event_dates_match
gboolean
CalComponent *comp1, CalComponent *comp2
cal_component_free_categories_list
void
GSList *categ_list
cal_component_free_datetime
void
CalComponentDateTime *dt
cal_component_free_exdate_list
void
GSList *exdate_list
cal_component_free_geo
void
struct icalgeotype *geo
cal_component_free_icaltimetype
void
struct icaltimetype *t
cal_component_free_percent
void
int *percent
cal_component_free_priority
void
int *priority
cal_component_free_period_list
void
GSList *period_list
cal_component_free_recur_list
void
GSList *recur_list
cal_component_free_sequence
void
int *sequence
cal_component_free_text_list
void
GSList *text_list
cal_component_free_attendee_list
void
GSList *attendee_list
CalComponentAlarm
CalAlarmInstance
typedef struct {
/* UID of the alarm that triggered */
const char *auid;
/* Trigger time, i.e. "5 minutes before the appointment" */
time_t trigger;
/* Actual event occurrence to which this trigger corresponds */
time_t occur_start;
time_t occur_end;
} CalAlarmInstance;
CalComponentAlarms
typedef struct {
/* The actual component */
CalComponent *comp;
/* List of CalAlarmInstance structures */
GSList *alarms;
} CalComponentAlarms;
CalAlarmAction
typedef enum {
CAL_ALARM_NONE,
CAL_ALARM_AUDIO,
CAL_ALARM_DISPLAY,
CAL_ALARM_EMAIL,
CAL_ALARM_PROCEDURE,
CAL_ALARM_UNKNOWN
} CalAlarmAction;
CalAlarmTriggerType
typedef enum {
CAL_ALARM_TRIGGER_NONE,
CAL_ALARM_TRIGGER_RELATIVE_START,
CAL_ALARM_TRIGGER_RELATIVE_END,
CAL_ALARM_TRIGGER_ABSOLUTE
} CalAlarmTriggerType;
CalAlarmTrigger
typedef struct {
CalAlarmTriggerType type;
union {
struct icaldurationtype rel_duration;
struct icaltimetype abs_time;
} u;
} CalAlarmTrigger;
CalAlarmRepeat
typedef struct {
/* Number of extra repetitions, zero for none */
int repetitions;
/* Interval between repetitions */
struct icaldurationtype duration;
} CalAlarmRepeat;
cal_component_has_alarms
gboolean
CalComponent *comp
cal_component_add_alarm
void
CalComponent *comp, CalComponentAlarm *alarm
cal_component_remove_alarm
void
CalComponent *comp, const char *auid
cal_component_remove_all_alarms
void
CalComponent *comp
cal_component_get_alarm_uids
GList *
CalComponent *comp
cal_component_get_alarm
CalComponentAlarm *
CalComponent *comp, const char *auid
cal_component_alarms_free
void
CalComponentAlarms *alarms
cal_component_alarm_new
CalComponentAlarm *
void
cal_component_alarm_clone
CalComponentAlarm *
CalComponentAlarm *alarm
cal_component_alarm_free
void
CalComponentAlarm *alarm
cal_component_alarm_get_uid
const char *
CalComponentAlarm *alarm
cal_component_alarm_get_action
void
CalComponentAlarm *alarm, CalAlarmAction *action
cal_component_alarm_set_action
void
CalComponentAlarm *alarm, CalAlarmAction action
cal_component_alarm_get_attach
void
CalComponentAlarm *alarm, icalattach **attach
cal_component_alarm_set_attach
void
CalComponentAlarm *alarm, icalattach *attach
cal_component_alarm_get_description
void
CalComponentAlarm *alarm, CalComponentText *description
cal_component_alarm_set_description
void
CalComponentAlarm *alarm, CalComponentText *description
cal_component_alarm_get_repeat
void
CalComponentAlarm *alarm, CalAlarmRepeat *repeat
cal_component_alarm_set_repeat
void
CalComponentAlarm *alarm, CalAlarmRepeat repeat
cal_component_alarm_get_trigger
void
CalComponentAlarm *alarm, CalAlarmTrigger *trigger
cal_component_alarm_set_trigger
void
CalComponentAlarm *alarm, CalAlarmTrigger trigger
cal_component_alarm_get_icalcomponent
icalcomponent *
CalComponentAlarm *alarm
CalRecurInstanceFn
gboolean
CalComponent *comp,
time_t instance_start,
time_t instance_end,
gpointer data
CalRecurResolveTimezoneFn
icaltimezone *
const char *tzid,
gpointer data
cal_recur_generate_instances
void
CalComponent *comp,time_t start,time_t end,CalRecurInstanceFn cb,gpointer cb_data,CalRecurResolveTimezoneFn tz_cb,gpointer tz_cb_data,icaltimezone *default_timezone
CalObjInstance
typedef struct {
char *uid; /* UID of the object */
time_t start; /* Start time of instance */
time_t end; /* End time of instance */
} CalObjInstance;
cal_obj_instance_list_free
void
GList *list
CalObjType
typedef enum {
CALOBJ_TYPE_EVENT = 1 << 0,
CALOBJ_TYPE_TODO = 1 << 1,
CALOBJ_TYPE_JOURNAL = 1 << 2,
CALOBJ_TYPE_ANY = 0x07
} CalObjType;
CalMode
typedef enum {
CAL_MODE_INVALID = -1,
CAL_MODE_LOCAL = 1 << 0,
CAL_MODE_REMOTE = 1 << 1,
CAL_MODE_ANY = 0x07
} CalMode;
cal_obj_uid_list_free
void
GList *list
cal_util_new_top_level
icalcomponent *
void
cal_util_generate_alarms_for_comp
CalComponentAlarms *
CalComponent *comp,time_t start,time_t end,CalRecurResolveTimezoneFn resolve_tzid,gpointer user_data,icaltimezone *default_timezone
cal_util_generate_alarms_for_list
int
GList *comps,time_t start,time_t end,GSList **comp_alarms,CalRecurResolveTimezoneFn resolve_tzid,gpointer user_data,icaltimezone *default_timezone
cal_util_resolve_tzid
icaltimezone *
const char *tzid, gpointer data
cal_util_priority_to_string
char *
int priority
cal_util_priority_from_string
int
const char *string
cal_util_expand_uri
char *
char *uri, gboolean tasks
cal_util_add_timezones_from_component
void
icalcomponent *vcal_comp,CalComponent *comp
time_days_in_month
int
int year, int month
time_day_of_year
int
int day, int month, int year
time_day_of_week
int
int day, int month, int year
time_is_leap_year
gboolean
int year
time_leap_years_up_to
int
int year
isodate_from_time_t
char *
time_t t
time_from_isodate
time_t
const char *str
time_add_day
time_t
time_t time, int days
time_add_week
time_t
time_t time, int weeks
time_day_begin
time_t
time_t t
time_day_end
time_t
time_t t
time_add_day_with_zone
time_t
time_t time, int days, icaltimezone *zone
time_add_week_with_zone
time_t
time_t time, int weeks, icaltimezone *zone
time_add_month_with_zone
time_t
time_t time, int months, icaltimezone *zone
time_year_begin_with_zone
time_t
time_t time, icaltimezone *zone
time_month_begin_with_zone
time_t
time_t time, icaltimezone *zone
time_week_begin_with_zone
time_t
time_t time, int week_start_day,icaltimezone *zone
time_day_begin_with_zone
time_t
time_t time, icaltimezone *zone
time_day_end_with_zone
time_t
time_t time, icaltimezone *zone
time_to_gdate_with_zone
void
GDate *date, time_t time, icaltimezone *zone