Akonadi::Search::PIM::EmailQuery
#include <emailquery.h>

Public Types | |
enum | OpType : uint8_t { OpAnd = 0 , OpOr } |
Public Member Functions | |
void | addBcc (const QString &bcc) |
void | addCc (const QString &cc) |
void | addCollection (Akonadi::Collection::Id id) |
void | addFrom (const QString &from) |
void | addInvolves (const QString &email) |
void | addTo (const QString &to) |
void | bodyMatches (const QString &bodyMatch) |
ResultIterator | exec () override |
int | limit () const |
void | matches (const QString &match) |
void | setAttachment (bool hasAttachment=true) |
void | setBcc (const QStringList &bcc) |
void | setCc (const QStringList &cc) |
void | setCollection (const QList< Akonadi::Collection::Id > &collections) |
void | setFrom (const QString &from) |
void | setImportant (bool important=true) |
void | setInvolves (const QStringList &involves) |
void | setLimit (int limit) |
void | setRead (bool read=true) |
void | setSearchType (OpType op) |
void | setSplitSearchMatchString (bool split) |
void | setTo (const QStringList &to) |
void | subjectMatches (const QString &subjectMatch) |
Additional Inherited Members | |
![]() | |
static QString | defaultLocation (const QString &dbName) |
static Query * | fromJSON (const QByteArray &json) |
Detailed Description
Email query.
Definition at line 28 of file emailquery.h.
Member Enumeration Documentation
◆ OpType
Definition at line 34 of file emailquery.h.
Constructor & Destructor Documentation
◆ EmailQuery()
Definition at line 55 of file emailquery.cpp.
Member Function Documentation
◆ addBcc()
Definition at line 83 of file emailquery.cpp.
◆ addCc()
Definition at line 113 of file emailquery.cpp.
◆ addCollection()
Definition at line 123 of file emailquery.cpp.
◆ addFrom()
Definition at line 118 of file emailquery.cpp.
◆ addInvolves()
Definition at line 73 of file emailquery.cpp.
◆ addTo()
Definition at line 103 of file emailquery.cpp.
◆ bodyMatches()
Matches the string bodyMatch
specifically in the body email.
Definition at line 153 of file emailquery.cpp.
◆ exec()
|
nodiscardoverridevirtual |
Execute the query and return an iterator to fetch the results.
Implements Akonadi::Search::PIM::Query.
Definition at line 173 of file emailquery.cpp.
◆ limit()
|
nodiscard |
Definition at line 133 of file emailquery.cpp.
◆ matches()
Matches the string match
anywhere in the entire email body.
Definition at line 143 of file emailquery.cpp.
◆ setAttachment()
By default the attachment status is ignored.
Definition at line 158 of file emailquery.cpp.
◆ setBcc()
Definition at line 88 of file emailquery.cpp.
◆ setCc()
Definition at line 93 of file emailquery.cpp.
◆ setCollection()
Definition at line 128 of file emailquery.cpp.
◆ setFrom()
Definition at line 98 of file emailquery.cpp.
◆ setImportant()
By default the importance is ignored.
Definition at line 163 of file emailquery.cpp.
◆ setInvolves()
Definition at line 78 of file emailquery.cpp.
◆ setLimit()
Definition at line 138 of file emailquery.cpp.
◆ setRead()
By default the read status is ignored.
Definition at line 168 of file emailquery.cpp.
◆ setSearchType()
Definition at line 68 of file emailquery.cpp.
◆ setSplitSearchMatchString()
Definition at line 63 of file emailquery.cpp.
◆ setTo()
Definition at line 108 of file emailquery.cpp.
◆ subjectMatches()
Matches the string subjectMatch
specifically in the email subject.
Definition at line 148 of file emailquery.cpp.
The documentation for this class was generated from the following files:
Documentation copyright © 1996-2025 The KDE developers.
Generated on Fri Apr 11 2025 11:50:06 by doxygen 1.13.2 written by Dimitri van Heesch, © 1997-2006
KDE's Doxygen guidelines are available online.