Baloo

resultiterator.h
1 /*
2  This file is part of the KDE Baloo Project
3  SPDX-FileCopyrightText: 2013 Vishesh Handa <[email protected]>
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 namespace Baloo {
16 
17 class ResultList;
18 class ResultIteratorPrivate;
19 
20 /**
21  * @class ResultIterator resultiterator.h <Baloo/ResultIterator>
22  */
23 class BALOO_CORE_EXPORT ResultIterator
24 {
25 public:
26  ResultIterator(ResultIterator &&rhs);
27  ~ResultIterator();
28 
29 #if BALOO_CORE_BUILD_DEPRECATED_SINCE(5, 55)
30  /**
31  * @deprecated Since 5.55. Do not use this function, ResultIterator is not copyable, move it if needed
32  */
33  BALOO_CORE_DEPRECATED_VERSION(5, 55, "Do not use. ResultIterator is not copyable, move it if needed.")
34  ResultIterator(const ResultIterator& rhs);
35 #else
36  ResultIterator(const ResultIterator& rhs) = delete;
37 #endif
38  ResultIterator &operator=(const ResultIterator& rhs) = delete;
39 
40  bool next();
41  QString filePath() const;
42  QByteArray documentId() const;
43 
44 private:
45  BALOO_CORE_NO_EXPORT explicit ResultIterator(ResultList&& res);
46  ResultIteratorPrivate* d;
47 
48  friend class Query;
49 };
50 
51 }
52 #endif // BALOO_CORE_RESULT_ITERATOR_H
Implements storage for docIds without any associated data Instantiated for:
Definition: coding.cpp:11
QAction * next(const QObject *recvr, const char *slot, QObject *parent)
This file is part of the KDE documentation.
Documentation copyright © 1996-2023 The KDE developers.
Generated on Wed Nov 29 2023 03:56:26 by doxygen 1.8.17 written by Dimitri van Heesch, © 1997-2006

KDE's Doxygen guidelines are available online.