Akonadi::Server::HandlerHelper
#include <handlerhelper.h>
Static Public Member Functions | |
static QVector< Protocol::Ancestor > | ancestorsResponse (int ancestorDepth, const QStack< Collection > &ancestors, const QStack< CollectionAttribute::List > &_ancestorsAttributes=QStack< CollectionAttribute::List >()) |
static Protocol::CachePolicy | cachePolicyResponse (const Collection &col) |
static Collection | collectionFromIdOrName (const QByteArray &id) |
static Collection | collectionFromScope (const Scope &scope, const CommandContext &context) |
static Protocol::FetchCollectionsResponse | fetchCollectionsResponse (AkonadiServer &akonadi, const Collection &col) |
static Protocol::FetchCollectionsResponse | fetchCollectionsResponse (AkonadiServer &akonadi, const Collection &col, const CollectionAttribute::List &attributeList, bool includeStatistics=false, int ancestorDepth=0, const QStack< Collection > &ancestors=QStack< Collection >(), const QStack< CollectionAttribute::List > &ancestorAttributes=QStack< CollectionAttribute::List >(), const QStringList &mimeTypes=QStringList()) |
static Protocol::FetchRelationsResponse | fetchRelationsResponse (const Relation &relation) |
static Protocol::FetchTagsResponse | fetchTagsResponse (const Tag &tag, const Protocol::TagFetchScope &tagFetchScope, Connection *connection=nullptr) |
static QString | pathForCollection (const Collection &col) |
static Flag::List | resolveFlags (const QSet< QByteArray > &flagNames) |
static Tag::List | resolveTagsByGID (const QStringList &tagsGIDs) |
static Tag::List | resolveTagsByRID (const QStringList &tagsRIDs, const CommandContext &context) |
static Tag::List | resolveTagsByUID (const ImapSet &tags) |
static Tag::List | tagsFromScope (const Scope &scope, const CommandContext &context) |
Detailed Description
Helper functions for command handlers.
Definition at line 45 of file handlerhelper.h.
Member Function Documentation
◆ ancestorsResponse()
|
static |
Returns the protocol representation of a collection ancestor chain.
Definition at line 162 of file handlerhelper.cpp.
◆ cachePolicyResponse()
|
static |
Returns the protocol representation of the cache policy of the given Collection object.
Definition at line 73 of file handlerhelper.cpp.
◆ collectionFromIdOrName()
|
static |
Returns the collection identified by the given id or path.
Definition at line 27 of file handlerhelper.cpp.
◆ fetchCollectionsResponse() [1/2]
|
static |
Returns the protocol representation of the given collection.
Make sure DataStore::activeCachePolicy() has been called before to include the effective cache policy
Definition at line 86 of file handlerhelper.cpp.
◆ fetchCollectionsResponse() [2/2]
|
static |
Returns the protocol representation of the given collection.
Make sure DataStore::activeCachePolicy() has been called before to include the effective cache policy
Definition at line 98 of file handlerhelper.cpp.
◆ pathForCollection()
|
static |
Returns the full path for the given collection.
Definition at line 62 of file handlerhelper.cpp.
◆ resolveFlags()
|
static |
Converts a bytearray list of flag names into flag records.
- Exceptions
-
HandlerException on errors during database operations
Definition at line 273 of file handlerhelper.cpp.
◆ resolveTagsByUID()
|
static |
Converts a imap set of tags into tag records.
- Exceptions
-
HandlerException on errors during database operations
Definition at line 287 of file handlerhelper.cpp.
The documentation for this class was generated from the following files:
Documentation copyright © 1996-2022 The KDE developers.
Generated on Tue Aug 16 2022 04:00:10 by doxygen 1.8.17 written by Dimitri van Heesch, © 1997-2006
KDE's Doxygen guidelines are available online.