1 | /* |
2 | This file is part of the KDE Baloo Project |
3 | SPDX-FileCopyrightText: 2013 Vishesh Handa <me@vhanda.in> |
4 | |
5 | SPDX-License-Identifier: LGPL-2.1-only OR LGPL-3.0-only OR LicenseRef-KDE-Accepted-LGPL |
6 | */ |
7 | |
8 | #ifndef BALOO_KIO_SEARCH_H_ |
9 | #define BALOO_KIO_SEARCH_H_ |
10 | |
11 | #include <KIO/WorkerBase> |
12 | |
13 | namespace Baloo |
14 | { |
15 | |
16 | class SearchProtocol : public KIO::WorkerBase |
17 | { |
18 | |
19 | public: |
20 | SearchProtocol(const QByteArray& poolSocket, const QByteArray& appSocket); |
21 | ~SearchProtocol() override; |
22 | |
23 | /** |
24 | * |
25 | */ |
26 | KIO::WorkerResult listDir(const QUrl& url) override; |
27 | |
28 | /** |
29 | * Files will be forwarded. |
30 | * Folders will be created as virtual folders. |
31 | */ |
32 | KIO::WorkerResult mimetype(const QUrl& url) override; |
33 | |
34 | /** |
35 | * Files will be forwarded. |
36 | * Folders will be created as virtual folders. |
37 | */ |
38 | KIO::WorkerResult stat(const QUrl& url) override; |
39 | }; |
40 | } |
41 | |
42 | #endif |
43 | |