AttributeFactory Class Reference
from PyKDE4.akonadi import *
Namespace: Akonadi
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" );
Methods | |
__init__ (self) | |
Static Methods | |
Akonadi.Attribute | createAttribute (QByteArray type) |
Method Documentation
__init__ | ( | self ) |
Akonadi.Attribute createAttribute | ( | QByteArray | type | |
) |
Creates an entity attribute object of the given type.
- Parameters:
-
type The attribute type.