Libical API Documentation 3.0
|
Go to the source code of this file.
Data Structures | |
struct | icalset_impl |
struct | icalsetiter |
Typedefs | |
typedef struct icalset_impl | icalset |
typedef enum icalset_kind | icalset_kind |
typedef struct icalsetiter | icalsetiter |
Enumerations | |
enum | icalset_kind { ICAL_FILE_SET , ICAL_DIR_SET , ICAL_BDB_SET } |
Functions | |
icalerrorenum | icalset_add_component (icalset *set, icalcomponent *comp) |
icalsetiter | icalset_begin_component (icalset *set, icalcomponent_kind kind, icalgauge *gauge, const char *tzid) |
icalerrorenum | icalset_commit (icalset *set) |
int | icalset_count_components (icalset *set, icalcomponent_kind kind) |
icalcomponent * | icalset_fetch (icalset *set, const char *uid) |
icalcomponent * | icalset_fetch_match (icalset *set, icalcomponent *c) |
void | icalset_free (icalset *set) |
icalcomponent * | icalset_get_current_component (icalset *set) |
icalcomponent * | icalset_get_first_component (icalset *set) |
icalcomponent * | icalset_get_next_component (icalset *set) |
int | icalset_has_uid (icalset *set, const char *uid) |
void | icalset_mark (icalset *set) |
icalerrorenum | icalset_modify (icalset *set, icalcomponent *oldc, icalcomponent *newc) |
icalset * | icalset_new (icalset_kind kind, const char *dsn, void *options) |
Generic icalset constructor. | |
icalset * | icalset_new_dir (const char *path) |
icalset * | icalset_new_file (const char *path) |
icalset * | icalset_new_file_reader (const char *path) |
icalset * | icalset_new_file_writer (const char *path) |
const char * | icalset_path (icalset *set) |
int | icalset_register_class (icalset *set) |
Registers a new derived class. | |
icalerrorenum | icalset_remove_component (icalset *set, icalcomponent *comp) |
icalerrorenum | icalset_select (icalset *set, icalgauge *gauge) |
icalcomponent * | icalsetiter_deref (icalsetiter *i) |
icalcomponent * | icalsetiter_next (icalsetiter *i) |
icalcomponent * | icalsetiter_prior (icalsetiter *i) |
icalcomponent * | icalsetiter_to_next (icalset *set, icalsetiter *i) |
icalcomponent * | icalsetiter_to_prior (icalset *set, icalsetiter *i) |
Variables | |
icalsetiter | icalsetiter_null |
Icalset is the "base class" for representations of a collection of iCal components. Derived classes (actually delegatees) include:
icalfileset Store components in a single file icaldirset Store components in multiple files in a directory icalbdbset Store components in a Berkeley DB File icalheapset Store components on the heap icalmysqlset Store components in a mysql database.
icalerrorenum icalset_commit | ( | icalset * | set | ) |
Writes changes to disk immediately
icalcomponent * icalset_fetch | ( | icalset * | set, |
const char * | uid | ||
) |
Gets a component by uid
void icalset_free | ( | icalset * | set | ) |
Frees the memory associated with this icalset automatically calls the implementation specific free routine
icalcomponent * icalset_get_current_component | ( | icalset * | set | ) |
Iterates through the components. If a gauge has been defined, these will skip over components that do not pass the gauge
void icalset_mark | ( | icalset * | set | ) |
Marks the cluster as changed, so it will be written to disk when it is freed.
icalerrorenum icalset_modify | ( | icalset * | set, |
icalcomponent * | oldc, | ||
icalcomponent * | newc | ||
) |
Modifies components according to the MODIFY method of CAP. Works on the currently selected components.
icalset * icalset_new | ( | icalset_kind | kind, |
const char * | dsn, | ||
void * | options | ||
) |
Generic icalset constructor.
kind | The type of icalset to create |
dsn | Data Source Name - usually a pathname or DB handle |
options | Any implementation specific options |
This creates any of the icalset types available.
unimplemented
call the implementation specific initializer
icalerrorenum icalset_select | ( | icalset * | set, |
icalgauge * | gauge | ||
) |
Restricts the component returned by icalset_first, _next to those that pass the gauge.
icalcomponent * icalsetiter_next | ( | icalsetiter * | i | ) |
Default _next, _prior, _deref for subclasses that use single cluster
icalcomponent * icalsetiter_to_next | ( | icalset * | set, |
icalsetiter * | i | ||
) |
for subclasses that use multiple clusters that require specialized cluster traversal
|
extern |
External Iterator with gauge - for thread safety