akonadi
#include <attributefactory.h>
Inherited by Akonadi::Internal::StaticAttributeFactory.
Static Public Member Functions | |
static Attribute * | createAttribute (const QByteArray &type) |
template<typename T > | |
static void | registerAttribute () |
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).
Definition at line 48 of file attributefactory.h.
Member Function Documentation
|
static |
Creates an entity attribute object of the given type.
If the type has not been registered, creates a DefaultAttribute.
- Parameters
-
type The attribute type.
Definition at line 147 of file attributefactory.cpp.
|
inlinestatic |
Registers a custom attribute of type T.
The same attribute cannot be registered more than once.
Definition at line 59 of file attributefactory.h.
The documentation for this class was generated from the following files:
Documentation copyright © 1996-2020 The KDE developers.
Generated on Mon Jun 22 2020 13:38:04 by doxygen 1.8.7 written by Dimitri van Heesch, © 1997-2006
KDE's Doxygen guidelines are available online.