Libical API Documentation 4.0 UNRELEASED Go to the stable 3.0 documentation
Loading...
Searching...
No Matches
vcardvalueimpl.h
1/*======================================================================
2 FILE: vcardvalueimpl.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
9#ifndef VCARDVALUEIMPL_H
10#define VCARDVALUEIMPL_H
11
12#include "vcardderivedvalue.h"
13#include "vcardproperty.h"
14#include "vcardtime.h"
15
16#define LIBICAL_VCARDVALUE_ID_LENGTH 5
18 vcardvalue_kind kind; /* the kind that is visible from the outside */
19
20 char id[LIBICAL_VCARDVALUE_ID_LENGTH];
21 int size;
22 vcardproperty *parent;
23 char *x_value;
24
25 union data {
26 vcardstructuredtype *v_structured;
27 /*char *v_name; */ /* use v_structured field[0-4] only */
28 /*char *v_adr; */ /* use v_structured field[0-6] */
29
30 /*char *v_nickname; */ /* use v_textlist */
31 /*char *v_gender; */ /* use v_textlist */
32 /*char *v_org; */ /* use v_textlist */
33 /*char *v_categories; */ /* use v_textlist */
34 vcardstrarray *v_textlist;
35
36 vcardgeotype v_geo;
37
38 const char *v_string;
39 /*char *v_text; */ /* use v_string */
40 /*char *v_language_tag; */ /* use v_string */
41 /*char *v_uri; */ /* use v_string */
42
43 float v_float;
44
45 int v_int;
46 /*int v_boolean; */ /* use v_int */
47 /*int v_integer; */ /* use v_int */
48 /*int v_utcoffset; */ /* use v_int */
49
50 vcardtimetype v_time;
51 /*struct vcardtimetype v_date; */ /* use v_time */
52 /*struct vcardtimetype v_time; */ /* use v_time */
53 /*struct vcardtimetype v_datetime; */ /* use v_time */
54 /*struct vcardtimetype v_dateandortime; */ /* use v_time */
55
56 int v_enum;
57 /* v_enum takes care of several enumerated types including:
58 vcardproperty_kind v_kind;
59 vcardproperty_version v_version;
60 */
61
62 } data;
63};
64
65#endif /* VCARDVALUEIMPL_H */
Definition vcardtypes.h:16
Definition vcardtime.h:16
Definition vcardvalueimpl.h:17
Definition vcardvalueimpl.h:25