Libical API Documentation  3.0
icalcluster.h
1 /*======================================================================
2  FILE: icalcluster.h
3  CREATOR: acampi 13 March 2002
4 
5  Copyright (C) 2002 Andrea Campi <a.campi@inet.it>
6 
7  This library is free software; you can redistribute it and/or modify
8  it under the terms of either:
9 
10  The LGPL as published by the Free Software Foundation, version
11  2.1, available at: http://www.gnu.org/licenses/lgpl-2.1.html
12 
13  Or:
14 
15  The Mozilla Public License Version 2.0. You may obtain a copy of
16  the License at http://www.mozilla.org/MPL/
17 ======================================================================*/
18 
19 #ifndef ICALCLUSTER_H
20 #define ICALCLUSTER_H
21 
22 #include "libical_icalss_export.h"
23 #include "icalcomponent.h"
24 #include "icalerror.h"
25 
26 typedef struct icalcluster_impl icalcluster;
27 
28 LIBICAL_ICALSS_EXPORT icalcluster *icalcluster_new(const char *key, icalcomponent *data);
29 
30 LIBICAL_ICALSS_EXPORT icalcluster *icalcluster_new_clone(const icalcluster *cluster);
31 
32 LIBICAL_ICALSS_EXPORT void icalcluster_free(icalcluster *cluster);
33 
34 LIBICAL_ICALSS_EXPORT const char *icalcluster_key(icalcluster *cluster);
35 
36 LIBICAL_ICALSS_EXPORT int icalcluster_is_changed(icalcluster *cluster);
37 
38 LIBICAL_ICALSS_EXPORT void icalcluster_mark(icalcluster *cluster);
39 
40 LIBICAL_ICALSS_EXPORT void icalcluster_commit(icalcluster *cluster);
41 
42 LIBICAL_ICALSS_EXPORT icalcomponent *icalcluster_get_component(icalcluster *cluster);
43 
44 LIBICAL_ICALSS_EXPORT int icalcluster_count_components(icalcluster *cluster,
45  icalcomponent_kind kind);
46 
47 LIBICAL_ICALSS_EXPORT icalerrorenum icalcluster_add_component(icalcluster *cluster,
48  icalcomponent *child);
49 
50 LIBICAL_ICALSS_EXPORT icalerrorenum icalcluster_remove_component(icalcluster *cluster,
51  icalcomponent *child);
52 
53 LIBICAL_ICALSS_EXPORT icalcomponent *icalcluster_get_current_component(icalcluster *cluster);
54 
55 LIBICAL_ICALSS_EXPORT icalcomponent *icalcluster_get_first_component(icalcluster *cluster);
56 
57 LIBICAL_ICALSS_EXPORT icalcomponent *icalcluster_get_next_component(icalcluster *cluster);
58 
59 #endif /* !ICALCLUSTER_H */
icalerrorenum
Represents the different types of errors that can be triggered in libical.
Definition: icalerror.h:76
Error handling for libical.
Definition: icalcomponent.c:34
Definition: icalclusterimpl.h:27