Akonadi Search

notequery.h
1 /*
2  * This file is part of the KDE Akonadi Search Project
3  * SPDX-FileCopyrightText: 2014-2023 Laurent Montel <[email protected]>
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 
17 namespace Akonadi
18 {
19 namespace Search
20 {
21 namespace PIM
22 {
23 class NoteQueryPrivate;
24 
25 /**
26  * Query for a list of contacts matching a criteria
27  */
28 class AKONADI_SEARCH_PIM_EXPORT NoteQuery : public Query
29 {
30 public:
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  ResultIterator exec() override;
41 
42 private:
43  std::unique_ptr<NoteQueryPrivate> const d;
44 };
45 }
46 }
47 }
Query for a list of contacts matching a criteria.
Definition: notequery.h:28
Query base class.
Definition: lib/query.h:23
This file is part of the KDE documentation.
Documentation copyright © 1996-2023 The KDE developers.
Generated on Tue Dec 5 2023 04:11:35 by doxygen 1.8.17 written by Dimitri van Heesch, © 1997-2006

KDE's Doxygen guidelines are available online.