summaryrefslogtreecommitdiff
path: root/kolabformat/kolabobject.h
diff options
context:
space:
mode:
Diffstat (limited to 'kolabformat/kolabobject.h')
-rw-r--r--kolabformat/kolabobject.h15
1 files changed, 15 insertions, 0 deletions
diff --git a/kolabformat/kolabobject.h b/kolabformat/kolabobject.h
index 1b39ad6..71a0e4b 100644
--- a/kolabformat/kolabobject.h
+++ b/kolabformat/kolabobject.h
@@ -20,6 +20,7 @@
#include <kolab_export.h>
+#include <akonadi/tag.h>
#include <kabc/addressee.h>
#include <kabc/contactgroup.h>
#include <kcalcore/incidence.h>
@@ -37,6 +38,17 @@ class Freebusy;
KOLAB_EXPORT KCalCore::Event::Ptr readV2EventXML(const QByteArray &xmlData, QStringList &attachments);
+struct KOLAB_EXPORT RelationMember {
+ QString messageId;
+ QString subject;
+ QString date;
+ QList<QByteArray> mailbox;
+ QString user;
+ qint64 uid;
+};
+KOLAB_EXPORT RelationMember parseMemberUrl(const QString &url);
+KOLAB_EXPORT QString generateMemberUrl(const RelationMember &url);
+
/**
* Class to read Kolab Mime files
*
@@ -87,6 +99,8 @@ public:
KMime::Message::Ptr getNote() const;
QStringList getDictionary(QString &lang) const;
Freebusy getFreebusy() const;
+ Akonadi::Tag getTag() const;
+ QStringList getTagMembers() const;
private:
//@cond PRIVATE
@@ -111,6 +125,7 @@ public:
static KMime::Message::Ptr writeNote(const KMime::Message::Ptr &, Version v = KolabV3, const QString &productId = QString());
static KMime::Message::Ptr writeDictionary(const QStringList &, const QString &lang, Version v = KolabV3, const QString &productId = QString());
static KMime::Message::Ptr writeFreebusy(const Kolab::Freebusy &, Version v = KolabV3, const QString &productId = QString());
+ static KMime::Message::Ptr writeTag(const Akonadi::Tag &, const QStringList &items, Version v = KolabV3, const QString &productId = QString());
};