Akonadi
tagcreatehandler.cpp
42 return failureResponse(QStringLiteral("Unable to create tagtype '") % typeName % QStringLiteral("'"));
92 qb.addValueCondition(TagRemoteIdResourceRelation::resourceIdColumn(), Query::Equals, resourceId);
98 // If the relation is already existing simply update it (can happen if a resource simply creates the tag again while enabling merge)
101 // Simply using update() doesn't work since TagRemoteIdResourceRelation only takes the tagId for identification of the column
104 qb.addValueCondition(TagRemoteIdResourceRelation::resourceIdColumn(), Query::Equals, resourceId);
105 qb.setColumnValue(TagRemoteIdResourceRelation::remoteIdColumn(), QString::fromUtf8(cmd.remoteId()));
Helper class for DataStore transaction handling.
Definition: transaction.h:22
QString fromUtf8(const char *str, int size)
Helper class for creating queries to count elements in a database.
Definition: countquerybuilder.h:22
The handler interfaces describes an entity capable of handling an AkonadiIMAP command.
Definition: handler.h:39
bool isValid(QStringView ifopt)
Attribute that stores the properties that are used to display a tag.
Definition: tagattribute.h:26
Helper class to construct arbitrary SQL queries.
Definition: querybuilder.h:31
Helper integration between Akonadi and Qt.
This file is part of the KDE documentation.
Documentation copyright © 1996-2022 The KDE developers.
Generated on Thu Jun 30 2022 03:51:47 by doxygen 1.8.17 written by Dimitri van Heesch, © 1997-2006
Documentation copyright © 1996-2022 The KDE developers.
Generated on Thu Jun 30 2022 03:51:47 by doxygen 1.8.17 written by Dimitri van Heesch, © 1997-2006
KDE's Doxygen guidelines are available online.