11#include "resultiterator.h"
12#include "search_core_export.h"
26class AKONADI_SEARCH_CORE_EXPORT
Query
34 void setTerm(
const Term &t);
35 [[nodiscard]]
Term term()
const;
50 void addType(
const QString &type);
52 void setType(
const QString &type);
64 void setSearchString(
const QString &str);
65 [[nodiscard]]
QString searchString()
const;
71 void setLimit(uint limit);
72 [[nodiscard]] uint limit()
const;
74 void setOffset(uint offset);
75 [[nodiscard]] uint offset()
const;
82 void setDateFilter(
int year,
int month = -1,
int day = -1);
84 [[nodiscard]]
int yearFilter()
const;
85 [[nodiscard]]
int monthFilter()
const;
86 [[nodiscard]]
int dayFilter()
const;
109 void setSortingOption(SortingOption option);
110 [[nodiscard]] SortingOption sortingOption()
const;
116 void setSortingProperty(
const QString &property);
117 [[nodiscard]]
QString sortingProperty()
const;
127 void removeCustomOption(
const QString &option);
129 [[nodiscard]] QVariantMap customOptions()
const;
137 static Query fromSearchUrl(
const QUrl &url);
140 bool operator==(
const Query &rhs)
const;
145 std::unique_ptr<QueryPrivate>
const d;
@ SortAuto
The results are returned in the order the SearchStore decides should be ideal.
@ SortNone
The results are returned in the most efficient order.
This file is part of the KDE documentation.
Documentation copyright © 1996-2024 The KDE developers.
Generated on Fri Nov 22 2024 12:10:12 by
doxygen 1.12.0 written
by
Dimitri van Heesch, © 1997-2006
KDE's Doxygen guidelines are available online.