akonadi/kmime
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)
bool hasDefaultCollection(Type type) const
Returns whether the default resource has a special mail collection of the given type.
Definition: specialmailcollections.cpp:126
The templates collection.
Definition: specialmailcollections.h:86
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
The outbox collection.
Definition: specialmailcollections.h:82
The sent-mail collection.
Definition: specialmailcollections.h:83
bool isEmpty() const
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:79
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 unregisterCollection(const Collection &collection)
Unregisters the given collection as a special mail collection.
Definition: specialmailcollections.cpp:117
The drafts collection.
Definition: specialmailcollections.h:85
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
This file is part of the KDE documentation.
Documentation copyright © 1996-2020 The KDE developers.
Generated on Mon Jun 22 2020 13:38:24 by doxygen 1.8.7 written by Dimitri van Heesch, © 1997-2006
Documentation copyright © 1996-2020 The KDE developers.
Generated on Mon Jun 22 2020 13:38:24 by doxygen 1.8.7 written by Dimitri van Heesch, © 1997-2006
KDE's Doxygen guidelines are available online.