1 | /* |
2 | This file is part of the KDE Baloo Project |
3 | SPDX-FileCopyrightText: 2013 Vishesh Handa <me@vhanda.in> |
4 | |
5 | SPDX-License-Identifier: LGPL-2.1-only OR LGPL-3.0-only OR LicenseRef-KDE-Accepted-LGPL |
6 | */ |
7 | |
8 | #ifndef BALOO_CORE_RESULT_ITERATOR_H |
9 | #define BALOO_CORE_RESULT_ITERATOR_H |
10 | |
11 | #include "core_export.h" |
12 | |
13 | #include <QString> |
14 | |
15 | #include <memory> |
16 | |
17 | namespace Baloo { |
18 | |
19 | class ResultList; |
20 | class ResultIteratorPrivate; |
21 | |
22 | /*! |
23 | * \class Baloo::ResultIterator |
24 | * \inheaderfile Baloo/ResultIterator |
25 | * \inmodule Baloo |
26 | */ |
27 | class BALOO_CORE_EXPORT ResultIterator |
28 | { |
29 | public: |
30 | /*! |
31 | * |
32 | */ |
33 | ResultIterator(ResultIterator &&rhs); |
34 | ~ResultIterator(); |
35 | |
36 | ResultIterator(const ResultIterator& rhs) = delete; |
37 | ResultIterator &operator=(const ResultIterator& rhs) = delete; |
38 | |
39 | /*! |
40 | * |
41 | */ |
42 | bool next(); |
43 | |
44 | /*! |
45 | * |
46 | */ |
47 | QString filePath() const; |
48 | |
49 | /*! |
50 | * |
51 | */ |
52 | QByteArray documentId() const; |
53 | |
54 | private: |
55 | BALOO_CORE_NO_EXPORT explicit ResultIterator(ResultList&& res); |
56 | std::unique_ptr<ResultIteratorPrivate> d; |
57 | |
58 | friend class Query; |
59 | }; |
60 | |
61 | } |
62 | #endif // BALOO_CORE_RESULT_ITERATOR_H |
63 | |