Baloo

kio_search.h
1 /*
2  This file is part of the KDE Baloo Project
3  SPDX-FileCopyrightText: 2013 Vishesh Handa <[email protected]>
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
KIOCORE_EXPORT MimetypeJob * mimetype(const QUrl &url, JobFlags flags=DefaultFlags)
Implements storage for docIds without any associated data Instantiated for:
Definition: coding.cpp:11
KIOCORE_EXPORT ListJob * listDir(const QUrl &url, JobFlags flags=DefaultFlags, bool includeHidden=true)
int stat(const QString &path, KDE_struct_stat *buf)
This file is part of the KDE documentation.
Documentation copyright © 1996-2023 The KDE developers.
Generated on Wed Nov 29 2023 03:56:26 by doxygen 1.8.17 written by Dimitri van Heesch, © 1997-2006

KDE's Doxygen guidelines are available online.