ECalClientView

ECalClientView

Synopsis

struct              ECalClientView;
struct _ECalClient * e_cal_client_view_get_client       (ECalClientView *view);
GDBusConnection *   e_cal_client_view_get_connection    (ECalClientView *view);
const gchar *       e_cal_client_view_get_object_path   (ECalClientView *view);
gboolean            e_cal_client_view_is_running        (ECalClientView *view);
void                e_cal_client_view_set_fields_of_interest
                                                        (ECalClientView *view,
                                                         const GSList *fields_of_interest,
                                                         GError **error);
void                e_cal_client_view_start             (ECalClientView *view,
                                                         GError **error);
void                e_cal_client_view_stop              (ECalClientView *view,
                                                         GError **error);
enum                ECalClientViewFlags;
void                e_cal_client_view_set_flags         (ECalClientView *view,
                                                         ECalClientViewFlags flags,
                                                         GError **error);

Object Hierarchy

  GObject
   +----ECalClientView

Implemented Interfaces

ECalClientView implements GInitable.

Properties

  "client"                   ECalClient*           : Read / Write / Construct Only
  "connection"               GDBusConnection*      : Read / Write / Construct Only
  "object-path"              gchar*                : Read / Write / Construct Only

Signals

  "complete"                                       : Run First
  "objects-added"                                  : Run First
  "objects-modified"                               : Run First
  "objects-removed"                                : Run First
  "progress"                                       : Run First

Description

Details

struct ECalClientView

struct ECalClientView;

Contains only private data that should be read and manipulated using the functions below.

Since 3.2


e_cal_client_view_get_client ()

struct _ECalClient * e_cal_client_view_get_client       (ECalClientView *view);

Returns the ECalClient associated with view.

view :

an ECalClientView

Returns :

the associated client. [transfer none]

Since 3.2


e_cal_client_view_get_connection ()

GDBusConnection *   e_cal_client_view_get_connection    (ECalClientView *view);

Returns the GDBusConnection used to create the D-Bus proxy.

view :

an ECalClientView

Returns :

the GDBusConnection. [transfer none]

Since 3.8


e_cal_client_view_get_object_path ()

const gchar *       e_cal_client_view_get_object_path   (ECalClientView *view);

Returns the object path used to create the D-Bus proxy.

view :

an ECalClientView

Returns :

the object path

Since 3.8


e_cal_client_view_is_running ()

gboolean            e_cal_client_view_is_running        (ECalClientView *view);

Retunrs: Whether view is running. Not running views are ignoring all events sent from the server.

view :

an ECalClientView

Since 3.2


e_cal_client_view_set_fields_of_interest ()

void                e_cal_client_view_set_fields_of_interest
                                                        (ECalClientView *view,
                                                         const GSList *fields_of_interest,
                                                         GError **error);

Client can instruct server to which fields it is interested in only, thus the server can return less data over the wire. The server can still return complete objects, this is just a hint to it that the listed fields will be used only. The UID/RID fields are returned always. Initial views has no fields of interest and using NULL for fields_of_interest will unset any previous changes.

Some backends can use summary information of its cache to create artifical objects, which will omit stored object parsing. If this cannot be done then it will simply return object as is stored in the cache.

view :

an ECalClientView

fields_of_interest :

List of field names in which the client is interested, or NULL to reset the fields of interest. [element-type utf8][allow-none]

error :

return location for a GError, or NULL

e_cal_client_view_start ()

void                e_cal_client_view_start             (ECalClientView *view,
                                                         GError **error);

Tells view to start processing events.

view :

an ECalClientView

error :

return location for a GError, or NULL

Since 3.2


e_cal_client_view_stop ()

void                e_cal_client_view_stop              (ECalClientView *view,
                                                         GError **error);

Tells view to stop processing events.

view :

an ECalClientView

error :

return location for a GError, or NULL

Since 3.2


enum ECalClientViewFlags

typedef enum {
	E_CAL_CLIENT_VIEW_FLAGS_NONE           = 0,
	E_CAL_CLIENT_VIEW_FLAGS_NOTIFY_INITIAL = (1 << 0)
} ECalClientViewFlags;

Flags that control the behaviour of an ECalClientView.

E_CAL_CLIENT_VIEW_FLAGS_NONE

Symbolic value for no flags

E_CAL_CLIENT_VIEW_FLAGS_NOTIFY_INITIAL

If this flag is set then all objects matching the view's query will be sent as notifications when starting the view, otherwise only future changes will be reported. The default for a ECalClientView is TRUE.

Since 3.6


e_cal_client_view_set_flags ()

void                e_cal_client_view_set_flags         (ECalClientView *view,
                                                         ECalClientViewFlags flags,
                                                         GError **error);

Sets the flags which control the behaviour of view.

view :

an ECalClientView

flags :

the ECalClientViewFlags for view

error :

return location for a GError, or NULL

Since 3.6

Property Details

The "client" property

  "client"                   ECalClient*           : Read / Write / Construct Only


The "connection" property

  "connection"               GDBusConnection*      : Read / Write / Construct Only

The GDBusConnection used to create the D-Bus proxy.


The "object-path" property

  "object-path"              gchar*                : Read / Write / Construct Only

The object path used to create the D-Bus proxy.

Default value: NULL

Signal Details

The "complete" signal

void                user_function                      (ECalClientView *ecalclientview,
                                                        GError         *arg1,
                                                        gpointer        user_data)           : Run First

The "objects-added" signal

void                user_function                      (ECalClientView *view,
                                                        gpointer        objects,
                                                        gpointer        user_data)      : Run First

view :

the ECalClientView which emitted the signal

objects :

. [type GSList][transfer none][element-type long]

user_data :

user data set when the signal handler was connected.

The "objects-modified" signal

void                user_function                      (ECalClientView *view,
                                                        gpointer        objects,
                                                        gpointer        user_data)      : Run First

view :

the ECalClientView which emitted the signal

objects :

. [type GSList][transfer none][element-type long]

user_data :

user data set when the signal handler was connected.

The "objects-removed" signal

void                user_function                      (ECalClientView *view,
                                                        gpointer        objects,
                                                        gpointer        user_data)      : Run First

view :

the ECalClientView which emitted the signal

objects :

. [type GSList][transfer none][element-type ECalComponentId]

user_data :

user data set when the signal handler was connected.

The "progress" signal

void                user_function                      (ECalClientView *ecalclientview,
                                                        guint           arg1,
                                                        gchar          *arg2,
                                                        gpointer        user_data)           : Run First