1 | /* |
2 | This file is part of the KDE Baloo Project |
3 | SPDX-FileCopyrightText: 2013-2015 Vishesh Handa <vhanda@kde.org> |
4 | |
5 | SPDX-License-Identifier: LGPL-2.1-only OR LGPL-3.0-only OR LicenseRef-KDE-Accepted-LGPL |
6 | */ |
7 | |
8 | #ifndef BALOO_SEARCHSTORE_H |
9 | #define BALOO_SEARCHSTORE_H |
10 | |
11 | #include <QString> |
12 | #include "result_p.h" |
13 | |
14 | namespace Baloo { |
15 | |
16 | class Term; |
17 | class Database; |
18 | class Transaction; |
19 | class PostingIterator; |
20 | |
21 | class SearchStore |
22 | { |
23 | public: |
24 | SearchStore(); |
25 | ~SearchStore(); |
26 | |
27 | ResultList exec(const Term& term, uint offset, int limit, bool sortResults); |
28 | |
29 | private: |
30 | Database* m_db; |
31 | |
32 | PostingIterator* constructQuery(Transaction* tr, const Term& term); |
33 | }; |
34 | |
35 | } |
36 | |
37 | #endif // BALOO_SEARCHSTORE_H |
38 | |