akonadi/kmime
specialmailcollections.cpp
56static const int s_numTypes = sizeof s_specialCollectionTypes / sizeof * s_specialCollectionTypes;
119 if (collection != Akonadi::SpecialMailCollections::self()->defaultCollection(Akonadi::SpecialMailCollections::Trash)) {
182SpecialMailCollections::Type SpecialMailCollections::specialCollectionType(const Akonadi::Collection &collection)
Interface to special mail collections such as inbox, outbox etc.
Definition: specialmailcollections.h:68
Type
Describes the possible types of special mail collections.
Definition: specialmailcollections.h:78
bool unregisterCollection(const Collection &collection)
Unregisters the given collection as a special mail collection.
Definition: specialmailcollections.cpp:117
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 hasDefaultCollection(Type type) const
Returns whether the default resource has a special mail collection of the given type.
Definition: specialmailcollections.cpp:126
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
Akonadi::Collection collection(Type type, const AgentInstance &instance) const
Returns the special mail collection of the given type in the given agent instance,...
Definition: specialmailcollections.cpp:107
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 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
This file is part of the KDE documentation.
Documentation copyright © 1996-2022 The KDE developers.
Generated on Thu Jul 21 2022 00:00:00 by doxygen 1.9.5 written by Dimitri van Heesch, © 1997-2006
Documentation copyright © 1996-2022 The KDE developers.
Generated on Thu Jul 21 2022 00:00:00 by doxygen 1.9.5 written by Dimitri van Heesch, © 1997-2006
KDE's Doxygen guidelines are available online.