]> git.datanom.net - vcard-parser.git/blob - src/parser/globals.h
All features added
[vcard-parser.git] / src / parser / globals.h
1 /*
2 * globals.h
3 *
4 * Copyright 2019 Michael Rasmussen <mir@datanom.net>
5 *
6 * This program is free software; you can redistribute it and/or modify
7 * it under the terms of the GNU General Public License as published by
8 * the Free Software Foundation; either version 2 of the License, or
9 * (at your option) any later version.
10 *
11 * This program is distributed in the hope that it will be useful,
12 * but WITHOUT ANY WARRANTY; without even the implied warranty of
13 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
14 * GNU General Public License for more details.
15 *
16 * You should have received a copy of the GNU General Public License
17 * along with this program; if not, write to the Free Software
18 * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston,
19 * MA 02110-1301, USA.
20 */
21
22 #ifndef __GLOBALS_H__
23 #define __GLOBALS_H__
24
25 #include <glib.h>
26
27 G_BEGIN_DECLS
28
29 typedef enum {
30 VCARD_VERSION_UNSUPPORTED,
31 VCARD_VERSION_DETECT,
32 VCARD_VERSION_2_1,
33 VCARD_VERSION_3_0,
34 VCARD_VERSION_4_0,
35 } VCardVersion;
36
37 typedef struct _VCard VCard;
38
39 typedef enum {
40 UNKNOWN,
41 PRINCIPAL,
42 CALENDAR,
43 ADDRESSBOOK,
44 TYPE_SIZE
45 } CollectionType;
46
47 typedef struct {
48 gchar* user;
49 gchar* pwd;
50 gchar* url;
51 gchar* displayname;
52 gboolean debug;
53 gboolean mkcol;
54 CollectionType type;
55 gchar* etag;
56 } CarddavData;
57
58 typedef enum {
59 TEL_DEFAULT,
60 TEL_HOME,
61 TEL_WORK,
62 TEL_MOBIL
63 } TelefonType;
64
65 typedef enum {
66 ADDR_DEFAULT,
67 ADDR_HOME,
68 ADDR_WORK,
69 ADDR_OTHER
70 } AddressType;
71
72 typedef enum {
73 PHOTO_DEFAULT,
74 PHOTO_GIF,
75 PHOTO_PNG,
76 PHOTO_JPG
77 } PhotoType;
78
79 typedef enum {
80 EMAIL_DEFAULT,
81 EMAIL_HOME,
82 EMAIL_WORK,
83 EMAIL_OTHER
84 } EmailType;
85
86 typedef struct {
87 gchar* name;
88 gchar* value;
89 } VCardProperty;
90
91 G_END_DECLS
92
93 #endif
This page took 0.432948 seconds and 6 git commands to generate.