load_component_sync


Description:

public virtual bool load_component_sync (string uid, string? extra, out Component out_component, out string out_extra, Cancellable? cancellable = null) throws Error

Loads a component from the remote side.

Any detached instances should be returned together with the master object. The out_component can be either a VCALENDAR component, which would contain the master object and all of its detached instances, eventually also used time zones, or the requested component of type VEVENT, VJOURNAL or VTODO.

It is mandatory to implement this virtual method by the descendant.

The returned out_component should be freed with unref, when no longer needed.

The returned out_extra should be freed with g_free, when no longer needed.

Parameters:

this

an CalMetaBackend

uid

a component UID

extra

optional extra data stored with the component, or null

out_component

a loaded component, as Component

out_extra

an extra data to store to CalCache with this component

cancellable

optional Cancellable object, or null

Returns:

Whether succeeded.