10#include "kimap_export.h"
14#include <QSharedDataPointer>
24class SearchJobPrivate;
51 enum BooleanSearchKey {
70 enum NumberSearchKey {
74 enum SequenceSearchKey {
83 Term(BooleanSearchKey key);
84 Term(DateSearchKey key,
const QDate &date);
85 Term(NumberSearchKey key,
int value);
92 bool operator==(
const Term &other)
const;
94 [[nodiscard]]
bool isNull()
const;
96 Term &setFuzzy(
bool fuzzy);
97 Term &setNegated(
bool negated);
106class KIMAP_EXPORT SearchJob :
public Job
109 Q_DECLARE_PRIVATE(SearchJob)
111 friend class SessionPrivate;
120 enum SearchCriteria {
156 explicit SearchJob(
Session *session);
157 ~SearchJob()
override;
159 void setUidBased(
bool uidBased);
160 bool isUidBased()
const;
178 KIMAP_DEPRECATED
void addSearchCriteria(SearchCriteria criteria);
188 KIMAP_DEPRECATED
void addSearchCriteria(SearchCriteria criteria,
const QByteArray &argument);
198 KIMAP_DEPRECATED
void addSearchCriteria(SearchCriteria criteria,
int argument);
208 KIMAP_DEPRECATED
void addSearchCriteria(SearchCriteria criteria,
const QDate &argument);
216 KIMAP_DEPRECATED
void addSearchCriteria(
const QByteArray &searchCriteria);
223 KIMAP_DEPRECATED
void setSearchLogic(SearchLogic logic);
230 void setTerm(
const Term &);
233 void doStart()
override;
234 void handleResponse(
const Response &response)
override;
Represents a set of natural numbers (1->∞) in a as compact as possible form.
This file is part of the KDE documentation.
Documentation copyright © 1996-2024 The KDE developers.
Generated on Fri Nov 8 2024 12:06:50 by
doxygen 1.12.0 written
by
Dimitri van Heesch, © 1997-2006
KDE's Doxygen guidelines are available online.