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

akonadi

  • Akonadi
  • TagAttribute
Public Member Functions | List of all members
Akonadi::TagAttribute Class Reference

#include <tagattribute.h>

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

Public Member Functions

QColor backgroundColor () const
 
TagAttribute * clone () const
 
void deserialize (const QByteArray &data)
 
QString displayName () const
 
QString font () const
 
QString iconName () const
 
bool inToolbar () const
 
int priority () const
 
QByteArray serialized () const
 
void setBackgroundColor (const QColor &color)
 
void setDisplayName (const QString &name)
 
void setFont (const QString &fontKey)
 
void setIconName (const QString &name)
 
void setInToolbar (bool)
 
void setPriority (int priority)
 
void setShortcut (const QString &)
 
void setTextColor (const QColor &color)
 
QString shortcut () const
 
QColor textColor () const
 
QByteArray type () const
 
- Public Member Functions inherited from Akonadi::Attribute
virtual ~Attribute ()
 

Additional Inherited Members

- Public Types inherited from Akonadi::Attribute
typedef QList< Attribute * > List
 

Detailed Description

Attribute that stores the properties that are used to display a tag.

Since
4.13

Definition at line 38 of file tagattribute.h.

Member Function Documentation

TagAttribute * TagAttribute::clone ( ) const
virtual

Creates a copy of this attribute.

Implements Akonadi::Attribute.

Definition at line 82 of file tagattribute.cpp.

void TagAttribute::deserialize ( const QByteArray &  data)
virtual

Sets the data of this attribute, using the same encoding as returned by toByteArray().

Parameters
dataThe encoded attribute data.

Implements Akonadi::Attribute.

Definition at line 146 of file tagattribute.cpp.

QString TagAttribute::displayName ( ) const

Returns the name that should be used for display.

Users of this should fall back to Collection::name() if this is empty.

Definition at line 56 of file tagattribute.cpp.

QString TagAttribute::iconName ( ) const

Returns the icon name of the icon returned by icon().

Definition at line 66 of file tagattribute.cpp.

int TagAttribute::priority ( ) const

Returns the priority of the tag.

The default value is -1

Definition at line 223 of file tagattribute.cpp.

QByteArray TagAttribute::serialized ( ) const
virtual

Returns a QByteArray representation of the attribute which will be storaged.

This can be raw binary data, no encoding needs to be applied.

Implements Akonadi::Attribute.

Definition at line 96 of file tagattribute.cpp.

void TagAttribute::setDisplayName ( const QString &  name)

Sets the name that should be used for display.

Definition at line 61 of file tagattribute.cpp.

void TagAttribute::setIconName ( const QString &  name)

Sets the icon name for the default icon.

Definition at line 71 of file tagattribute.cpp.

void TagAttribute::setPriority ( int  priority)

Sets the priority of the tag.

The priority is primarily used for presentation, e.g. for sorting. If only one tag can be displayed for a given item, the one with the highest priority should be shown.

Definition at line 218 of file tagattribute.cpp.

QByteArray Akonadi::TagAttribute::type ( ) const
virtual

Returns the type of the attribute.

Implements Akonadi::Attribute.

Definition at line 76 of file tagattribute.cpp.


The documentation for this class was generated from the following files:
  • tagattribute.h
  • tagattribute.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