Top | ![]() |
![]() |
![]() |
![]() |
|
e_data_cal_view_new () |
struct _ECalBackend * | e_data_cal_view_get_backend () |
|
e_data_cal_view_get_connection () |
const |
e_data_cal_view_get_object_path () |
struct _ECalBackendSExp * | e_data_cal_view_get_sexp () |
|
e_data_cal_view_object_matches () |
|
e_data_cal_view_component_matches () |
|
e_data_cal_view_is_started () |
|
e_data_cal_view_is_completed () |
|
e_data_cal_view_is_stopped () |
|
e_data_cal_view_get_fields_of_interest () |
ECalClientViewFlags | e_data_cal_view_get_flags () |
|
e_data_cal_view_get_component_string () |
|
e_data_cal_view_notify_components_added () |
|
e_data_cal_view_notify_components_added_1 () |
|
e_data_cal_view_notify_components_modified () |
|
e_data_cal_view_notify_components_modified_1 () |
|
e_data_cal_view_notify_objects_removed () |
|
e_data_cal_view_notify_objects_removed_1 () |
|
e_data_cal_view_notify_progress () |
|
e_data_cal_view_notify_complete () |
This class communicates with
Calendar backends can automatically own a number of views requested by the client, this API can be used by the backend to issue notifications which will be delivered to the ECalClientView
EDataCalView * e_data_cal_view_new (struct _ECalBackend *backend
,struct _ECalBackendSExp *sexp
,,
GDBusConnection *connectionconst
,gchar *object_path);
GError **error
Creates a new connection
at object_path
. If an error occurs while exporting,
the function sets error
and returns NULL
backend |
an ECalBackend |
|
sexp |
||
connection |
a |
|
object_path |
an object path for the view |
|
error |
return location for a |
struct _ECalBackend *
e_data_cal_view_get_backend (EDataCalView *view
);
Gets the backend that view
is querying.
Since: 3.8
GDBusConnection * e_data_cal_view_get_connection ();
EDataCalView *view
Returns the
Since: 3.8
constgchar * e_data_cal_view_get_object_path ();
EDataCalView *view
Return the object path at which the CalendarView D-Bus inteface is exported.
Since: 3.8
struct _ECalBackendSExp *
e_data_cal_view_get_sexp (EDataCalView *view
);
Get the ECalBackendSExp object used for the given view.
Since: 3.8
gboolean e_data_cal_view_object_matches (,
EDataCalView *viewconst
);gchar *object
Compares the given object
to the regular expression used for the
given view.
gboolean e_data_cal_view_component_matches (,
EDataCalView *view);
ECalComponent *component
Compares the given component
to the regular expression used for the
given view.
Since: 3.4
gboolean e_data_cal_view_is_started ();
EDataCalView *view
Checks whether the given view has already been started.
gboolean e_data_cal_view_is_completed ();
EDataCalView *view
Checks whether the given view is already completed. Being completed means the initial matching of objects have been finished, not that no more notifications about changes will be sent. In fact, even after completed, notifications will still be sent if there are changes in the objects matching the view search expression.
Since: 3.2
gboolean e_data_cal_view_is_stopped ();
EDataCalView *view
Checks whether the given view has been stopped.
Since: 2.32
GHashTable * e_data_cal_view_get_fields_of_interest ();
EDataCalView *view
Hash table of field names which the listener is interested in.
Backends can return fully populated objects, but the listener advertised
that it will use only these. Returns NULL
Note: The data pointer in the hash table has no special meaning, it's only GINT_TO_POINTER(1) for easier checking. Also, field names are compared case insensitively.
Since: 3.2
ECalClientViewFlags
e_data_cal_view_get_flags (EDataCalView *view
);
Gets the ECalClientViewFlags that control the behaviour of view
.
Since: 3.6
gchar * e_data_cal_view_get_component_string (,
EDataCalView *view);
ECalComponent *component
This function is similar to e_cal_component_get_as_string()
except
that it takes into account the fields-of-interest that view
is
configured with and filters out any unneeded fields.
Since: 3.4
void e_data_cal_view_notify_components_added (,
EDataCalView *viewconst
);GSList *ecalcomponents
Notifies all view listeners of the addition of a list of components.
Like e_data_cal_view_notify_objects_added()
Since: 3.4
void e_data_cal_view_notify_components_added_1 (,
EDataCalView *view);
ECalComponent *component
Notifies all the view listeners of the addition of a single object.
Like e_data_cal_view_notify_objects_added_1()
Since: 3.4
void e_data_cal_view_notify_components_modified (,
EDataCalView *viewconst
);GSList *ecalcomponents
Notifies all view listeners of the modification of a list of components.
Like e_data_cal_view_notify_objects_modified()
Since: 3.4
void e_data_cal_view_notify_components_modified_1 (,
EDataCalView *view);
ECalComponent *component
Notifies all view listeners of the modification of component
.
Like e_data_cal_view_notify_objects_modified_1()
Since: 3.4
void e_data_cal_view_notify_objects_removed (,
EDataCalView *viewconst
);GSList *ids
Notifies all view listener of the removal of a list of objects.
void e_data_cal_view_notify_objects_removed_1 (,
EDataCalView *viewconst ECalComponentId *id
);
Notifies all view listener of the removal of a single object.
void e_data_cal_view_notify_progress (,
EDataCalView *view,
gint percentconst
);gchar *message
Notifies all view listeners of progress messages.
void e_data_cal_view_notify_complete (,
EDataCalView *viewconst
);GError *error
Notifies all view listeners of the completion of the view, including a status code.
Since: 3.2