Libical API Documentation 4.0
Loading...
Searching...
No Matches
icalbdbset_cxx.h
Go to the documentation of this file.
1
10
11#ifndef ICALBDBSET_CXX_H
12#define ICALBDBSET_CXX_H
13
14#include "libical_icalss_export.h"
15
16#include <string>
17
18namespace LibICal
19{
20
21class VComponent;
22
23class LIBICAL_ICALSS_EXPORT ICalBDBSet
24{
25public:
26 ICalBDBSet();
27 ICalBDBSet(const ICalBDBSet &);
28 ICalBDBSet(const std::string &path, int flags);
29 ICalBDBSet operator=(const ICalBDBSet &);
30 ~ICalBDBSet();
31
32public:
33 void free();
34 std::string path();
35
36 icalerrorenum add_component(VComponent *child);
37 icalerrorenum remove_component(VComponent *child);
38 int count_components(icalcomponent_kind kind);
39
40 // Restrict the component returned by icalbdbset_first, _next to those
41 // that pass the gauge. _clear removes the gauge
42 icalerrorenum select(icalgauge *gauge);
43 void clear();
44
45 // Get and search for a component by uid
46 VComponent *fetch(std::string &uid);
47 VComponent *fetch_match(icalcomponent *c);
48 int has_uid(std::string &uid);
49
50 // Iterate through components. If a gauge has been defined, these
51 // will skip over components that do not pass the gauge
52 VComponent *get_current_component();
53 VComponent *get_first_component();
54 VComponent *get_next_component();
55
56 VComponent *get_component();
57};
58
59} // namespace LibICal
60
61#endif
A class wrapping the libical icalcomponent functions.
Definition vcomponent_cxx.h:39
icalerrorenum
Represents the different types of errors that can be triggered in libical.
Definition icalerror.h:67