![]() |
![]() |
![]() |
Evolution-Data-Server Manual: Calendar Client (libecal) | ![]() |
---|---|---|---|---|
Top | Description | Object Hierarchy | Signals |
ECal; #define E_CAL_SET_MODE_STATUS_ENUM_TYPE #define CAL_MODE_ENUM_TYPE enum ECalSourceType; enum ECalSetModeStatus; enum ECalLoadState; gchar * (*ECalAuthFunc) (ECal *ecal
,const gchar *prompt
,const gchar *key
,gpointer user_data
); GType e_cal_open_status_enum_get_type (void
); GType e_cal_source_type_enum_get_type (void
); GType e_cal_set_mode_status_enum_get_type (void
); GType cal_mode_enum_get_type (void
); ECal * e_cal_new (ESource *source
,ECalSourceType type
); ECal * e_cal_new_from_uri (const gchar *uri
,ECalSourceType type
); ECal * e_cal_new_system_calendar (void
); ECal * e_cal_new_system_tasks (void
); ECal * e_cal_new_system_memos (void
); void e_cal_set_auth_func (ECal *ecal
,ECalAuthFunc func
,gpointer data
); gboolean e_cal_open (ECal *ecal
,gboolean only_if_exists
,GError **error
); void e_cal_open_async (ECal *ecal
,gboolean only_if_exists
); gboolean e_cal_refresh (ECal *ecal
,GError **error
); gboolean e_cal_remove (ECal *ecal
,GError **error
); GList * e_cal_uri_list (ECal *ecal
,CalMode mode
); ECalSourceType e_cal_get_source_type (ECal *ecal
); ECalLoadState e_cal_get_load_state (ECal *ecal
); ESource * e_cal_get_source (ECal *ecal
); const gchar * e_cal_get_uri (ECal *ecal
); gboolean e_cal_is_read_only (ECal *ecal
,gboolean *read_only
,GError **error
); gboolean e_cal_get_cal_address (ECal *ecal
,gchar **cal_address
,GError **error
); gboolean e_cal_get_alarm_email_address (ECal *ecal
,gchar **alarm_address
,GError **error
); gboolean e_cal_get_ldap_attribute (ECal *ecal
,gchar **ldap_attribute
,GError **error
); gboolean e_cal_get_one_alarm_only (ECal *ecal
); gboolean e_cal_get_organizer_must_attend (ECal *ecal
); gboolean e_cal_get_save_schedules (ECal *ecal
); gboolean e_cal_get_static_capability (ECal *ecal
,const gchar *cap
); gboolean e_cal_get_organizer_must_accept (ECal *ecal
); gboolean e_cal_get_refresh_supported (ECal *ecal
); gboolean e_cal_set_mode (ECal *ecal
,CalMode mode
); gboolean e_cal_get_default_object (ECal *ecal
,icalcomponent **icalcomp
,GError **error
); gboolean e_cal_get_object (ECal *ecal
,const gchar *uid
,const gchar *rid
,icalcomponent **icalcomp
,GError **error
); gboolean e_cal_get_objects_for_uid (ECal *ecal
,const gchar *uid
,GList **objects
,GError **error
); gboolean e_cal_get_changes (ECal *ecal
,const gchar *change_id
,GList **changes
,GError **error
); void e_cal_free_change_list (GList *list
); gboolean e_cal_get_object_list (ECal *ecal
,const gchar *query
,GList **objects
,GError **error
); gboolean e_cal_get_object_list_as_comp (ECal *ecal
,const gchar *query
,GList **objects
,GError **error
); void e_cal_free_object_list (GList *objects
); gboolean e_cal_get_free_busy (ECal *ecal
,GList *users
,time_t start
,time_t end
,GList **freebusy
,GError **error
); void e_cal_generate_instances (ECal *ecal
,time_t start
,time_t end
,ECalRecurInstanceFn cb
,gpointer cb_data
); void e_cal_generate_instances_for_object (ECal *ecal
,icalcomponent *icalcomp
,time_t start
,time_t end
,ECalRecurInstanceFn cb
,gpointer cb_data
); GSList * e_cal_get_alarms_in_range (ECal *ecal
,time_t start
,time_t end
); void e_cal_free_alarms (GSList *comp_alarms
); gboolean e_cal_get_alarms_for_object (ECal *ecal
,const ECalComponentId *id
,time_t start
,time_t end
,ECalComponentAlarms **alarms
); gboolean e_cal_create_object (ECal *ecal
,icalcomponent *icalcomp
,gchar **uid
,GError **error
); gboolean e_cal_modify_object (ECal *ecal
,icalcomponent *icalcomp
,CalObjModType mod
,GError **error
); gboolean e_cal_remove_object (ECal *ecal
,const gchar *uid
,GError **error
); gboolean e_cal_remove_object_with_mod (ECal *ecal
,const gchar *uid
,const gchar *rid
,CalObjModType mod
,GError **error
); gboolean e_cal_discard_alarm (ECal *ecal
,ECalComponent *comp
,const gchar *auid
,GError **error
); gboolean e_cal_receive_objects (ECal *ecal
,icalcomponent *icalcomp
,GError **error
); gboolean e_cal_send_objects (ECal *ecal
,icalcomponent *icalcomp
,GList **users
,icalcomponent **modified_icalcomp
,GError **error
); gboolean e_cal_get_timezone (ECal *ecal
,const gchar *tzid
,icaltimezone **zone
,GError **error
); gboolean e_cal_add_timezone (ECal *ecal
,icaltimezone *izone
,GError **error
); gboolean e_cal_set_default_timezone (ECal *ecal
,icaltimezone *zone
,GError **error
); gboolean e_cal_get_query (ECal *ecal
,const gchar *sexp
,ECalView **query
,GError **error
); icaltimezone * e_cal_resolve_tzid_cb (const gchar *tzid
,gpointer data
); gchar * e_cal_get_component_as_string (ECal *ecal
,icalcomponent *icalcomp
); const gchar * e_cal_get_error_message (ECalendarStatus status
); gboolean e_cal_open_default (ECal **ecal
,ECalSourceType type
,ECalAuthFunc func
,gpointer data
,GError **error
); gboolean e_cal_set_default (ECal *ecal
,GError **error
); gboolean e_cal_set_default_source (ESource *source
,ECalSourceType type
,GError **error
); gboolean e_cal_get_sources (ESourceList **sources
,ECalSourceType type
,GError **error
); const gchar * e_cal_get_local_attachment_store (ECal *ecal
); gboolean e_cal_get_recurrences_no_master (ECal *ecal
); gboolean e_cal_get_attachments_for_comp (ECal *ecal
,const gchar *uid
,const gchar *rid
,GSList **list
,GError **error
);
"backend-died" : Run First "backend-error" : Run First "cal-opened" : Run First "cal-set-mode" : Run First
#define E_CAL_SET_MODE_STATUS_ENUM_TYPE (e_cal_set_mode_status_enum_get_type ())
typedef enum { E_CAL_SOURCE_TYPE_EVENT, E_CAL_SOURCE_TYPE_TODO, E_CAL_SOURCE_TYPE_JOURNAL, E_CAL_SOURCE_TYPE_LAST } ECalSourceType;
typedef enum { E_CAL_SET_MODE_SUCCESS, E_CAL_SET_MODE_ERROR, E_CAL_SET_MODE_NOT_SUPPORTED } ECalSetModeStatus;
typedef enum { E_CAL_LOAD_NOT_LOADED, E_CAL_LOAD_AUTHENTICATING, E_CAL_LOAD_LOADING, E_CAL_LOAD_LOADED } ECalLoadState;
gchar * (*ECalAuthFunc) (ECal *ecal
,const gchar *prompt
,const gchar *key
,gpointer user_data
);
|
|
|
|
|
|
|
|
Returns : |
GType e_cal_source_type_enum_get_type (void
);
Registers the ECalSourceTypeEnum type with glib.
Returns : |
the ID of the ECalSourceTypeEnum type. |
GType e_cal_set_mode_status_enum_get_type (void
);
Registers the ECalSetModeStatusEnum type with glib.
Returns : |
the ID of the ECalSetModeStatusEnum type. |
GType cal_mode_enum_get_type (void
);
Registers the CalModeEnum type with glib.
Returns : |
the ID of the CalModeEnum type. |
ECal * e_cal_new (ESource *source
,ECalSourceType type
);
Creates a new calendar client. This does not open the calendar itself, for that, e_cal_open or e_cal_open_async needs to be called.
|
An ESource to be used for the client. |
|
Type of the client. |
Returns : |
A newly-created calendar client, or NULL if the client could not be constructed because it could not contact the calendar server. |
ECal * e_cal_new_from_uri (const gchar *uri
,ECalSourceType type
);
Creates a new calendar client. This does not open the calendar itself, for that, e_cal_open or e_cal_open_async needs to be called.
|
The URI pointing to the calendar to open. |
|
Type of the client. |
Returns : |
A newly-created calendar client, or NULL if the client could not be constructed because it could not contact the calendar server. |
ECal * e_cal_new_system_calendar (void
);
Create a calendar client for the system calendar, which should always be present in all Evolution installations. This does not open the calendar itself, for that, e_cal_open or e_cal_open_async needs to be called.
Returns : |
A newly-created calendar client, or NULL if the client could not be constructed. |
ECal * e_cal_new_system_tasks (void
);
Create a calendar client for the system task list, which should always be present in all Evolution installations. This does not open the tasks list itself, for that, e_cal_open or e_cal_open_async needs to be called.
Returns : |
A newly-created calendar client, or NULL if the client could not be constructed. |
ECal * e_cal_new_system_memos (void
);
Create a calendar client for the system memos, which should always be present in all Evolution installations. This does not open the memos itself, for that, e_cal_open or e_cal_open_async needs to be called.
Returns : |
A newly-created calendar client, or NULL if the client could not be constructed. |
void e_cal_set_auth_func (ECal *ecal
,ECalAuthFunc func
,gpointer data
);
Sets the given authentication function on the calendar client. This function will be called any time the calendar server needs a password for an operation associated with the calendar and should be supplied before any calendar is opened.
When a calendar is opened asynchronously, the open function is processed in a concurrent thread. This means that the authentication function will also be called from this thread. As such, the authentication callback cannot directly call any functions that must be called from the main thread. For example any Gtk+ related functions, which must be proxied synchronously to the main thread by the callback.
The authentication function has the following signature (ECalAuthFunc): gchar * auth_func (ECal *ecal, const gchar *prompt, const gchar *key, gpointer user_data)
|
A calendar client. |
|
The authentication function |
|
User data to be used when calling the authentication function |
gboolean e_cal_open (ECal *ecal
,gboolean only_if_exists
,GError **error
);
Makes a calendar client initiate a request to open a calendar. The calendar client will emit the "cal_opened" signal when the response from the server is received.
|
A calendar client. |
|
FALSE if the calendar should be opened even if there was no storage for it, i.e. to create a new calendar or load an existing one if it already exists. TRUE if it should only try to load calendars that already exist. |
|
Placeholder for error information. |
Returns : |
TRUE on success, FALSE on failure to issue the open request. |
void e_cal_open_async (ECal *ecal
,gboolean only_if_exists
);
Open the calendar asynchronously. The calendar will emit the "cal_opened" signal when the operation has completed.
Because this operation runs in another thread, any authentication
callback set on the calendar will be called from this other thread.
See #e_cal_set_auth_func()
for details.
|
A calendar client. |
|
If TRUE, then only open the calendar if it already exists. If FALSE, then create a new calendar if it doesn't already exist. |
gboolean e_cal_refresh (ECal *ecal
,GError **error
);
Invokes refresh on a calendar. See e_cal_get_refresh_supported
.
|
A calendar client. |
|
Placeholder for error information. |
Returns : |
TRUE if calendar supports refresh and it was invoked, FALSE otherwise. |
Since 2.30
gboolean e_cal_remove (ECal *ecal
,GError **error
);
Removes a calendar.
|
A calendar client. |
|
Placeholder for error information. |
Returns : |
TRUE if the calendar was removed, FALSE if there was an error. |
GList * e_cal_uri_list (ECal *ecal
,CalMode mode
);
Retrieves a list of all calendar clients for the given mode.
|
A calendar client. |
|
Mode of the URIs to get. |
Returns : |
list of uris. |
ECalSourceType e_cal_get_source_type (ECal *ecal
);
Gets the type of the calendar client.
|
A calendar client. |
Returns : |
an ECalSourceType value corresponding to the type of the calendar client. |
ECalLoadState e_cal_get_load_state (ECal *ecal
);
Queries the state of loading of a calendar client.
|
A calendar client. |
Returns : |
A ECalLoadState value indicating whether the client has not been loaded with e_cal_open yet, whether it is being loaded, or whether it is already loaded. |
ESource * e_cal_get_source (ECal *ecal
);
Queries the source that is open in a calendar client.
|
A calendar client. |
Returns : |
The source of the calendar that is already loaded or is being loaded, or NULL if the ecal has not started a load request yet. |
const gchar * e_cal_get_uri (ECal *ecal
);
Queries the URI that is open in a calendar client.
|
A calendar client. |
Returns : |
The URI of the calendar that is already loaded or is being loaded, or NULL if the client has not started a load request yet. |
gboolean e_cal_is_read_only (ECal *ecal
,gboolean *read_only
,GError **error
);
Queries whether the calendar client can perform modifications
on the calendar or not. Whether the backend is read only or not
is specified, on exit, in the read_only
argument.
|
A calendar client. |
|
Return value for read only status. |
|
Placeholder for error information. |
Returns : |
TRUE if the call was successful, FALSE if there was an error. |
gboolean e_cal_get_cal_address (ECal *ecal
,gchar **cal_address
,GError **error
);
Queries the calendar address associated with a calendar client.
|
A calendar client. |
|
Return value for address information. |
|
Placeholder for error information. |
Returns : |
TRUE if the operation was successful, FALSE if there was an error. |
gboolean e_cal_get_alarm_email_address (ECal *ecal
,gchar **alarm_address
,GError **error
);
Queries the address to be used for alarms in a calendar client.
|
A calendar client. |
|
Return value for alarm address. |
|
Placeholder for error information. |
Returns : |
TRUE if the operation was successful, FALSE if there was an error while contacting the backend. |
gboolean e_cal_get_ldap_attribute (ECal *ecal
,gchar **ldap_attribute
,GError **error
);
Queries the LDAP attribute for a calendar client.
|
A calendar client. |
|
Return value for the LDAP attribute. |
|
Placeholder for error information. |
Returns : |
TRUE if the call was successful, FALSE if there was an error contacting the backend. |
gboolean e_cal_get_one_alarm_only (ECal *ecal
);
Checks if a calendar supports only one alarm per component.
|
A calendar client. |
Returns : |
TRUE if the calendar allows only one alarm, FALSE otherwise. |
gboolean e_cal_get_organizer_must_attend (ECal *ecal
);
Checks if a calendar forces organizers of meetings to be also attendees.
|
A calendar client. |
Returns : |
TRUE if the calendar forces organizers to attend meetings, FALSE otherwise. |
gboolean e_cal_get_save_schedules (ECal *ecal
);
Checks whether the calendar saves schedules.
|
A calendar client. |
Returns : |
TRUE if it saves schedules, FALSE otherwise. |
gboolean e_cal_get_static_capability (ECal *ecal
,const gchar *cap
);
Queries the calendar for static capabilities.
|
A calendar client. |
|
Name of the static capability to check. |
Returns : |
TRUE if the capability is supported, FALSE otherwise. |
gboolean e_cal_get_organizer_must_accept (ECal *ecal
);
Checks whether a calendar requires organizer to accept their attendance to meetings.
|
A calendar client. |
Returns : |
TRUE if the calendar requires organizers to accept, FALSE otherwise. |
gboolean e_cal_get_refresh_supported (ECal *ecal
);
Checks whether a calendar supports explicit refreshing (see e_cal_refresh
).
|
A calendar client. |
Returns : |
TRUE if the calendar supports refreshing, FALSE otherwise. |
Since 2.30
gboolean e_cal_set_mode (ECal *ecal
,CalMode mode
);
Switches online/offline mode on the calendar.
|
A calendar client. |
|
Mode to switch to. |
Returns : |
TRUE if the switch was successful, FALSE if there was an error. |
gboolean e_cal_get_default_object (ECal *ecal
,icalcomponent **icalcomp
,GError **error
);
Retrives an icalcomponent from the backend that contains the default values for properties needed.
|
A calendar client. |
|
Return value for the default object. |
|
Placeholder for error information. |
Returns : |
TRUE if the call was successful, FALSE otherwise. |
gboolean e_cal_get_object (ECal *ecal
,const gchar *uid
,const gchar *rid
,icalcomponent **icalcomp
,GError **error
);
Queries a calendar for a calendar component object based on its unique identifier.
|
A calendar client. |
|
Unique identifier for a calendar component. |
|
Recurrence identifier. |
|
Return value for the calendar component object. |
|
Placeholder for error information. |
Returns : |
TRUE if the call was successful, FALSE otherwise. |
gboolean e_cal_get_objects_for_uid (ECal *ecal
,const gchar *uid
,GList **objects
,GError **error
);
Queries a calendar for all calendar components with the given unique ID. This will return any recurring event and all its detached recurrences. For non-recurring events, it will just return the object with that ID.
|
A calendar client. |
|
Unique identifier for a calendar component. |
|
Return value for the list of objects obtained from the backend. |
|
Placeholder for error information. |
Returns : |
TRUE if the call was successful, FALSE otherwise. |
gboolean e_cal_get_changes (ECal *ecal
,const gchar *change_id
,GList **changes
,GError **error
);
Returns a list of changes made to the calendar since a specific time. That time
is identified by the change_id
argument, which is used by the backend to
compute the changes done.
|
A calendar client. |
|
ID to use for comparing changes. |
|
Return value for the list of changes. |
|
Placeholder for error information. |
Returns : |
TRUE if the call was successful, FALSE otherwise. |
void e_cal_free_change_list (GList *list
);
Free a list of changes as returned by e_cal_get_changes.
|
List of changes to be freed. |
gboolean e_cal_get_object_list (ECal *ecal
,const gchar *query
,GList **objects
,GError **error
);
Gets a list of objects from the calendar that match the query specified
by the query
argument. The objects will be returned in the objects
argument, which is a list of icalcomponent. When done, this list
should be freed by using the e_cal_free_object_list function.
|
A calendar client. |
|
Query string. |
|
Return value for list of objects. |
|
Placeholder for error information. |
Returns : |
TRUE if the operation was successful, FALSE otherwise. |
gboolean e_cal_get_object_list_as_comp (ECal *ecal
,const gchar *query
,GList **objects
,GError **error
);
Gets a list of objects from the calendar that match the query specified
by the query
argument. The objects will be returned in the objects
argument, which is a list of ECalComponent.
|
A calendar client. |
|
Query string. |
|
Return value for list of objects. |
|
Placeholder for error information. |
Returns : |
TRUE if the operation was successful, FALSE otherwise. |
void e_cal_free_object_list (GList *objects
);
Frees a list of objects as returned by e_cal_get_object_list.
|
List of objects to be freed. |
gboolean e_cal_get_free_busy (ECal *ecal
,GList *users
,time_t start
,time_t end
,GList **freebusy
,GError **error
);
Gets free/busy information from the calendar server.
|
A calendar client. |
|
List of users to retrieve free/busy information for. |
|
Start time for query. |
|
End time for query. |
|
Return value for VFREEBUSY objects. |
|
Placeholder for error information. |
Returns : |
TRUE if the operation was successful, FALSE otherwise. |
void e_cal_generate_instances (ECal *ecal
,time_t start
,time_t end
,ECalRecurInstanceFn cb
,gpointer cb_data
);
Does a combination of #e_cal_get_object_list()
and
#e_cal_recur_generate_instances()
.
The callback function should do a g_object_ref()
of the calendar component
it gets passed if it intends to keep it around, since it will be unref'ed
as soon as the callback returns.
|
A calendar client. |
|
Start time for query. |
|
End time for query. |
|
Callback for each generated instance. |
|
Closure data for the callback. |
void e_cal_generate_instances_for_object (ECal *ecal
,icalcomponent *icalcomp
,time_t start
,time_t end
,ECalRecurInstanceFn cb
,gpointer cb_data
);
Does a combination of #e_cal_get_object_list()
and
#e_cal_recur_generate_instances()
, like #e_cal_generate_instances()
, but
for a single object.
The callback function should do a g_object_ref()
of the calendar component
it gets passed if it intends to keep it around, since it will be unref'ed
as soon as the callback returns.
|
A calendar client. |
|
Object to generate instances from. |
|
Start time for query. |
|
End time for query. |
|
Callback for each generated instance. |
|
Closure data for the callback. |
GSList * e_cal_get_alarms_in_range (ECal *ecal
,time_t start
,time_t end
);
Queries a calendar for the alarms that trigger in the specified range of time.
|
A calendar client. |
|
Start time for query. |
|
End time for query. |
Returns : |
A list of ECalComponentAlarms structures. This should be freed
using the #e_cal_free_alarms() function, or by freeing each element
separately with #e_cal_component_alarms_free() and then freeing the list with
#g_slist_free() .
|
void e_cal_free_alarms (GSList *comp_alarms
);
Frees a list of ECalComponentAlarms structures as returned by
e_cal_get_alarms_in_range()
.
|
A list of ECalComponentAlarms structures. |
gboolean e_cal_get_alarms_for_object (ECal *ecal
,const ECalComponentId *id
,time_t start
,time_t end
,ECalComponentAlarms **alarms
);
Queries a calendar for the alarms of a particular object that trigger in the specified range of time.
|
A calendar client. |
|
Unique identifier for a calendar component. |
|
Start time for query. |
|
End time for query. |
|
Return value for the component's alarm instances. Will return NULL
if no instances occur within the specified time range. This should be freed
using the e_cal_component_alarms_free() function.
|
Returns : |
TRUE on success, FALSE if the object was not found. |
gboolean e_cal_create_object (ECal *ecal
,icalcomponent *icalcomp
,gchar **uid
,GError **error
);
Requests the calendar backend to create the object specified by the icalcomp
argument. Some backends would assign a specific UID to the newly created object,
in those cases that UID would be returned in the uid
argument.
|
A calendar client. |
|
The component to create. |
|
Return value for the UID assigned to the new component by the calendar backend. |
|
Placeholder for error information. |
Returns : |
TRUE if the operation was successful, FALSE otherwise. |
gboolean e_cal_modify_object (ECal *ecal
,icalcomponent *icalcomp
,CalObjModType mod
,GError **error
);
Requests the calendar backend to modify an existing object. If the object does not exist on the calendar, an error will be returned.
For recurrent appointments, the mod
argument specifies what to modify,
if all instances (CALOBJ_MOD_ALL), a single instance (CALOBJ_MOD_THIS),
or a specific set of instances (CALOBJ_MOD_THISNADPRIOR and
CALOBJ_MOD_THISANDFUTURE).
|
A calendar client. |
|
Component to modify. |
|
Type of modification. |
|
Placeholder for error information. |
Returns : |
TRUE if the operation was successful, FALSE otherwise. |
gboolean e_cal_remove_object (ECal *ecal
,const gchar *uid
,GError **error
);
Asks a calendar to remove a component. If the server is able to remove the component, all clients will be notified and they will emit the "obj_removed" signal.
|
A calendar client. |
|
Unique identifier of the calendar component to remove. |
|
Placeholder for error information. |
Returns : |
TRUE if successful, FALSE otherwise.
|
gboolean e_cal_remove_object_with_mod (ECal *ecal
,const gchar *uid
,const gchar *rid
,CalObjModType mod
,GError **error
);
This function allows the removal of instances of a recurrent
appointment. By using a combination of the uid
, rid
and mod
arguments, you can remove specific instances. If what you want
is to remove all instances, use e_cal_remove_object instead.
If not all instances are removed, the client will get a "obj_modified" signal, while it will get a "obj_removed" signal when all instances are removed.
|
A calendar client. |
|
UID og the object to remove. |
|
Recurrence ID of the specific recurrence to remove. |
|
Type of removal. |
|
Placeholder for error information. |
Returns : |
TRUE if the operation was successful, FALSE otherwise. |
gboolean e_cal_discard_alarm (ECal *ecal
,ECalComponent *comp
,const gchar *auid
,GError **error
);
Tells the calendar backend to get rid of the alarm identified by the
auid
argument in comp
. Some backends might remove the alarm or
update internal information about the alarm be discarded, or, like
the file backend does, ignore the operation.
|
A calendar ecal. |
|
The component to discard the alarm from. |
|
Unique identifier of the alarm to be discarded. |
|
Placeholder for error information. |
Returns : |
TRUE if the operation was successful, FALSE otherwise. |
gboolean e_cal_receive_objects (ECal *ecal
,icalcomponent *icalcomp
,GError **error
);
Makes the backend receive the set of iCalendar objects specified in the
icalcomp
argument. This is used for iTIP confirmation/cancellation
messages for scheduled meetings.
|
A calendar client. |
|
An icalcomponent. |
|
Placeholder for error information. |
Returns : |
TRUE if successful, FALSE otherwise.
|
gboolean e_cal_send_objects (ECal *ecal
,icalcomponent *icalcomp
,GList **users
,icalcomponent **modified_icalcomp
,GError **error
);
Requests a calendar backend to send meeting information to the specified list of users.
|
A calendar client. |
|
An icalcomponent. |
|
List of users to send the objects to. |
|
Return value for the icalcomponent after all the operations performed. |
|
Placeholder for error information. |
Returns : |
TRUE if the operation was successful, FALSE otherwise. |
gboolean e_cal_get_timezone (ECal *ecal
,const gchar *tzid
,icaltimezone **zone
,GError **error
);
Retrieves a timezone object from the calendar backend.
|
A calendar client. |
|
ID of the timezone to retrieve. |
|
Return value for the timezone. |
|
Placeholder for error information. |
Returns : |
TRUE if the operation was successful, FALSE otherwise. |
gboolean e_cal_add_timezone (ECal *ecal
,icaltimezone *izone
,GError **error
);
Add a VTIMEZONE object to the given calendar.
|
A calendar client. |
|
The timezone to add. |
|
Placeholder for error information. |
Returns : |
TRUE if successful, FALSE otherwise. |
gboolean e_cal_set_default_timezone (ECal *ecal
,icaltimezone *zone
,GError **error
);
Sets the default timezone on the calendar. This should be called before opening the calendar.
|
A calendar client. |
|
A timezone object. |
|
Placeholder for error information. |
Returns : |
TRUE if the operation was successful, FALSE otherwise. |
gboolean e_cal_get_query (ECal *ecal
,const gchar *sexp
,ECalView **query
,GError **error
);
Creates a live query object from a loaded calendar.
|
A calendar client. |
|
S-expression representing the query. |
|
Return value for the new query. |
|
Placeholder for error information. |
Returns : |
A query object that will emit notification signals as calendar components are added and removed from the query in the server. |
icaltimezone * e_cal_resolve_tzid_cb (const gchar *tzid
,gpointer data
);
Resolves TZIDs for the recurrence generator.
|
ID of the timezone to resolve. |
|
Closure data for the callback. |
Returns : |
The timezone identified by the tzid argument, or NULL if
it could not be found.
|
gchar * e_cal_get_component_as_string (ECal *ecal
,icalcomponent *icalcomp
);
Gets a calendar component as an iCalendar string, with a toplevel VCALENDAR component and all VTIMEZONEs needed for the component.
|
A calendar client. |
|
A calendar component object. |
Returns : |
the component as a complete iCalendar string, or NULL on failure. The string should be freed after use. |
const gchar * e_cal_get_error_message (ECalendarStatus status
);
Gets an error message for the given status code.
|
A status code. |
Returns : |
the error message. |
gboolean e_cal_open_default (ECal **ecal
,ECalSourceType type
,ECalAuthFunc func
,gpointer data
,GError **error
);
Opens the default calendar.
|
A calendar client. |
|
Type of the calendar. |
|
Authentication function. |
|
Closure data for the authentication function. |
|
Placeholder for error information. |
Returns : |
TRUE if it opened correctly, FALSE otherwise. |
gboolean e_cal_set_default (ECal *ecal
,GError **error
);
Sets a calendar as the default one.
|
A calendar client. |
|
Placeholder for error information. |
Returns : |
TRUE if the operation was successful, FALSE otherwise. |
gboolean e_cal_set_default_source (ESource *source
,ECalSourceType type
,GError **error
);
Sets the default source for the specified type
.
|
An ESource. |
|
Type of the source. |
|
Placeholder for error information. |
Returns : |
TRUE if the operation was successful, FALSE otherwise. |
gboolean e_cal_get_sources (ESourceList **sources
,ECalSourceType type
,GError **error
);
Gets the list of sources defined in the configuration for the given type
.
|
Return value for list of sources. |
|
Type of the sources to get. |
|
Placeholder for error information. |
Returns : |
TRUE if the operation was successful, FALSE otherwise. |
const gchar * e_cal_get_local_attachment_store (ECal *ecal
);
Queries the URL where the calendar attachments are serialized in the local filesystem. This enable clients to operate with the reference to attachments rather than the data itself unless it specifically uses the attachments for open/sending operations.
|
A calendar client. |
Returns : |
The URL where the attachments are serialized in the local filesystem. |
gboolean e_cal_get_recurrences_no_master (ECal *ecal
);
Checks if the calendar has a master object for recurrences.
|
A calendar client. |
Returns : |
TRUE if the calendar has a master object for recurrences, FALSE otherwise. |
gboolean e_cal_get_attachments_for_comp (ECal *ecal
,const gchar *uid
,const gchar *rid
,GSList **list
,GError **error
);
Queries a calendar for a calendar component object based on its unique identifier and gets the attachments for the component.
|
A calendar client. |
|
Unique identifier for a calendar component. |
|
Recurrence identifier. |
|
Return the list of attachment uris. |
|
Placeholder for error information. |
Returns : |
TRUE if the call was successful, FALSE otherwise. |
"backend-died"
signalvoid user_function (ECal *ecal, gpointer user_data) : Run First
|
the object which received the signal. |
|
user data set when the signal handler was connected. |
"backend-error"
signalvoid user_function (ECal *ecal, gchar *arg1, gpointer user_data) : Run First
|
the object which received the signal. |
|
|
|
user data set when the signal handler was connected. |
"cal-opened"
signalvoid user_function (ECal *ecal, gint arg1, gpointer user_data) : Run First
|
the object which received the signal. |
|
|
|
user data set when the signal handler was connected. |
"cal-set-mode"
signalvoid user_function (ECal *ecal, ECalSetModeStatusEnum arg1, CalModeEnum arg2, gpointer user_data) : Run First
|
the object which received the signal. |
|
|
|
|
|
user data set when the signal handler was connected. |