Akonadi
entity.h
70 return Entity::relatesToImpl(T::tableName(), T::leftColumn(), T::rightColumn(), leftId, rightId);
80 return Entity::addToRelationImpl(T::tableName(), T::leftColumn(), T::rightColumn(), leftId, rightId);
90 return Entity::removeFromRelationImpl(T::tableName(), T::leftColumn(), T::rightColumn(), leftId, rightId);
116 static bool relatesToImpl(const QString &tableName, const QString &leftColumn, const QString &rightColumn, qint64 leftId, qint64 rightId);
117 static bool addToRelationImpl(const QString &tableName, const QString &leftColumn, const QString &rightColumn, qint64 leftId, qint64 rightId);
118 static bool removeFromRelationImpl(const QString &tableName, const QString &leftColumn, const QString &rightColumn, qint64 leftId, qint64 rightId);
int count(const T &value) const const
void reserve(int alloc)
static bool removeFromRelation(qint64 leftId, qint64 rightId)
Removes an entry from a n:m relation table (specified by the template parameter).
Definition: entity.h:88
static bool remove(const QString &column, const QVariant &value)
Deletes all records having value in column.
Definition: entity.h:58
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:103
static bool addToRelation(qint64 leftId, qint64 rightId)
Adds an entry to a n:m relation table (specified by the template parameter).
Definition: entity.h:78
static int count(const QString &column, const QVariant &value)
Returns the number of records having value in column.
Definition: entity.h:50
QString join(const QString &separator) const const
Definition: entity.h:145
static bool relatesTo(qint64 leftId, qint64 rightId)
Checks whether an entry in a n:m relation table exists.
Definition: entity.h:68
Helper integration between Akonadi and Qt.
This file is part of the KDE documentation.
Documentation copyright © 1996-2022 The KDE developers.
Generated on Sat Jul 2 2022 06:41:47 by doxygen 1.8.17 written by Dimitri van Heesch, © 1997-2006
Documentation copyright © 1996-2022 The KDE developers.
Generated on Sat Jul 2 2022 06:41:47 by doxygen 1.8.17 written by Dimitri van Heesch, © 1997-2006
KDE's Doxygen guidelines are available online.