$darkmode
Libical API Documentation
4.0 STABLE VERSION
Visit the v3.0 documentation
Main Page
Related Pages
Data Structures
Files
File List
Globals
src
libicalvcard
vcardrestriction.h
Go to the documentation of this file.
1
/*======================================================================
2
FILE: vcardrestriction.h
3
CREATOR: Ken Murchison 24 Aug 2022
4
5
SPDX-FileCopyrightText: 2022, Fastmail Pty. Ltd. (https://fastmail.com)
6
SPDX-License-Identifier: LGPL-2.1-only OR MPL-2.0
7
======================================================================*/
8
15
#ifndef VCARDRESTRICTION_H
16
#define VCARDRESTRICTION_H
17
18
#include "libical_vcard_export.h"
19
#include "
vcardcomponent.h
"
20
#include "
vcardproperty.h
"
21
27
typedef
enum
vcardrestriction_kind
28
{
30
VCARD_RESTRICTION_NONE
= 0,
/* 0 */
31
33
VCARD_RESTRICTION_ZERO
,
/* 1 */
34
36
VCARD_RESTRICTION_ONE
,
/* 2 */
37
39
VCARD_RESTRICTION_ZEROPLUS
,
/* 3 */
40
42
VCARD_RESTRICTION_ONEPLUS
,
/* 4 */
43
45
VCARD_RESTRICTION_ZEROORONE
,
/* 5 */
46
48
VCARD_RESTRICTION_ONEEXCLUSIVE
,
/* 6 */
49
51
VCARD_RESTRICTION_ONEMUTUAL
,
/* 7 */
52
54
VCARD_RESTRICTION_UNKNOWN
/* 8 */
55
}
vcardrestriction_kind
;
56
70
LIBICAL_VCARD_EXPORT
int
vcardrestriction_compare
(
vcardrestriction_kind
restr,
71
int
count);
72
91
LIBICAL_VCARD_EXPORT
bool
vcardrestriction_check
(vcardcomponent *comp);
92
93
#endif
/* VCARDRESTRICTION_H */
VCARD_RESTRICTION_ZERO
Definition:
vcardrestriction.h:33
vcardrestriction_compare
int vcardrestriction_compare(vcardrestriction_kind restr, int count)
Checks if the given count is in accordance with the given restriction, restr.
VCARD_RESTRICTION_ONEMUTUAL
Definition:
vcardrestriction.h:51
VCARD_RESTRICTION_ZEROORONE
Definition:
vcardrestriction.h:45
VCARD_RESTRICTION_ONE
Definition:
vcardrestriction.h:36
vcardrestriction_check
bool vcardrestriction_check(vcardcomponent *comp)
Checks if a given VCARD meets all the restrictions imposed by the standard.
VCARD_RESTRICTION_ZEROPLUS
Definition:
vcardrestriction.h:39
vcardproperty.h
Defines the data structure representing vCard properties.
VCARD_RESTRICTION_ONEEXCLUSIVE
Definition:
vcardrestriction.h:48
vcardcomponent.h
Defines the data structure representing vCard components.
vcardrestriction_kind
vcardrestriction_kind
The kinds of vcardrestrictions there are.
Definition:
vcardrestriction.h:27
VCARD_RESTRICTION_NONE
Definition:
vcardrestriction.h:30
VCARD_RESTRICTION_ONEPLUS
Definition:
vcardrestriction.h:42
VCARD_RESTRICTION_UNKNOWN
Definition:
vcardrestriction.h:54
Generated by
1.8.10