summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAaron Seigo <aseigo@kde.org>2014-11-05 13:41:03 (GMT)
committerAaron Seigo <aseigo@kde.org>2014-11-05 13:50:24 (GMT)
commit51bac9516262f0d49959c076f917f251f8d41e5d (patch)
treed08f4eeb6d965a6d6df3ac798f3ccacb7953bc8a
parent7746f2d0e206074964660143626d92c438525461 (diff)
downloadlibkolab-51bac9516262f0d49959c076f917f251f8d41e5d.tar.gz
introduce isTag() to easily tell if we're dealing with a tag
-rw-r--r--kolabformat/kolabobject.cpp5
-rw-r--r--kolabformat/kolabobject.h1
2 files changed, 6 insertions, 0 deletions
diff --git a/kolabformat/kolabobject.cpp b/kolabformat/kolabobject.cpp
index cc50d9e..d6150c9 100644
--- a/kolabformat/kolabobject.cpp
+++ b/kolabformat/kolabobject.cpp
@@ -572,6 +572,11 @@ Freebusy KolabObjectReader::getFreebusy() const
}
#ifdef HAVE_TAG_H
+bool KolabObjectReader::isTag() const
+{
+ return d->mTag.isValid();
+}
+
Akonadi::Relation KolabObjectReader::getRelation() const
{
return d->mRelation;
diff --git a/kolabformat/kolabobject.h b/kolabformat/kolabobject.h
index dff7a6b..6c53f82 100644
--- a/kolabformat/kolabobject.h
+++ b/kolabformat/kolabobject.h
@@ -107,6 +107,7 @@ public:
QStringList getDictionary(QString &lang) const;
Freebusy getFreebusy() const;
#ifdef HAVE_TAG_H
+ bool isTag() const;
Akonadi::Relation getRelation() const;
Akonadi::Tag getTag() const;
QStringList getTagMembers() const;