Akonadi
entity.h
92 return Entity::relatesToImpl(store, T::tableName(), T::leftColumn(), T::rightColumn(), leftId, rightId);
109 return Entity::addToRelationImpl(store, T::tableName(), T::leftColumn(), T::rightColumn(), leftId, rightId);
126 return Entity::removeFromRelationImpl(store, T::tableName(), T::leftColumn(), T::rightColumn(), leftId, rightId);
147 return Entity::clearRelationImpl(store, T::tableName(), T::leftColumn(), T::rightColumn(), id, side);
158 static int countImpl(DataStore *store, const QString &tableName, const QString &column, const QVariant &value);
159 static bool removeImpl(DataStore *store, const QString &tableName, const QString &column, const QVariant &value);
160 static bool relatesToImpl(DataStore *store, const QString &tableName, const QString &leftColumn, const QString &rightColumn, qint64 leftId, qint64 rightId);
162 addToRelationImpl(DataStore *store, const QString &tableName, const QString &leftColumn, const QString &rightColumn, qint64 leftId, qint64 rightId);
164 removeFromRelationImpl(DataStore *store, const QString &tableName, const QString &leftColumn, const QString &rightColumn, qint64 leftId, qint64 rightId);
static bool remove(const QString &column, const QVariant &value)
Deletes all records having value in column.
Definition entity.h:67
static bool clearRelation(qint64 id, RelationSide side=Left)
Clears all entries from a n:m relation table (specified by the given template parameter).
Definition entity.h:140
static bool relatesTo(qint64 leftId, qint64 rightId)
Checks whether an entry in a n:m relation table exists.
Definition entity.h:84
static bool addToRelation(qint64 leftId, qint64 rightId)
Adds an entry to a n:m relation table (specified by the template parameter).
Definition entity.h:101
static bool removeFromRelation(qint64 leftId, qint64 rightId)
Removes an entry from a n:m relation table (specified by the template parameter).
Definition entity.h:118
static int count(const QString &column, const QVariant &value)
Returns the number of records having value in column.
Definition entity.h:52
Helper integration between Akonadi and Qt.
qsizetype count() const const
void reserve(qsizetype size)
Server
QString join(QChar separator) const const
Definition entity.h:192
This file is part of the KDE documentation.
Documentation copyright © 1996-2024 The KDE developers.
Generated on Mon Nov 18 2024 12:08:30 by doxygen 1.12.0 written by Dimitri van Heesch, © 1997-2006
Documentation copyright © 1996-2024 The KDE developers.
Generated on Mon Nov 18 2024 12:08:30 by doxygen 1.12.0 written by Dimitri van Heesch, © 1997-2006
KDE's Doxygen guidelines are available online.