| 1 | /* |
| 2 | This file is part of the KDE Baloo Project |
| 3 | SPDX-FileCopyrightText: 2021 Stefan BrĂ¼ns <stefan.bruens@rwth-aachen.de> |
| 4 | |
| 5 | SPDX-License-Identifier: LGPL-2.1-or-later OR LicenseRef-KDE-Accepted-LGPL |
| 6 | */ |
| 7 | |
| 8 | #ifndef BALOO_RESULT_H |
| 9 | #define BALOO_RESULT_H |
| 10 | |
| 11 | #include <vector> |
| 12 | #include <QByteArray> |
| 13 | |
| 14 | namespace Baloo |
| 15 | { |
| 16 | class Result { |
| 17 | public: |
| 18 | Result(QByteArray&& path, quint64 id) : filePath(path), documentId(id) {}; |
| 19 | |
| 20 | QByteArray filePath; |
| 21 | quint64 documentId = 0; |
| 22 | }; |
| 23 | |
| 24 | class ResultList : public std::vector<Baloo::Result> {}; |
| 25 | |
| 26 | } |
| 27 | |
| 28 | #endif // BALOO_RESULT_H |
| 29 | |