File indexing completed on 2024-05-19 07:40:43
0001 /* 0002 This file is part of the KDE Baloo Project 0003 SPDX-FileCopyrightText: 2013 Vishesh Handa <me@vhanda.in> 0004 0005 SPDX-License-Identifier: LGPL-2.1-only OR LGPL-3.0-only OR LicenseRef-KDE-Accepted-LGPL 0006 */ 0007 0008 #ifndef BALOO_KIO_SEARCH_H_ 0009 #define BALOO_KIO_SEARCH_H_ 0010 0011 #include <KIO/WorkerBase> 0012 0013 namespace Baloo 0014 { 0015 0016 class SearchProtocol : public KIO::WorkerBase 0017 { 0018 0019 public: 0020 SearchProtocol(const QByteArray& poolSocket, const QByteArray& appSocket); 0021 ~SearchProtocol() override; 0022 0023 /** 0024 * 0025 */ 0026 KIO::WorkerResult listDir(const QUrl& url) override; 0027 0028 /** 0029 * Files will be forwarded. 0030 * Folders will be created as virtual folders. 0031 */ 0032 KIO::WorkerResult mimetype(const QUrl& url) override; 0033 0034 /** 0035 * Files will be forwarded. 0036 * Folders will be created as virtual folders. 0037 */ 0038 KIO::WorkerResult stat(const QUrl& url) override; 0039 }; 0040 } 0041 0042 #endif