Akonadi
collectionmodifyhandler.cpp
36 Collection collection = HandlerHelper::collectionFromScope(cmd.collection(), connection()->context());
45 if (newParent.isValid() && collection.parentId() != newParent.id() && collection.resourceId() != newParent.resourceId()) {
47 ItemRetriever retriever(akonadi().itemRetrievalManager(), connection(), connection()->context());
137 qCWarning(AKONADISERVER_LOG) << "Invalid attempt to modify the collection remoteID from" << collection.remoteId() << "to" << cmd.remoteId();
229 qb.addValueCondition(CollectionAttribute::collectionIdColumn(), Query::Equals, collection.id());
void setName(const QString &name)
Sets the i18n'ed name of the collection.
Definition collection.cpp:221
void setRemoteId(const QString &id)
Sets the remote id of the collection.
Definition collection.cpp:101
void setRemoteRevision(const QString &revision)
Sets the remote revision of the collection.
Definition collection.cpp:111
A RAII helper class to temporarily stop the CacheCleaner.
Definition cachecleaner.h:32
bool parseStream() override
Parse and handle the IMAP message using the streaming parser.
Definition collectionmodifyhandler.cpp:32
virtual bool moveCollection(Collection &collection, const Collection &newParent)
moves the collection collection to newParent.
Definition datastore.cpp:919
NotificationCollector * notificationCollector()
Returns the notification collector of this DataStore object.
Definition datastore.cpp:238
virtual bool removeCollectionAttribute(const Collection &col, const QByteArray &key)
Removes the given collection attribute for col.
Definition datastore.cpp:1228
The handler interfaces describes an entity capable of handling an AkonadiIMAP command.
Definition handler.h:32
Helper class for retrieving missing items parts from remote resources.
Definition itemretriever.h:39
void setCollection(const Collection &collection, bool recursive=true)
Retrieve all items in the given collection.
Definition itemretriever.cpp:86
void collectionChanged(const Collection &collection, const QList< QByteArray > &changes, const QByteArray &resource=QByteArray())
Notify about a changed collection.
Definition notificationcollector.cpp:123
void collectionUnsubscribed(const Collection &collection, const QByteArray &resource=QByteArray())
Notify about a collection unsubscription.
Definition notificationcollector.cpp:174
void collectionSubscribed(const Collection &collection, const QByteArray &resource=QByteArray())
Notify about a collection subscription.
Definition notificationcollector.cpp:165
void addValueCondition(const QString &column, Query::CompareOperator op, const QVariant &value, ConditionType type=WhereCondition)
Add a WHERE or HAVING condition which compares a column with a given value.
Definition querybuilder.cpp:258
virtual void updateSearch(const Collection &collection)
Updates the search query synchronously.
Definition searchmanager.cpp:225
Helper class for creating and executing database SELECT queries.
Definition selectquerybuilder.h:21
Helper class for DataStore transaction handling.
Definition transaction.h:23
bool hasAllowedName(const Collection &collection, const QString &name, Collection::Id parent)
Checks if a collection could exist in the given parent folder with the given name.
Definition collectionqueryhelper.cpp:50
Helper integration between Akonadi and Qt.
void append(QList< T > &&value)
iterator begin()
bool contains(const AT &value) const const
iterator end()
bool isEmpty() const const
qsizetype removeAll(const AT &t)
bool removeOne(const AT &t)
const_iterator cbegin() const const
const_iterator cend() const const
QString fromLatin1(QByteArrayView str)
bool isEmpty() const const
QString number(double n, char format, int precision)
QString join(QChar separator) const const
This file is part of the KDE documentation.
Documentation copyright © 1996-2024 The KDE developers.
Generated on Mon Nov 4 2024 16:31:59 by doxygen 1.12.0 written by Dimitri van Heesch, © 1997-2006
Documentation copyright © 1996-2024 The KDE developers.
Generated on Mon Nov 4 2024 16:31:59 by doxygen 1.12.0 written by Dimitri van Heesch, © 1997-2006
KDE's Doxygen guidelines are available online.