• Skip to content
  • Skip to link menu
KDE API Reference
  • KDE API Reference
  • kdepimlibs API Reference
  • KDE Home
  • Contact Us
 

akonadi

  • Akonadi
  • Tag
Public Types | Public Member Functions | Static Public Member Functions | Static Public Attributes | List of all members
Akonadi::Tag Class Reference

#include <tag.h>

Inheritance diagram for Akonadi::Tag:
Inheritance graph
[legend]

Public Types

typedef qint64 Id
 
typedef QList< Tag > List
 
- Public Types inherited from Akonadi::AttributeEntity
enum  CreateOption { AddIfMissing }
 

Public Member Functions

 Tag (Id id)
 
 Tag (const QString &name)
 
 Tag (const Tag &other)
 
QByteArray gid () const
 
Id id () const
 
bool isImmutable () const
 
bool isValid () const
 
QString name () const
 
Tag & operator= (const Tag &)
 
AttributeEntity & operator= (const AttributeEntity &)
 
bool operator== (const Tag &) const
 
Tag parent () const
 
QByteArray remoteId () const
 
void setGid (const QByteArray &gid) const
 
void setId (Id identifier)
 
void setName (const QString &name)
 
void setParent (const Tag &parent)
 
void setRemoteId (const QByteArray &remoteId) const
 
void setType (const QByteArray &type) const
 
QByteArray type () const
 
KUrl url () const
 
- Public Member Functions inherited from Akonadi::AttributeEntity
 AttributeEntity (const AttributeEntity &other)
 
void addAttribute (Attribute *attribute)
 
Attribute * attribute (const QByteArray &name) const
 
template<typename T >
T * attribute (CreateOption option)
 
template<typename T >
T * attribute () const
 
Attribute::List attributes () const
 
void clearAttributes ()
 
bool hasAttribute (const QByteArray &name) const
 
template<typename T >
bool hasAttribute () const
 
void removeAttribute (const QByteArray &name)
 
template<typename T >
void removeAttribute ()
 

Static Public Member Functions

static Tag fromUrl (const KUrl &url)
 

Static Public Attributes

static const char * PLAIN = "PLAIN"
 

Detailed Description

An Akonadi Tag.

Definition at line 43 of file tag.h.

Constructor & Destructor Documentation

Tag::Tag ( const QString &  name)
explicit

Creates a PLAIN tag.

Definition at line 56 of file tag.cpp.

Member Function Documentation

Tag::Id Tag::id ( ) const

Returns the unique identifier of the tag.

Definition at line 131 of file tag.cpp.

bool Tag::isImmutable ( ) const

Returns true if the tag is immutable (cannot be modified after creation).

Note that the immutability does not affect the attributes.

Definition at line 201 of file tag.cpp.

void Tag::setId ( Tag::Id  identifier)

Sets the unique identifier of the tag.

Definition at line 126 of file tag.cpp.

KUrl Tag::url ( ) const

Returns the url of the tag.

Definition at line 118 of file tag.cpp.

Member Data Documentation

const char * Akonadi::Tag::PLAIN = "PLAIN"
static

The PLAIN type has the following properties:

  • gid == displayName
  • immutable
  • no hierarchy (no parent)

PLAIN tags are general purpose tags that are easy to map by backends.

Definition at line 57 of file tag.h.


The documentation for this class was generated from the following files:
  • tag.h
  • tag.cpp
This file is part of the KDE documentation.
Documentation copyright © 1996-2020 The KDE developers.
Generated on Mon Jun 22 2020 13:38:05 by doxygen 1.8.7 written by Dimitri van Heesch, © 1997-2006

KDE's Doxygen guidelines are available online.

akonadi

Skip menu "akonadi"
  • Main Page
  • Namespace List
  • Namespace Members
  • Alphabetical List
  • Class List
  • Class Hierarchy
  • Class Members
  • File List
  • Modules
  • Related Pages

kdepimlibs API Reference

Skip menu "kdepimlibs API Reference"
  • akonadi
  •   contact
  •   kmime
  •   socialutils
  • kabc
  • kalarmcal
  • kblog
  • kcal
  • kcalcore
  • kcalutils
  • kholidays
  • kimap
  • kioslave
  •   imap4
  •   mbox
  •   nntp
  • kldap
  • kmbox
  • kmime
  • kontactinterface
  • kpimidentities
  • kpimtextedit
  • kpimutils
  • kresources
  • ktnef
  • kxmlrpcclient
  • mailtransport
  • microblog
  • qgpgme
  • syndication
  •   atom
  •   rdf
  •   rss2

Search



Report problems with this website to our bug tracking system.
Contact the specific authors with questions and comments about the page contents.

KDE® and the K Desktop Environment® logo are registered trademarks of KDE e.V. | Legal