Akonadi
persistentsearchattribute.h
49 * Akonadi::PersistentSearchAttribute *attribute = searchCollection.attribute<Akonadi::PersistentSearchAttribute>();
52 * Akonadi::CollectionModifyJob *modifyJob = new Akonadi::CollectionModifyJob( searchCollection );
virtual void deserialize(const QByteArray &data)=0
Sets the data of this attribute, using the same encoding as returned by toByteArray().
virtual QByteArray serialized() const =0
Returns a QByteArray representation of the attribute which will be storaged.
bool isRecursive() const
Returns whether the search is recursive.
Definition persistentsearchattribute.cpp:62
PersistentSearchAttribute()
Creates a new persistent search attribute.
Definition persistentsearchattribute.cpp:26
void setRecursive(bool recursive)
Sets whether the search should recurse into collections.
Definition persistentsearchattribute.cpp:67
~PersistentSearchAttribute() override
Destroys the persistent search attribute.
QList< qint64 > queryCollections() const
Returns IDs of collections that will be queried.
Definition persistentsearchattribute.cpp:43
void setQueryCollections(const QList< Collection > &collections)
Sets collections to be queried.
Definition persistentsearchattribute.cpp:48
bool isRemoteSearchEnabled() const
Returns whether remote search is enabled.
Definition persistentsearchattribute.cpp:72
QString queryString() const
Returns the query string used for this search.
Definition persistentsearchattribute.cpp:33
void setQueryString(const QString &query)
Sets the query string to be used for this search.
Definition persistentsearchattribute.cpp:38
void setRemoteSearchEnabled(bool enabled)
Sets whether resources should be queried too.
Definition persistentsearchattribute.cpp:77
Helper integration between Akonadi and Qt.
This file is part of the KDE documentation.
Documentation copyright © 1996-2025 The KDE developers.
Generated on Fri Jan 24 2025 11:49:56 by doxygen 1.13.2 written by Dimitri van Heesch, © 1997-2006
Documentation copyright © 1996-2025 The KDE developers.
Generated on Fri Jan 24 2025 11:49:56 by doxygen 1.13.2 written by Dimitri van Heesch, © 1997-2006
KDE's Doxygen guidelines are available online.