23#include "akonadi_export.h"
32#include <akonadi/attributeentity.h>
34#include <QSharedPointer>
43class AKONADI_EXPORT Tag :
public AttributeEntity
46 typedef QList<Tag> List;
64 explicit Tag(
const QString &name);
66 Tag(
const Tag &other);
70 Tag &operator=(
const Tag &);
72 AttributeEntity &operator=(
const AttributeEntity &);
73 bool operator==(
const Tag &)
const;
75 static Tag fromUrl(
const KUrl &
url);
85 void setId(Id identifier);
92 void setGid(
const QByteArray &gid)
const;
93 QByteArray gid()
const;
95 void setRemoteId(
const QByteArray &remoteId)
const;
96 QByteArray remoteId()
const;
98 void setType(
const QByteArray &type)
const;
99 QByteArray type()
const;
101 void setName(
const QString &name);
102 QString name()
const;
104 void setParent(
const Tag &parent);
107 bool isValid()
const;
117 QSharedPointer<Private> d;
122AKONADI_EXPORT QDebug &operator<<(QDebug &debug,
const Akonadi::Tag &tag);
125Q_DECLARE_METATYPE(Akonadi::Tag::List)
126Q_DECLARE_METATYPE(QSet<Akonadi::Tag>)
Id id() const
Returns the unique identifier of the tag.
bool isImmutable() const
Returns true if the tag is immutable (cannot be modified after creation).
KUrl url() const
Returns the url of the tag.
static const char * PLAIN
The PLAIN type has the following properties:
void setId(Id identifier)
Sets the unique identifier of the tag.
FreeBusyManager::Singleton.
This file is part of the KDE documentation.
Documentation copyright © 1996-2025 The KDE developers.
Generated on Fri Jan 17 2025 00:00:00 by
doxygen 1.13.2 written
by
Dimitri van Heesch, © 1997-2006
KDE's Doxygen guidelines are available online.