summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAaron Seigo <aseigo@kde.org>2014-11-05 14:58:38 (GMT)
committerAaron Seigo <aseigo@kde.org>2014-11-05 14:58:38 (GMT)
commitf24f9f072c82d9d197c5ae8648cb31e553851999 (patch)
treeec3131cd10264590ccd78efcb001958cee7fa233
parent51bac9516262f0d49959c076f917f251f8d41e5d (diff)
downloadlibkolab-feature/remoterelationsync.tar.gz
add an isRelation for symmetry with isTagfeature/remoterelationsync
-rw-r--r--kolabformat/kolabobject.cpp5
-rw-r--r--kolabformat/kolabobject.h3
2 files changed, 7 insertions, 1 deletions
diff --git a/kolabformat/kolabobject.cpp b/kolabformat/kolabobject.cpp
index d6150c9..4a9fc5e 100644
--- a/kolabformat/kolabobject.cpp
+++ b/kolabformat/kolabobject.cpp
@@ -577,6 +577,11 @@ bool KolabObjectReader::isTag() const
return d->mTag.isValid();
}
+bool KolabObjectReader::isRelation() const
+{
+ return d->mRelation.isValid();
+}
+
Akonadi::Relation KolabObjectReader::getRelation() const
{
return d->mRelation;
diff --git a/kolabformat/kolabobject.h b/kolabformat/kolabobject.h
index 6c53f82..9bb3762 100644
--- a/kolabformat/kolabobject.h
+++ b/kolabformat/kolabobject.h
@@ -108,8 +108,9 @@ public:
Freebusy getFreebusy() const;
#ifdef HAVE_TAG_H
bool isTag() const;
- Akonadi::Relation getRelation() const;
Akonadi::Tag getTag() const;
+ bool isRelation() const;
+ Akonadi::Relation getRelation() const;
QStringList getTagMembers() const;
#endif