Warning, file /pim/akonadi-search/lib/resultiterator.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: 2013 Vishesh Handa <me@vhanda.in>
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 "search_pim_export.h"
0012 
0013 #include <Akonadi/Item>
0014 
0015 #include <memory>
0016 
0017 namespace Akonadi
0018 {
0019 namespace Search
0020 {
0021 namespace PIM
0022 {
0023 class ContactQuery;
0024 class EmailQuery;
0025 class NoteQuery;
0026 class ResultIteratorPrivate;
0027 
0028 /** Result iterator. */
0029 class AKONADI_SEARCH_PIM_EXPORT ResultIterator
0030 {
0031 public:
0032     ResultIterator();
0033     ResultIterator(const ResultIterator &ri);
0034     ~ResultIterator();
0035 
0036     [[nodiscard]] Akonadi::Item::Id id();
0037     bool next();
0038 
0039 private:
0040     friend class ContactQuery;
0041     friend class EmailQuery;
0042     friend class NoteQuery;
0043     friend class CollectionQuery;
0044 
0045     std::unique_ptr<ResultIteratorPrivate> const d;
0046 };
0047 }
0048 }
0049 }