File indexing completed on 2024-11-24 04:44:12

0001 /*
0002  * SPDX-FileCopyrightText: 2012 Christian Mollekopf <mollekopf@kolabsys.com>
0003  *
0004  * SPDX-License-Identifier: LGPL-3.0-or-later
0005  */
0006 
0007 #pragma once
0008 
0009 namespace Kolab
0010 {
0011 #define KOLAB_FOLDER_TYPE_MAIL "mail"
0012 #define KOLAB_FOLDER_TYPE_CONTACT "contact"
0013 #define KOLAB_FOLDER_TYPE_EVENT "event"
0014 #define KOLAB_FOLDER_TYPE_TASK "task"
0015 #define KOLAB_FOLDER_TYPE_JOURNAL "journal"
0016 #define KOLAB_FOLDER_TYPE_NOTE "note"
0017 #define KOLAB_FOLDER_TYPE_CONFIGURATION "configuration"
0018 #define KOLAB_FOLDER_TYPE_FREEBUSY "freebusy"
0019 #define KOLAB_FOLDER_TYPE_FILE "file"
0020 
0021 #define KOLAB_FOLDER_TYPE_DEFAULT_SUFFIX ".default"
0022 #define KOLAB_FOLDER_TYPE_DRAFT_SUFFIX ".drafts"
0023 #define KOLAB_FOLDER_TYPE_SENT_SUFFIX ".sentitems"
0024 #define KOLAB_FOLDER_TYPE_OUTBOX_SUFFIX ".outbox"
0025 #define KOLAB_FOLDER_TYPE_TRASH_SUFFIX ".wastebasket"
0026 #define KOLAB_FOLDER_TYPE_JUNK_SUFFIX ".junkemail"
0027 #define KOLAB_FOLDER_TYPE_INBOX_SUFFIX ".inbox"
0028 
0029 #define KOLAB_FOLDER_TYPE_ANNOTATION "/vendor/kolab/folder-type"
0030 
0031 #define X_KOLAB_TYPE_HEADER "X-Kolab-Type"
0032 #define X_KOLAB_MIME_VERSION_HEADER "X-Kolab-Mime-Version"
0033 #define X_KOLAB_MIME_VERSION_HEADER_COMPAT "X-Kolab-Version"
0034 #define KOLAB_VERSION_V2 QStringLiteral("2.0")
0035 #define KOLAB_VERSION_V3 QStringLiteral("3.0")
0036 
0037 #define KOLAB_OBJECT_FILENAME QStringLiteral("kolab.xml")
0038 
0039 #define MIME_TYPE_XCAL "application/calendar+xml"
0040 #define MIME_TYPE_XCARD "application/vcard+xml"
0041 #define MIME_TYPE_KOLAB "application/vnd.kolab+xml"
0042 
0043 #define KOLAB_TYPE_EVENT "application/x-vnd.kolab.event"
0044 #define KOLAB_TYPE_TASK "application/x-vnd.kolab.task"
0045 #define KOLAB_TYPE_JOURNAL "application/x-vnd.kolab.journal"
0046 #define KOLAB_TYPE_CONTACT "application/x-vnd.kolab.contact"
0047 #define KOLAB_TYPE_DISTLIST_V2 "application/x-vnd.kolab.contact.distlist"
0048 #define KOLAB_TYPE_DISTLIST "application/x-vnd.kolab.distribution-list"
0049 #define KOLAB_TYPE_NOTE "application/x-vnd.kolab.note"
0050 #define KOLAB_TYPE_CONFIGURATION "application/x-vnd.kolab.configuration"
0051 #define KOLAB_TYPE_DICT "application/x-vnd.kolab.configuration.dictionary"
0052 #define KOLAB_TYPE_FREEBUSY "application/x-vnd.kolab.freebusy"
0053 #define KOLAB_TYPE_FILE "application/x-vnd.kolab.file"
0054 #define KOLAB_TYPE_RELATION "application/x-vnd.kolab.configuration.relation"
0055 
0056 enum Version {
0057     KolabV2,
0058     KolabV3,
0059 };
0060 
0061 enum ObjectType {
0062     InvalidObject,
0063     EventObject,
0064     TodoObject,
0065     JournalObject,
0066     ContactObject,
0067     DistlistObject,
0068     NoteObject,
0069     DictionaryConfigurationObject,
0070     FreebusyObject,
0071     RelationConfigurationObject
0072 };
0073 }