Changeset View
Changeset View
Standalone View
Standalone View
src/lib/resultiterator.h
Show All 36 Lines | |||||
37 | * @class ResultIterator resultiterator.h <Baloo/ResultIterator> | 37 | * @class ResultIterator resultiterator.h <Baloo/ResultIterator> | ||
38 | */ | 38 | */ | ||
39 | class BALOO_CORE_EXPORT ResultIterator | 39 | class BALOO_CORE_EXPORT ResultIterator | ||
40 | { | 40 | { | ||
41 | public: | 41 | public: | ||
42 | ResultIterator(ResultIterator &&rhs); | 42 | ResultIterator(ResultIterator &&rhs); | ||
43 | ~ResultIterator(); | 43 | ~ResultIterator(); | ||
44 | 44 | | |||
45 | // TODO KF6 mark this as delete | 45 | #if BALOO_CORE_BUILD_DEPRECATED_SINCE(5, 55) | ||
46 | /** Do not use this function, ResultIterator is not copiable, move it if needed */ | 46 | /** | ||
47 | BALOO_CORE_DEPRECATED ResultIterator(const ResultIterator& rhs); | 47 | * @deprecated Since 5.55. Do not use this function, ResultIterator is not copyable, move it if needed | ||
48 | */ | ||||
49 | BALOO_CORE_DEPRECATED_VERSION(5, 55, "Do not use. ResultIterator is not copyable, move it if needed.") | ||||
50 | ResultIterator(const ResultIterator& rhs); | ||||
51 | #else | ||||
52 | ResultIterator(const ResultIterator& rhs) = delete; | ||||
53 | #endif | ||||
48 | ResultIterator &operator=(const ResultIterator& rhs) = delete; | 54 | ResultIterator &operator=(const ResultIterator& rhs) = delete; | ||
49 | 55 | | |||
50 | bool next(); | 56 | bool next(); | ||
51 | QString filePath() const; | 57 | QString filePath() const; | ||
52 | 58 | | |||
53 | private: | 59 | private: | ||
54 | ResultIterator(const QStringList& results); | 60 | ResultIterator(const QStringList& results); | ||
55 | ResultIteratorPrivate* d; | 61 | ResultIteratorPrivate* d; | ||
56 | 62 | | |||
57 | friend class Query; | 63 | friend class Query; | ||
58 | }; | 64 | }; | ||
59 | 65 | | |||
60 | } | 66 | } | ||
61 | #endif // BALOO_CORE_RESULT_ITERATOR_H | 67 | #endif // BALOO_CORE_RESULT_ITERATOR_H |