• Skip to content
  • Skip to link menu
KDE 4.1 API Reference
  • KDE API Reference
  • KDE-PIM Libraries
  • Sitemap
  • Contact Us
 

akonadi

Akonadi::AttributeFactory

Akonadi::AttributeFactory Class Reference

#include <attributefactory.h>

Inherited by StaticAttributeFactory.

List of all members.


Detailed Description

Provides the functionality of registering and creating arbitrary entity attributes.

This class provides the functionality of registering and creating arbitrary Attributes for Entity and its subclasses (e.g. Item and Collection).

 // register the type first
 Akonadi::AttributeFactory::registerAttribute<SecrecyAttribute>();

 ...

 // use it anywhere else in the application
 SecrecyAttribute *attr = Akonadi::AttributeFactory::createAttribute( "secrecy" );

Author:
Volker Krause <vkrause@kde.org>

Definition at line 48 of file attributefactory.h.


Static Public Member Functions

static Attribute * createAttribute (const QByteArray &type)
template<typename T>
static void registerAttribute ()

Member Function Documentation

Attribute * AttributeFactory::createAttribute ( const QByteArray &  type  )  [static]

Creates an entity attribute object of the given type.

Parameters:
type The attribute type.

Definition at line 107 of file attributefactory.cpp.

template<typename T>
static void Akonadi::AttributeFactory::registerAttribute (  )  [inline, static]

Register a custom attribute of type T.

Definition at line 58 of file attributefactory.h.


The documentation for this class was generated from the following files:
  • attributefactory.h
  • attributefactory.cpp

akonadi

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

KDE-PIM Libraries

Skip menu "KDE-PIM Libraries"
  • akonadi
  • kabc
  • kblog
  • kcal
  • kimap
  • kioslave
  •   imap4
  •   mbox
  • kldap
  • kmime
  • kpimidentities
  • kpimutils
  • kresources
  • ktnef
  • kxmlrpcclient
  • mailtransport
  • qgpgme
  • syndication
  •   atom
  •   rdf
  •   rss2
Generated for KDE-PIM Libraries by doxygen 1.5.4
This website is maintained by Adriaan de Groot and Allen Winter.
KDE® and the K Desktop Environment® logo are registered trademarks of KDE e.V. | Legal