CalCache
Object Hierarchy:
Description:
[
CCode ( type_id =
"e_cal_cache_get_type ()" ) ]
[
Version ( since =
"3.26" ) ]
public class CalCache :
Cache,
TimezoneCache,
Extensible
Contains only private data that should be read and manipulated using the functions below.
Content:
Static methods:
Creation methods:
Methods:
- public bool contains (string uid, string? rid, CacheDeletedFlag deleted_flag)
Checkes whether the this contains an
object with the given uid and rid.
- public bool delete_attachments (Component component, Cancellable? cancellable = null) throws Error
Deletes all locally stored attachments beside the cache file from the
disk.
- public bool dup_timezone_as_string (string tzid, out string out_zone_string, Cancellable? cancellable = null) throws Error
Gets a timezone with given tzid, which had been
previously put into the this with put_timezone
.
- public bool get_component (string uid, string? rid, out Component out_component, Cancellable? cancellable = null) throws Error
Gets a component identified by uid, and optionally by the
rid, from the this.
- public bool get_component_as_string (string uid, string? rid, out string out_icalstring, Cancellable? cancellable = null) throws Error
Gets a component identified by uid, and optionally by the
rid, from the this.
- public bool get_component_custom_flags (string uid, string? rid, out uint32 out_custom_flags, Cancellable? cancellable = null) throws Error
Gets the custom flags previously set for uid and
rid, either with set_component_custom_flags, when
adding components or when removing components in offline.
- public bool get_component_extra (string uid, string? rid, out string out_extra, Cancellable? cancellable = null) throws Error
Gets the extra data previously set for uid and rid
, either with set_component_extra or when adding components.
- public bool get_components_by_uid (string uid, out SList<Component> out_components, Cancellable? cancellable = null) throws Error
Gets the master object and all detached instances for a component
identified by the uid.
- public bool get_components_by_uid_as_string (string uid, out SList<string> out_icalstrings, Cancellable? cancellable = null) throws Error
Gets the master object and all detached instances as string for a
component identified by the uid.
- public bool get_components_in_range (time_t range_start, time_t range_end, out SList<Component> out_components, Cancellable? cancellable = null) throws Error
Gets a list of components which occur in the given time range.
- public bool get_components_in_range_as_strings (time_t range_start, time_t range_end, out SList<string> out_icalstrings, Cancellable? cancellable = null) throws Error
Gets a list of components, as iCal strings, which occur in the given
time range.
- public bool get_ids_with_extra (string extra, out SList<ComponentId> out_ids, Cancellable? cancellable = null) throws Error
Gets all the ID-s the extra data is set for.
- public SList<CalCacheOfflineChange> get_offline_changes (Cancellable? cancellable = null) throws Error
- public OfflineState get_offline_state (string uid, string? rid, Cancellable? cancellable = null) throws Error
- public bool get_timezone (string tzid, out unowned Timezone out_zone, Cancellable? cancellable = null) throws Error
Gets a timezone with given tzid, which had been
previously put into the this with put_timezone
.
- public bool list_timezones (out List<unowned Timezone> out_timezones, Cancellable? cancellable = null) throws Error
Gets a list of all stored timezones by the
this.
- public bool put_component (Component component, string? extra, uint32 custom_flags, CacheOfflineFlag offline_flag, Cancellable? cancellable = null) throws Error
Adds a component into the this
.
- public bool put_components (SList<Component> components, SList<string>? extras, SList<uint32>? custom_flags, CacheOfflineFlag offline_flag, Cancellable? cancellable = null) throws Error
Adds a list of components into the
this.
- public bool put_timezone (Timezone zone, uint inc_ref_counts, Cancellable? cancellable = null) throws Error
Puts the zone into the this
using its timezone ID as an identificator.
- public bool remove_component (string uid, string? rid, uint32 custom_flags, CacheOfflineFlag offline_flag, Cancellable? cancellable = null) throws Error
Removes a component identified by uid and rid
from the this.
- public bool remove_components (SList<ComponentId> ids, SList<uint32>? custom_flags, CacheOfflineFlag offline_flag, Cancellable? cancellable = null) throws Error
Removes components identified by uid and rid
from the this in the ids list.
- public bool remove_timezone (string tzid, uint dec_ref_counts, Cancellable? cancellable = null) throws Error
Dereferences use count of the time zone with ID tzid by
dec_ref_counts and removes the timezone from the cache when the reference count reaches zero.
- public bool remove_timezones (Cancellable? cancellable = null) throws Error
Removes all stored timezones from the this
.
- public bool search (string? sexp, out SList<CalCacheSearchData> out_data, Cancellable? cancellable = null) throws Error
Searches the this with the given
sexp and returns those components which satisfy the search expression as a
SList of CalCacheSearchData
.
- public bool search_components (string? sexp, out SList<Component> out_components, Cancellable? cancellable = null) throws Error
Searches the this with the given
sexp and returns those components which satisfy the search expression.
- public bool search_ids (string? sexp, out SList<ComponentId> out_ids, Cancellable? cancellable = null) throws Error
Searches the this with the given
sexp and returns ECalComponentId for those components which satisfy the search expression.
- public bool search_with_callback (string? sexp, CalCacheSearchFunc func, Cancellable? cancellable = null) throws Error
Searches the this with the given
sexp and calls func for each row which satisfy the search expression.
- public bool set_component_custom_flags (string uid, string? rid, uint32 custom_flags, Cancellable? cancellable = null) throws Error
Sets or replaces the custom flags associated with a component
identified by uid and optionally rid.
- public bool set_component_extra (string uid, string? rid, string? extra, Cancellable? cancellable = null) throws Error
Sets or replaces the extra data associated with a component identified
by uid and optionally rid.
Signals:
Inherited Members:
All known members inherited from class E.Cache
All known members inherited from class GLib.Object
All known members inherited from interface ECal.TimezoneCache
All known members inherited from interface E.Extensible