akonadi
specialmailcollections.cpp
56 static const int s_numTypes = sizeof s_specialCollectionTypes / sizeof *s_specialCollectionTypes;
119 if (collection != Akonadi::SpecialMailCollections::self()->defaultCollection( Akonadi::SpecialMailCollections::Trash )) {
182 SpecialMailCollections::Type SpecialMailCollections::specialCollectionType(const Akonadi::Collection &collection)
Job that modifies a collection in the Akonadi storage.
Definition: collectionmodifyjob.h:82
bool hasDefaultCollection(Type type) const
Returns whether the default resource has a special mail collection of the given type.
Definition: specialmailcollections.cpp:126
bool registerCollection(const QByteArray &type, const Akonadi::Collection &collection)
Registers the given collection as a special collection with the given type.
Definition: specialcollections.cpp:244
bool hasCollection(const QByteArray &type, const AgentInstance &instance) const
Returns whether the given agent instance has a special collection of the given type.
Definition: specialcollections.cpp:194
The templates collection.
Definition: specialmailcollections.h:87
bool hasDefaultCollection(const QByteArray &type) const
Returns whether the default resource has a special collection of the given type.
Definition: specialcollections.cpp:272
QString displayName() const
Returns the name that should be used for display.
Definition: entitydisplayattribute.cpp:49
Akonadi::Collection collection(Type type, const AgentInstance &instance) const
Returns the special mail collection of the given type in the given agent instance, or an invalid collection if such a collection is unknown.
Definition: specialmailcollections.cpp:107
An Attribute that stores the special collection type of a collection.
Definition: specialcollectionattribute_p.h:39
Attribute * attribute(const QByteArray &name) const
Returns the attribute of the given type name if available, 0 otherwise.
Definition: entity.cpp:165
Akonadi::Collection defaultCollection(const QByteArray &type) const
Returns the special collection of given type in the default resource, or an invalid collection if suc...
Definition: specialcollections.cpp:277
The outbox collection.
Definition: specialmailcollections.h:83
The sent-mail collection.
Definition: specialmailcollections.h:84
Akonadi::Collection collection(const QByteArray &type, const AgentInstance &instance) const
Returns the special collection of the given type in the given agent instance, or an invalid collectio...
Definition: specialcollections.cpp:199
Interface to special mail collections such as inbox, outbox etc.
Definition: specialmailcollections.h:67
Type
Describes the possible types of special mail collections.
Definition: specialmailcollections.h:78
An invalid special collection.
Definition: specialmailcollections.h:80
static Type specialCollectionType(const Akonadi::Collection &collection)
Returns the special collection type for a given collection, or empty if the collection doesn't have a...
Definition: specialmailcollections.cpp:182
static SpecialMailCollections * self()
Returns the global SpecialMailCollections instance.
Definition: specialmailcollections.cpp:97
bool registerCollection(Type type, const Akonadi::Collection &collection)
Registers the given collection as a special mail collection with the given type.
Definition: specialmailcollections.cpp:112
bool hasCollection(Type type, const AgentInstance &instance) const
Returns whether the given agent instance has a special collection of the given type.
Definition: specialmailcollections.cpp:102
bool hasAttribute(const QByteArray &name) const
Returns true if the entity has an attribute of the given type name, false otherwise.
Definition: entity.cpp:146
bool unregisterCollection(const Collection &collection)
Unregisters the given collection as a special mail collection.
Definition: specialmailcollections.cpp:117
The drafts collection.
Definition: specialmailcollections.h:86
QByteArray collectionType() const
Returns the special collections type of the collection.
Definition: specialcollectionattribute.cpp:74
Akonadi::Collection defaultCollection(Type type) const
Returns the special mail collection of given type in the default resource, or an invalid collection i...
Definition: specialmailcollections.cpp:131
bool unregisterCollection(const Collection &collection)
Unregisters the given collection as a spec ial collection.
Definition: specialcollections.cpp:223
static QString addNamespace(const QString &string)
Adds the multi-instance namespace to string if required (with '_' as separator).
Definition: servermanager.cpp:324
Attribute that stores the properties that are used to display an entity.
Definition: entitydisplayattribute.h:39
This file is part of the KDE documentation.
Documentation copyright © 1996-2014 The KDE developers.
Generated on Tue Oct 14 2014 23:00:28 by doxygen 1.8.7 written by Dimitri van Heesch, © 1997-2006
Documentation copyright © 1996-2014 The KDE developers.
Generated on Tue Oct 14 2014 23:00:28 by doxygen 1.8.7 written by Dimitri van Heesch, © 1997-2006
KDE's Doxygen guidelines are available online.