1 | /* |
2 | This file is part of the KDE Baloo Project |
3 | SPDX-FileCopyrightText: 2015 Pinak Ahuja <pinak.ahuja@gmail.com> |
4 | SPDX-FileCopyrightText: 2015 Vishesh Handa <vhanda@kde.org> |
5 | |
6 | SPDX-License-Identifier: LGPL-2.1-only OR LGPL-3.0-only OR LicenseRef-KDE-Accepted-LGPL |
7 | */ |
8 | |
9 | #ifndef BALOO_CLEARENTRY_H |
10 | #define BALOO_CLEARENTRY_H |
11 | |
12 | #include <QTextStream> |
13 | |
14 | #include "database.h" |
15 | #include "transaction.h" |
16 | |
17 | namespace Baloo |
18 | { |
19 | |
20 | class ClearEntry : public Transaction |
21 | { |
22 | public: |
23 | ClearEntry(const Database &db, QTextStream &out); |
24 | ClearEntry(Database *db, QTextStream &out); |
25 | bool clearEntryNow(const QString &fileName); |
26 | |
27 | private: |
28 | QTextStream &m_out; |
29 | }; |
30 | } |
31 | |
32 | #endif // BALOO_CLEARENTRY_H |
33 | |