Akonadi Search

notequery.h
1/*
2 * This file is part of the KDE Akonadi Search Project
3 * SPDX-FileCopyrightText: 2014-2024 Laurent Montel <montel@kde.org>
4 *
5 * SPDX-License-Identifier: LGPL-2.1-only OR LGPL-3.0-only OR LicenseRef-KDE-Accepted-LGPL
6 *
7 */
8
9#pragma once
10
11#include "query.h"
12#include "search_pim_export.h"
13#include <QString>
14
15#include <memory>
16
17namespace Akonadi
18{
19namespace Search
20{
21namespace PIM
22{
23class NoteQueryPrivate;
24
25/**
26 * Query for a list of contacts matching a criteria
27 */
28class AKONADI_SEARCH_PIM_EXPORT NoteQuery : public Query
29{
30public:
31 NoteQuery();
32 ~NoteQuery() override;
33
34 void matchTitle(const QString &title);
35 void matchNote(const QString &note);
36
37 void setLimit(int limit);
38 [[nodiscard]] int limit() const;
39
40 [[nodiscard]] ResultIterator exec() override;
41
42private:
43 std::unique_ptr<NoteQueryPrivate> const d;
44};
45}
46}
47}
Query for a list of contacts matching a criteria.
Definition notequery.h:29
Query base class.
Definition lib/query.h:24
This file is part of the KDE documentation.
Documentation copyright © 1996-2024 The KDE developers.
Generated on Fri Oct 4 2024 11:54:19 by doxygen 1.12.0 written by Dimitri van Heesch, © 1997-2006

KDE's Doxygen guidelines are available online.