Calls the add_timezone_sync method on the given backend.
An EDataCal object.
a #GCancellable for the operation
VTIMEZONE object to be added.
Adds a copy of zone
to cache
and emits an
#ETimezoneCache::timezone-added signal. The cache
will use the TZID
string returned by i_cal_timezone_get_tzid() as the lookup key, which can
be passed to e_timezone_cache_get_timezone() to obtain zone
again.
If the cache
already has an #ICalTimezone with the same TZID string
as zone,
the cache
will remain unchanged to avoid invalidating any
#ICalTimezone pointers which may have already been returned through
e_timezone_cache_get_timezone().
Asynchronously adds the timezone described by tzobject
to backend
.
When the operation is finished, callback
will be called. You can
then call e_cal_backend_add_timezone_finish() to get the result of
the operation.
an iCalendar VTIMEZONE string
optional #GCancellable object, or %NULL
a #GAsyncReadyCallback to call when the request is satisfied
Finishes the operation started with e_cal_backend_add_timezone().
If an error occurred, the function will set error
and return %FALSE.
a #GAsyncResult
Adds the timezone described by tzobject
to backend
.
If an error occurs, the function will set error
and return %FALSE.
an iCalendar VTIMEZONE string
optional #GCancellable object, or %NULL
Adds a view to the list of live views being run by the given backend. Doing so means that any listener on the view will get notified of any change that affect the live view.
An #EDataCalView object.
Creates a binding between source_property
on source
and target_property
on target
.
Whenever the source_property
is changed the target_property
is
updated using the same value. For instance:
g_object_bind_property (action, "active", widget, "sensitive", 0);
Will result in the "sensitive" property of the widget #GObject instance to be updated with the same value of the "active" property of the action #GObject instance.
If flags
contains %G_BINDING_BIDIRECTIONAL then the binding will be mutual:
if target_property
on target
changes then the source_property
on source
will be updated as well.
The binding will automatically be removed when either the source
or the
target
instances are finalized. To remove the binding without affecting the
source
and the target
you can just call g_object_unref() on the returned
#GBinding instance.
Removing the binding by calling g_object_unref() on it must only be done if
the binding, source
and target
are only used from a single thread and it
is clear that both source
and target
outlive the binding. Especially it
is not safe to rely on this if the binding, source
or target
can be
finalized from different threads. Keep another reference to the binding and
use g_binding_unbind() instead to be on the safe side.
A #GObject can have multiple bindings.
the property on source
to bind
the target #GObject
the property on target
to bind
flags to pass to #GBinding
Creates a binding between source_property
on source
and target_property
on target,
allowing you to set the transformation functions to be used by
the binding.
This function is the language bindings friendly version of g_object_bind_property_full(), using #GClosures instead of function pointers.
the property on source
to bind
the target #GObject
the property on target
to bind
flags to pass to #GBinding
a #GClosure wrapping the transformation function from the source
to the target,
or %NULL to use the default
a #GClosure wrapping the transformation function from the target
to the source,
or %NULL to use the default
Calls the create_objects_sync method on the given backend.
An EDataCal object.
a #GCancellable for the operation
The objects to be added.
bit-or of #ECalOperationFlags
Asynchronously creates one or more new iCalendar objects from calobjs
.
When the operation is finished, callback
will be called. You can then
call e_cal_backend_create_objects_finish() to get the result of the
operation.
a %NULL-terminated array of iCalendar strings
bit-or of #ECalOperationFlags
optional #GCancellable object, or %NULL
a #GAsyncReadyCallback to call when the request is satisifed
Finishes the operation started with e_cal_backend_create_objects().
A unique ID string for each newly-created object is deposited in out_uids
.
Free the returned ID strings with g_free() when finished with them.
If an error occurred, the function will set error
and return %FALSE.
a #GAsyncResult
a #GQueue in which to deposit results
Creates one or more new iCalendar objects from calobjs,
and deposits
the unique ID string for each newly-created object in out_uids
.
Free the returned ID strings with g_free() when finished with them.
If an error occurs, the function will set error
and return %FALSE.
a %NULL-terminated array of iCalendar strings
bit-or of #ECalOperationFlags
a #GQueue in which to deposit results
optional #GCancellable object, or %NULL
Asynchronously calls the e_backend_credentials_required_sync() on the backend,
to inform clients that credentials are required.
When the operation is finished, callback
will be called. You can then
call e_backend_credentials_required_finish() to get the result of the operation.
an #ESourceCredentialsReason, why the credentials are required
PEM-encoded secure connection certificate, or an empty string
a bit-or of #GTlsCertificateFlags for secure connection certificate
a #GError with a description of the previous credentials error, or %NULL
optional #GCancellable object, or %NULL
a #GAsyncReadyCallback to call when the request is satisfied
Finishes the operation started with e_backend_credentials_required().
If an error occurs, the function sets error
and returns %FALSE.
a #GAsyncResult
Synchronously lets the clients know that the backned requires credentials to be properly opened. It's a proxy function for e_source_invoke_credentials_required_sync(), where can be found more information about actual parameters meaning.
The provided credentials are received through #EBackendClass.authenticate_sync() method asynchronously.
If an error occurs, the function sets error
and returns %FALSE.
an #ESourceCredentialsReason, why the credentials are required
PEM-encoded secure connection certificate, or an empty string
a bit-or of #GTlsCertificateFlags for secure connection certificate
a #GError with a description of the previous credentials error, or %NULL
optional #GCancellable object, or %NULL
Calls the discard_alarm_sync method on the given backend.
An EDataCal object.
a #GCancellable for the operation
Unique id of the calendar object.
Recurrence id of the calendar object.
Alarm ID to remove.
bit-or of #ECalOperationFlags
Asynchronously discards the VALARM object with a unique ID of alarm_uid
from the iCalendar object identified by uid
and, optionally, rid
.
When the operation is finished, callback
will be called. You can
then call e_cal_backend_discard_alarm_finish() to get the result of
the operation.
a unique ID for an iCalendar object
a recurrence ID, or %NULL
a unique ID for an iCalendar VALARM object
bit-or of #ECalOperationFlags
optional #GCancellable object, or %NULL
a #GAsyncReadyCallback to call when the request is satisfied
Finishes the operation started with e_cal_backend_discard_alarm().
If an error occurred, the function will set error
and return %FALSE.
a #GAsyncResult
Discards the VALARM object with a unique ID of alarm_uid
from the
iCalendar object identified by uid
and, optionally, rid
.
If an error occurs, the function will set error
and return %FALSE.
a unique ID for an iCalendar object
a recurrence ID, or %NULL
a unique ID for an iCalendar VALARM object
bit-or of #ECalOperationFlags
optional #GCancellable object, or %NULL
Thread-safe variation of e_cal_backend_get_cache_dir().
Use this function when accessing backend
from multiple threads.
The returned string should be freed with g_free() when no longer needed.
Makes sure that the "online" property is updated, that is, if there is any destination reachability test pending, it'll be done immediately and the only state will be updated as well.
optional #GCancellable object, or %NULL
Makes sure that the associated ESource::connection-status is connected. This is useful in cases when the backend can connect to the destination without invoking #EBackendClass.authenticate_sync(), possibly through e_backend_schedule_authenticate().
This function is intended for #GObject implementations to re-enforce a [floating][floating-ref] object reference. Doing this is seldom required: all #GInitiallyUnowneds are created with a floating reference which usually just needs to be sunken by calling g_object_ref_sink().
Calls func
for each existing view (as returned by e_cal_backend_list_views()).
The func
can return %FALSE to stop early.
Notifies each view of the backend
about progress. When only_completed_views
is %TRUE, notifies only completed views.
whether notify in completed views only
percent complete
message describing the operation in progress, or %NULL
Increases the freeze count on object
. If the freeze count is
non-zero, the emission of "notify" signals on object
is
stopped. The signals are queued until the freeze count is decreased
to zero. Duplicate notifications are squashed so that at most one
#GObject::notify signal is emitted for each property modified while the
object is frozen.
This is necessary for accessors that modify multiple properties to prevent premature notification while the object is still being modified.
Calls the get_attachment_uris_sync method on the given backend.
An EDataCal object.
a #GCancellable for the operation
Unique id of the calendar object.
Recurrence id of the calendar object.
Placeholder for list of returned attachment uris.
Asynchronously inspects the iCalendar object specified by uid
and,
optionally, rid
for attachments.
When the operation is finished, callback
will be called. You can then
call e_cal_backend_get_attachment_uris_finish() to get the result of the
operation.
a unique ID for an iCalendar object
a recurrence ID, or %NULL
optional #GCancellable object, or %NULL
a #GAsyncReadyCallback to call when the request is satisfied
Finishes the operation started with e_cal_backend_get_attachment_uris().
The requested attachment URI strings are deposited in out_attachment_uris
.
Free the returned strings with g_free() when finished with them.
If an error occurred, the function will set error
and return %FALSE.
Note that an empty result set does not necessarily imply an error.
a #GAsyncResult
a #GQueue in which to deposit results
Inspects the iCalendar object specified by uid
and, optionally, rid
for attachments and deposits a URI string for each attachment in
out_attachment_uris
. Free the returned strings with g_free() when
finished with them.
If an error occurs, the function will set error
and return %FALSE.
Note that an empty result set does not necessarily imply an error.
a unique ID for an iCalendar object
a recurrence ID, or %NULL
a #GQueue in which to deposit results
optional #GCancellable object, or %NULL
Obtains the value of the backend property named prop_name
.
Freed the returned string with g_free() when finished with it.
a backend property name
Returns the cache directory path used by backend
.
Gets a named field from the objects table of associations (see g_object_set_data()).
name of the key for that association
Provides destination server host name and port to which
the backend connects. This is used to determine required
connection point for e_backend_is_destination_reachable().
The host
is a newly allocated string, which will be freed
with g_free(). When backend
sets both host
and port,
then
it should return %TRUE, indicating it's a remote backend.
Default implementation returns %FALSE, which is treated
like the backend is local, no checking for server reachability
is possible.
Calls the get_free_busy_sync method on the given backend.
An EDataCal object.
a #GCancellable for the operation
List of users to get F/B info from.
Time range start.
Time range end.
Asynchronously obtains a free/busy object for the list of users
in the
time interval between start
and end
.
When the operation is finished, callback
will be called. You can
then call e_cal_backend_get_free_busy_finish() to get the result of
the operation.
start time
end time
a %NULL-terminated array of user strings
optional #GCancellable object, or %NULL
a #GAsyncReadyCallback to call when the request is satisfied
Finishes the operation started with e_cal_backend_get_free_busy().
The free/busy results can be returned through the e_data_cal_report_free_busy_data() function asynchronously. The out_freebusy will contain all the returned data, possibly again, thus the client is responsible for the data merge, if needed.
If an error occurred, the function will set error
and return %FALSE.
a #GAsyncResult
iCalendar strings with overall returned Free/Busy data
Obtains a free/busy object for the list of users
in the time interval
between start
and end
.
The free/busy results can be returned through the e_data_cal_report_free_busy_data() function asynchronously. The out_freebusy will contain all the returned data, possibly again, thus the client is responsible for the data merge, if needed.
If an error occurs, the function will set error
and return %FALSE.
start time
end time
a %NULL-terminated array of user strings
iCalendar strings with overall returned Free/Busy data
optional #GCancellable object, or %NULL
Gets the kind of components the given backend stores.
Calls the get_object_sync method on the given backend.
An EDataCal object.
a #GCancellable for the operation
UID of the object to get.
Recurrence ID of the specific instance to get, or %NULL if getting the master object.
Asynchronously obtains an #ECalComponent by its uid
and, optionally, rid
.
When the operation is finished, callback
will be called. You can then
call e_cal_backend_get_object_finish() to get the result of the operation.
a unique ID for an iCalendar object
a recurrence ID, or %NULL
optional #GCancellable object, or %NULL
a #GAsyncReadyCallback to call when the request is satisfied
Finishes the operation started with e_cal_backend_get_object().
The returned string is an iCalendar object describing either single component or a vCalendar object, which includes also detached instances. It should be freed when no longer needed.
If an error occurs, the function will set error
and return %NULL.
a #GAsyncResult
Calls the get_object_list_sync method on the given backend.
An EDataCal object.
a #GCancellable for the operation
Search query.
Asynchronously obtains a set of iCalendar instances which satisfy
the criteria specified in query
.
When the operation in finished, callback
will be called. You can then
call e_cal_backend_get_object_list_finish() to get the result of the
operation.
a search query in S-expression format
optional #GCancellable object, or %NULL
a #GAsyncReadyCallback to call when the request is satisfied
Finishes the operation started with e_cal_backend_get_object_list().
The matching iCalendar instances are deposited in out_objects
.
The returned instances should be freed with g_free() when finished with them.
If an error occurred, the function will set error
and return %FALSE.
Note that an empty result set does not necessarily imply an error.
a #GAsyncResult
a #GQueue in which to deposit results
Obtains a set of iCalendar string instances which satisfy the criteria
specified in query,
and deposits them in out_objects
.
The returned instances should be freed with g_free() when finished with them.
If an error occurs, the function will set error
and return %FALSE.
Note that an empty result set does not necessarily imply an error.
a search query in S-expression format
a #GQueue in which to deposit results
optional #GCancellable object, or %NULL
Obtains an iCalendar string for an object identified by its uid
and,
optionally, rid
.
The returned string should be freed with g_free() when finished with it.
If an error occurs, the function will set error
and return %NULL.
a unique ID for an iCalendar object
a recurrence ID, or %NULL
optional #GCancellable object, or %NULL
Returns the online state of backend:
%TRUE if backend
is online,
%FALSE if offline.
If the #EBackend:connectable property is non-%NULL, the backend
will
automatically determine whether the network service should be reachable,
and hence whether the backend
is #EBackend:online. But subclasses may
override the online state if, for example, a connection attempt fails.
Gets a property of an object.
The value
can be:
In general, a copy is made of the property contents and the caller is responsible for freeing the memory by calling g_value_unset().
Note that g_object_get_property() is really intended for language bindings, g_object_get() is much more convenient for C programming.
the name of the property to get
return location for the property value
This function gets back user data pointers stored via g_object_set_qdata().
A #GQuark, naming the user data pointer
Returns the data source registry to which #EBackend:source belongs.
Returns the #ESource to which backend
is paired.
Calls the get_timezone_sync method on the given backend. This method is not mandatory on the backend, because here is used internal_get_timezone call to fetch timezone from it and that is transformed to a string. In other words, any object deriving from ECalBackendSync can implement only internal_get_timezone and can skip implementation of get_timezone_sync completely.
An EDataCal object.
a #GCancellable for the operation
ID of the timezone to retrieve.
Placeholder for the returned timezone.
Obtains an #ICalTimezone by its TZID string. If no match is found,
the function returns %NULL. The returned #ICalTimezone is owned by
the cache
and should not be modified or freed.
the TZID of a timezone
Asynchronously obtains the VTIMEZONE object identified by tzid
.
When the operation is finished, callback
will be called. You can
then call e_cal_backend_get_timezone_finish() to get the result of
the operation.
a unique ID for an iCalendar VTIMEZONE object
optional #GCancellable object, or %NULL
a #GAsyncReadyCallback to call when the request is satisfied
Finishes the operation started with e_cal_backend_get_timezone().
Free the returned string with g_free() when finished with it.
If an error occurred, the function will set error
and return %NULL.
a #GAsyncResult
Obtains the VTIMEZONE object identified by tzid
. Free the returned
string with g_free() when finished with it.
If an error occurs, the function will set error
and return %NULL.
a unique ID for an iCalendar VTIMEZONE object
optional #GCancellable object, or %NULL
Gets an instance of #EUserPrompter, associated with this backend
.
The returned instance is owned by the backend
.
Returns whether backend
will accept changes to its data content.
Gets n_properties
properties for an object
.
Obtained properties will be set to values
. All properties must be valid.
Warnings will be emitted and undefined behaviour may result if invalid
properties are passed in.
the names of each property to get
the values of each property to get
Checks whether the backend<
!-- -->'s destination server, as returned
by e_backend_get_destination_address(), is reachable.
If the e_backend_get_destination_address() returns %FALSE, this function
returns %TRUE, meaning the destination is always reachable.
This uses #GNetworkMonitor's g_network_monitor_can_reach()
for reachability tests.
a #GCancellable instance, or %NULL
Checks whether object
has a [floating][floating-ref] reference.
Checks if backend'
s storage has been opened (and
authenticated, if necessary) and the backend itself
is ready for accessing. This property is changed automatically
after the backend
is successfully opened.
Returns a list of #ICalTimezone instances that were explicitly added to
the cache
through e_timezone_cache_add_timezone(). In particular, any
built-in time zone data that e_timezone_cache_get_timezone() may use to
match a TZID string is excluded from the returned list.
Free the returned list with g_list_free(). The list elements are owned
by the cache
and should not be modified or freed.
Returns a list of #EDataCalView instances added with e_cal_backend_add_view().
The views returned in the list are referenced for thread-safety. They must each be unreferenced with g_object_unref() when finished with them. Free the returned list itself with g_list_free().
An easy way to free the list properly in one step is as follows:
|[ g_list_free_full (list, g_object_unref);
Calls the modify_objects_sync method on the given backend.
An EDataCal object.
a #GCancellable for the operation
Objects to be modified.
Type of modification to be done.
bit-or of #ECalOperationFlags
Asynchronously modifies one or more iCalendar objects according to
calobjs
and mod
.
When the operation is finished, callback
will be called. You can then
call e_cal_backend_modify_objects_finish() to get the result of the
operation.
a %NULL-terminated array of iCalendar strings
modification type for recurrences
bit-or of #ECalOperationFlags
optional #GCancellable object, or %NULL
a #GAsyncReadyCallback to call when the request is satisfied
Finishes the operation started with e_cal_backend_modify_objects().
If an error occurred, the function will set error
and return %FALSE.
a #GAsyncResult
Modifies one or more iCalendar objects according to calobjs
and mod
.
If an error occurs, the function will set error
and return %FALSE.
a %NULL-terminated array of iCalendar strings
modification type for recurrences
bit-or of #ECalOperationFlags
optional #GCancellable object, or %NULL
Emits a "notify" signal for the property property_name
on object
.
When possible, eg. when signaling a property change from within the class that registered the property, you should use g_object_notify_by_pspec() instead.
Note that emission of the notify signal may be blocked with g_object_freeze_notify(). In this case, the signal emissions are queued and will be emitted (in reverse order) when g_object_thaw_notify() is called.
the name of a property installed on the class of object
.
Emits a "notify" signal for the property specified by pspec
on object
.
This function omits the property name lookup, hence it is faster than g_object_notify().
One way to avoid using g_object_notify() from within the class that registered the properties, and using g_object_notify_by_pspec() instead, is to store the GParamSpec used with g_object_class_install_property() inside a static array, e.g.:
enum
{
PROP_0,
PROP_FOO,
PROP_LAST
};
static GParamSpec *properties[PROP_LAST];
static void
my_object_class_init (MyObjectClass *klass)
{
properties[PROP_FOO] = g_param_spec_int ("foo", "Foo", "The foo",
0, 100,
50,
G_PARAM_READWRITE);
g_object_class_install_property (gobject_class,
PROP_FOO,
properties[PROP_FOO]);
}
and then notify a change on the "foo" property with:
g_object_notify_by_pspec (self, properties[PROP_FOO]);
the #GParamSpec of a property installed on the class of object
.
Notifies each of the backend's listeners about a modified object.
Uses the #EDataCalView's fields-of-interest to filter out unwanted information from ical strings sent over the bus.
the #ECalComponent before the modification
the #ECalComponent after the modification
Notifies each of the backend's listeners about a removed object.
Uses the #EDataCalView's fields-of-interest to filter out unwanted information from ical strings sent over the bus.
the Id of the removed object
the removed component
the component after the removal. This only applies to recurrent appointments that had an instance removed. In that case, this function notifies a modification instead of a removal.
Notifies each of the backend's listeners about an error
Error message
Notifies client about property value change.
property name, which changed
new property value
Calls the open_sync method on the given backend.
An EDataCal object.
a #GCancellable for the operation or just create it when it does not exist.
Asynchronously "opens" the backend
. Opening a backend is something of
an outdated concept, but the operation is hanging around for a little
while longer. This usually involves some custom initialization logic,
and testing of remote authentication if applicable.
When the operation is finished, callback
will be called. You can then
call e_cal_backend_open_finish() to get the result of the operation.
optional #GCancellable object, or %NULL
a #GAsyncReadyCallback to call when the request is satisfied
Finishes the operation started with e_cal_backend_open().
If an error occurred, the function will set error
and return %FALSE.
a #GAsyncResult
"Opens" the backend
. Opening a backend is something of an outdated
concept, but the operation is hanging around for a little while longer.
This usually involves some custom initialization logic, and testing of
remote authentication if applicable.
If an error occurs, the function will set error
and return %FALSE.
optional #GCancellable object, or %NULL
Obtains the #GSimpleAsyncResult for opid
and sets result_queue
as a
place to deposit results prior to completing the #GSimpleAsyncResult.
an operation ID given to #EDataCal
return location for a #GQueue, or %NULL
Let's the backend
know that it'll be shut down shortly, no client connects
to it anymore. The backend
can free any resources which reference it, for
example the opened views.
Calls the receive_objects_sync method on the given backend.
An EDataCal object.
a #GCancellable for the operation
iCalendar object to receive.
bit-or of #ECalOperationFlags
Asynchronously receives the set of iCalendar objects specified by
calobj
. This is used for iTIP confirmation and cancellation messages
for scheduled meetings.
When the operation is finished, callback
will be called. You can then
call e_cal_backend_receive_objects_finish() to get the result of the
operation.
an iCalendar string
bit-or of #ECalOperationFlags
optional #GCancellable object, or %NULL
a #GAsyncReadyCallback to call when the request is satisfied
Finishes the operation started with e_cal_backend_receive_objects().
If an error occurred, the function will set error
and erturn %FALSE.
a #GAsyncResult
Receives the set of iCalendar objects specified by calobj
. This is used
for iTIP confirmation and cancellation messages for scheduled meetings.
If an error occurs, the function will set error
and return %FALSE.
an iCalendar string
bit-or of #ECalOperationFlags
optional #GCancellable object, or %NULL
Returns the socket endpoint for the network service to which backend
is a client, or %NULL if backend
does not use network sockets.
The initial value of the #EBackend:connectable property is derived from
the #ESourceAuthentication extension of the backend'
s #EBackend:source
property, if the extension is present.
The returned #GSocketConnectable is referenced for thread-safety and must be unreferenced with g_object_unref() when finished with it.
Returns the #EDataCal for backend
. The #EDataCal is essentially
the glue between incoming D-Bus requests and backend'
s native API.
An #EDataCal should be set only once after backend
is first created.
If an #EDataCal has not yet been set, the function returns %NULL.
The returned #EDataCal is referenced for thread-safety and must be unreferenced with g_object_unref() when finished with it.
Returns the #GMainContext on which event sources for backend
are to
be attached.
The returned #GMainContext is referenced for thread-safety and must be unreferenced with g_main_context_unref() when finished with it.
Returns the #GProxyResolver for backend
(if applicable), as indicated
by the #ESourceAuthentication:proxy-uid of backend'
s #EBackend:source
or one of its ancestors.
The returned #GProxyResolver is referenced for thread-safety and must be unreferenced with g_object_unref() when finished with it.
Increase the reference count of object,
and possibly remove the
[floating][floating-ref] reference, if object
has a floating reference.
In other words, if the object is floating, then this call "assumes ownership" of the floating reference, converting it to a normal reference by clearing the floating flag while leaving the reference count unchanged. If the object is not floating, then this call adds a new normal reference increasing the reference count by one.
Since GLib 2.56, the type of object
will be propagated to the return type
under the same conditions as for g_object_ref().
Calls the refresh_sync method on the given backend.
An EDataCal object.
a #GCancellable for the operation
Asynchronously initiates a refresh for backend,
if the backend
supports
refreshing. The actual refresh operation completes on its own time. This
function, along with e_cal_backend_refresh_finish(), merely initiates the
operation.
Once the refresh is initiated, callback
will be called. You can then
call e_cal_backend_refresh_finish() to get the result of the initiation.
optional #GCancellable object, or %NULL
a #GAsyncReadyCallback to call when the request is satisfied
Finishes the refresh initiation started with e_cal_backend_refresh().
If an error occurred while initiating the refresh, the function will set
error
and return %FALSE. If the backend
does not support refreshing,
the function will set an %E_CLIENT_ERROR_NOT_SUPPORTED error and return
%FALSE.
a #GAsyncResult
Initiates a refresh for backend,
if the backend
supports refreshing.
The actual refresh operation completes on its own time. This function
merely initiates the operation.
If an error occrs while initiating the refresh, the function will set
error
and return %FALSE. If the backend
does not support refreshing,
the function will set an %E_CLIENT_ERROR_NOT_SUPPORTED error and return
%FALSE.
optional #GCancellable object, or %NULL
Calls the remove_objects_sync method on the given backend.
An EDataCal object.
a #GCancellable for the operation
List of #ECalComponentId objects identifying the objects to remove.
Type of removal.
bit-or of #ECalOperationFlags
Asynchronously removes one or more iCalendar objects according to
component_ids
and mod
.
When the operation is finished, callback
will be called. You can then
call e_cal_backend_remove_objects_finish() to get the result of the
operation.
a #GList of #ECalComponentId structs
modification type for recurrences
bit-or of #ECalOperationFlags
optional #GCancellable object, or %NULL
a #GAsyncReadyCallback to call when the request is satisfied
Finishes the operation started with e_cal_backend_remove_objects().
If an error occurred, the function will set error
and return %FALSE.
a #GAsyncResult
Removes one or more iCalendar objects according to component_ids
and mod
.
If an error occurs, the function will set error
and return %FALSE.
a #GList of #ECalComponentId structs
modification type for recurrences
bit-or of #ECalOperationFlags
optional #GCancellable object, or %NULL
Removes view from the list of live views for the backend.
An #EDataCalView object, previously added with ref
e_cal_backend_add_view.
Releases all references to other objects. This can be used to break reference cycles.
This function should only be called from object system implementations.
Schedules a new authenticate session, cancelling any previously run.
This is usually done automatically, when an 'authenticate' signal is
received for the associated #ESource. With %NULL credentials
an attempt
without it is run.
a credentials to use to authenticate, or %NULL
Asynchronously invokes e_backend_credentials_required(), but installs its
own callback which only prints a runtime warning on the console when
the call fails. The who_calls
is a prefix of the console message.
This is useful when the caller just wants to start the operation
without having actual place where to show the operation result.
an #ESourceCredentialsReason, why the credentials are required
PEM-encoded secure connection certificate, or an empty string
a bit-or of #GTlsCertificateFlags for secure connection certificate
a #GError with a description of the previous credentials error, or %NULL
optional #GCancellable object, or %NULL
an identification who calls this
Schedules user function func
to be run in a dedicated thread as
a blocking operation.
The function adds its own reference to use_cancellable,
if not %NULL.
The error returned from func
is propagated to client using
e_cal_backend_notify_error() function. If it's not desired,
then left the error unchanged and notify about errors manually.
an optional #GCancellable to use for func
a function to call in a dedicated thread
Calls the send_objects_sync method on the given backend.
An EDataCal object.
a #GCancellable for the operation
The iCalendar object to send.
bit-or of #ECalOperationFlags
List of users to send notifications to.
Asynchronously sends meeting information in calobj
. The backend
may
modify calobj
and send meeting information only to particular users.
When the operation is finished, callback
will be called. You can then
call e_cal_backend_send_objects_finish() to get the result of the operation.
an iCalendar string
bit-or of #ECalOperationFlags
optional #GCancellable object, or %NULL
a #GAsyncReadyCallback to call when the request is satisfied
Finishes the operation started with e_cal_backend_send_objects().
The function returns a string representation of a sent, or to be send,
vCalendar and deposits the list of users the meeting information was sent
to, or to be send to, in out_users
.
Free the returned pointer with g_free(), when no longer needed.
If an error occurs, the function will set error
and return %NULL.
a #GAsyncResult
a #GQueue in which to deposit results
Sends meeting information in calobj
. The backend
may modify calobj
and send meeting information only to particular users. The function
returns the (maybe) modified calobj
and deposits the list of users the
meeting information was sent (to be send) to in out_users
.
The returned pointer should be freed with g_free(), when no londer needed.
If an error occurs, the function will set error
and return %NULL.
an iCalendar string
bit-or of #ECalOperationFlags
a #GQueue in which to deposit results
optional #GCancellable object, or %NULL
Sets the cache directory path for use by backend
.
Note that #ECalBackend is initialized with a default cache directory path which should suffice for most cases. Backends should not override the default path without good reason.
a local cache directory path
Sets the socket endpoint for the network service to which backend
is
a client. This can be %NULL if backend
does not use network sockets.
The initial value of the #EBackend:connectable property is derived from
the #ESourceAuthentication extension of the backend'
s #EBackend:source
property, if the extension is present.
a #GSocketConnectable, or %NULL
Each object carries around a table of associations from strings to pointers. This function lets you set an association.
If the object already had an association with that name, the old association will be destroyed.
Internally, the key
is converted to a #GQuark using g_quark_from_string().
This means a copy of key
is kept permanently (even after object
has been
finalized) — so it is recommended to only use a small, bounded set of values
for key
in your program, to avoid the #GQuark storage growing unbounded.
name of the key
data to associate with that key
Sets the #EDataCal for backend
. The #EDataCal is essentially the
glue between incoming D-Bus requests and backend'
s native API.
An #EDataCal should be set only once after backend
is first created.
The backend
adds its own reference on the data_cal
.
an #EDataCal
Sets the online state of backend:
%TRUE if backend
is online,
FALSE
if offline.
If the #EBackend:connectable property is non-%NULL, the backend
will
automatically determine whether the network service should be reachable,
and hence whether the backend
is #EBackend:online. But subclasses may
override the online state if, for example, a connection attempt fails.
the online state
Sets a property on an object.
the name of the property to set
the value
Sets whether backend
will accept changes to its data content.
whether backend
is writable
Starts a new live view on the given backend.
The view to be started.
Remove a specified datum from the object's data associations, without invoking the association's destroy handler.
name of the key
This function gets back user data pointers stored via
g_object_set_qdata() and removes the data
from object
without invoking its destroy() function (if any was
set).
Usually, calling this function is only required to update
user data pointers with a destroy notifier, for example:
void
object_add_to_user_list (GObject *object,
const gchar *new_string)
{
// the quark, naming the object data
GQuark quark_string_list = g_quark_from_static_string ("my-string-list");
// retrieve the old string list
GList *list = g_object_steal_qdata (object, quark_string_list);
// prepend new string
list = g_list_prepend (list, g_strdup (new_string));
// this changed 'list', so we need to set it again
g_object_set_qdata_full (object, quark_string_list, list, free_string_list);
}
static void
free_string_list (gpointer data)
{
GList *node, *list = data;
for (node = list; node; node = node->next)
g_free (node->data);
g_list_free (list);
}
Using g_object_get_qdata() in the above example, instead of g_object_steal_qdata() would have left the destroy function set, and thus the partial string list would have been freed upon g_object_set_qdata_full().
A #GQuark, naming the user data pointer
Stops a previously started live view on the given backend.
The view to be stopped.
Reverts the effect of a previous call to
g_object_freeze_notify(). The freeze count is decreased on object
and when it reaches zero, queued "notify" signals are emitted.
Duplicate notifications for each property are squashed so that at most one #GObject::notify signal is emitted for each property, in the reverse order in which they have been queued.
It is an error to call this function when the freeze count is zero.
Initiates a user trust prompt with given parameters
.
When the operation is finished, callback
will be called. You can then
call e_backend_trust_prompt_finish() to get the result of the operation.
an #ENamedParameters with values for the trust prompt
optional #GCancellable object, or %NULL
a #GAsyncReadyCallback to call when the request is satisfied
Finishes the operation started with e_backend_trust_prompt().
If an error occurred, the function will set error
and return
%E_TRUST_PROMPT_RESPONSE_UNKNOWN.
a #GAsyncResult
Asks a user a trust prompt with given parameters,
and returns what
user responded. This blocks until the response is delivered.
an #ENamedParameters with values for the trust prompt
optional #GCancellable object, or %NULL
Decreases the reference count of object
. When its reference count
drops to 0, the object is finalized (i.e. its memory is freed).
If the pointer to the #GObject may be reused in future (for example, if it is an instance variable of another object), it is recommended to clear the pointer to %NULL rather than retain a dangling pointer to a potentially invalid #GObject instance. Use g_clear_object() for this.
This function essentially limits the life time of the closure
to
the life time of the object. That is, when the object is finalized,
the closure
is invalidated by calling g_closure_invalidate() on
it, in order to prevent invocations of the closure with a finalized
(nonexisting) object. Also, g_object_ref() and g_object_unref() are
added as marshal guards to the closure,
to ensure that an extra
reference count is held on object
during invocation of the
closure
. Usually, this function will be called on closures that
use this object
as closure data.
#GClosure to watch
Find the #GParamSpec with the given name for an
interface. Generally, the interface vtable passed in as g_iface
will be the default vtable from g_type_default_interface_ref(), or,
if you know the interface has already been loaded,
g_type_default_interface_peek().
any interface vtable for the interface, or the default vtable for the interface
name of a property to look up.
Add a property to an interface; this is only useful for interfaces that are added to GObject-derived types. Adding a property to an interface forces all objects classes with that interface to have a compatible property. The compatible property could be a newly created #GParamSpec, but normally g_object_class_override_property() will be used so that the object class only needs to provide an implementation and inherits the property description, default value, bounds, and so forth from the interface property.
This function is meant to be called from the interface's default
vtable initialization function (the class_init
member of
#GTypeInfo.) It must not be called after after class_init
has
been called for any object types implementing this interface.
If pspec
is a floating reference, it will be consumed.
any interface vtable for the interface, or the default vtable for the interface.
the #GParamSpec for the new property
Lists the properties of an interface.Generally, the interface
vtable passed in as g_iface
will be the default vtable from
g_type_default_interface_ref(), or, if you know the interface has
already been loaded, g_type_default_interface_peek().
any interface vtable for the interface, or the default vtable for the interface
Retrieve the default mail account as stored in Evolution configuration.
an #ESourceRegistry
placeholder for default address
placeholder for name
Checks that a mail account is valid, and returns its name.
an #ESourceRegistry
user name for the account to check
placeholder for the account name
Creates a new instance of a #GObject subtype and sets its properties.
Construction parameters (see %G_PARAM_CONSTRUCT, %G_PARAM_CONSTRUCT_ONLY) which are not explicitly specified are set to their default values.
the type id of the #GObject subtype to instantiate
an array of #GParameter
Contains only private data that should be read and manipulated using the functions below.