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
14namespace Baloo {
15
16class Term;
17class Database;
18class Transaction;
19class PostingIterator;
20
21class SearchStore
22{
23public:
24 SearchStore();
25 ~SearchStore();
26
27 ResultList exec(const Term& term, uint offset, int limit, bool sortResults);
28
29private:
30 Database* m_db;
31
32 PostingIterator* constructQuery(Transaction* tr, const Term& term);
33};
34
35}
36
37#endif // BALOO_SEARCHSTORE_H
38

source code of baloo/src/lib/searchstore.h