Libical API Documentation 3.0

icalrestriction.h
Go to the documentation of this file.
1/*======================================================================
2 FILE: icalrestriction.h
3 CREATOR: eric 24 April 1999
4
5 (C) COPYRIGHT 2000, Eric Busboom <eric@civicknowledge.com>
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: https://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 https://www.mozilla.org/MPL/
17
18 The original code is icalrestriction.h
19
20 Contributions from:
21 Graham Davison (g.m.davison@computer.org)
22======================================================================*/
23
24#ifndef ICALRESTRICTION_H
25#define ICALRESTRICTION_H
26
33#include "libical_ical_export.h"
34#include "icalcomponent.h"
35#include "icalproperty.h"
36
42 typedef enum icalrestriction_kind
43{
45 ICAL_RESTRICTION_NONE = 0, /* 0 */
46
48 ICAL_RESTRICTION_ZERO, /* 1 */
49
51 ICAL_RESTRICTION_ONE, /* 2 */
52
54 ICAL_RESTRICTION_ZEROPLUS, /* 3 */
55
57 ICAL_RESTRICTION_ONEPLUS, /* 4 */
58
60 ICAL_RESTRICTION_ZEROORONE, /* 5 */
61
63 ICAL_RESTRICTION_ONEEXCLUSIVE, /* 6 */
64
66 ICAL_RESTRICTION_ONEMUTUAL, /* 7 */
67
69 ICAL_RESTRICTION_UNKNOWN /* 8 */
70} icalrestriction_kind;
71
85LIBICAL_ICAL_EXPORT int icalrestriction_compare(icalrestriction_kind restr, int count);
86
105LIBICAL_ICAL_EXPORT int icalrestriction_check(icalcomponent *comp);
106
107#endif /* !ICALRESTRICTION_H */
icalcomponent.h
icalproperty.h
icalrestriction_check
int icalrestriction_check(icalcomponent *comp)
Checks if a given VCALENDAR meets all the restrictions imposed by the standard.
icalrestriction_kind
icalrestriction_kind
The kinds of icalrestrictions there are.
Definition: icalrestriction.h:43
ICAL_RESTRICTION_ZEROPLUS
@ ICAL_RESTRICTION_ZEROPLUS
Definition: icalrestriction.h:54
ICAL_RESTRICTION_UNKNOWN
@ ICAL_RESTRICTION_UNKNOWN
Definition: icalrestriction.h:69
ICAL_RESTRICTION_ONE
@ ICAL_RESTRICTION_ONE
Definition: icalrestriction.h:51
ICAL_RESTRICTION_ONEEXCLUSIVE
@ ICAL_RESTRICTION_ONEEXCLUSIVE
Definition: icalrestriction.h:63
ICAL_RESTRICTION_ONEPLUS
@ ICAL_RESTRICTION_ONEPLUS
Definition: icalrestriction.h:57
ICAL_RESTRICTION_NONE
@ ICAL_RESTRICTION_NONE
Definition: icalrestriction.h:45
ICAL_RESTRICTION_ZEROORONE
@ ICAL_RESTRICTION_ZEROORONE
Definition: icalrestriction.h:60
ICAL_RESTRICTION_ONEMUTUAL
@ ICAL_RESTRICTION_ONEMUTUAL
Definition: icalrestriction.h:66
ICAL_RESTRICTION_ZERO
@ ICAL_RESTRICTION_ZERO
Definition: icalrestriction.h:48
icalrestriction_compare
int icalrestriction_compare(icalrestriction_kind restr, int count)
Checks if the given count is in accordance with the given restriction, restr.
icalcomponent_impl
Definition: icalcomponent.c:36