/* * globals.h * * Copyright 2019 Michael Rasmussen * * This program is free software; you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by * the Free Software Foundation; either version 2 of the License, or * (at your option) any later version. * * This program is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * * You should have received a copy of the GNU General Public License * along with this program; if not, write to the Free Software * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, * MA 02110-1301, USA. */ #ifndef __GLOBALS_H__ #define __GLOBALS_H__ #include G_BEGIN_DECLS typedef enum { VCARD_VERSION_UNSUPPORTED, VCARD_VERSION_DETECT, VCARD_VERSION_2_1, VCARD_VERSION_3_0, VCARD_VERSION_4_0, } VCardVersion; typedef struct _VCard VCard; typedef enum { UNKNOWN, PRINCIPAL, CALENDAR, ADDRESSBOOK, TYPE_SIZE } CollectionType; typedef struct { gchar* user; gchar* pwd; gchar* url; gchar* displayname; gboolean debug; gboolean mkcol; CollectionType type; gchar* etag; } CarddavData; typedef enum { TEL_DEFAULT, TEL_HOME, TEL_WORK, TEL_MOBIL } TelefonType; typedef enum { ADDR_DEFAULT, ADDR_HOME, ADDR_WORK, ADDR_OTHER } AddressType; typedef enum { PHOTO_DEFAULT, PHOTO_GIF, PHOTO_PNG, PHOTO_JPG } PhotoType; typedef enum { EMAIL_DEFAULT, EMAIL_HOME, EMAIL_WORK, EMAIL_OTHER } EmailType; typedef struct { gchar* name; gchar* value; } VCardProperty; G_END_DECLS #endif