Warning, file /pim/akonadi-search/lib/notequery.h was not indexed or was modified since last indexation (in which case cross-reference links may be missing, inaccurate or erroneous).
0001 /* 0002 * This file is part of the KDE Akonadi Search Project 0003 * SPDX-FileCopyrightText: 2014-2024 Laurent Montel <montel@kde.org> 0004 * 0005 * SPDX-License-Identifier: LGPL-2.1-only OR LGPL-3.0-only OR LicenseRef-KDE-Accepted-LGPL 0006 * 0007 */ 0008 0009 #pragma once 0010 0011 #include "query.h" 0012 #include "search_pim_export.h" 0013 #include <QString> 0014 0015 #include <memory> 0016 0017 namespace Akonadi 0018 { 0019 namespace Search 0020 { 0021 namespace PIM 0022 { 0023 class NoteQueryPrivate; 0024 0025 /** 0026 * Query for a list of contacts matching a criteria 0027 */ 0028 class AKONADI_SEARCH_PIM_EXPORT NoteQuery : public Query 0029 { 0030 public: 0031 NoteQuery(); 0032 ~NoteQuery() override; 0033 0034 void matchTitle(const QString &title); 0035 void matchNote(const QString ¬e); 0036 0037 void setLimit(int limit); 0038 [[nodiscard]] int limit() const; 0039 0040 ResultIterator exec() override; 0041 0042 private: 0043 std::unique_ptr<NoteQueryPrivate> const d; 0044 }; 0045 } 0046 } 0047 }