Baloo

queryrunnable.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 QUERYRUNNABLE_H
9 #define QUERYRUNNABLE_H
10 
11 #include "query.h"
12 #include <QRunnable>
13 #include <QObject>
14 
15 namespace Baloo {
16 
17 /**
18  * @class QueryRunnable queryrunnable.h <Baloo/QueryRunnable>
19  */
20 class BALOO_CORE_EXPORT QueryRunnable : public QObject, public QRunnable
21 {
22  Q_OBJECT
23 public:
24  QueryRunnable(const Query& query, QObject* parent = nullptr);
25  ~QueryRunnable() override;
26  void run() override;
27 
28  void stop();
29 
30 Q_SIGNALS:
31  void queryResult(Baloo::QueryRunnable* queryRunnable, const QString& filePath);
32  void finished(Baloo::QueryRunnable* queryRunnable);
33 
34 private:
35  class Private;
36  Private* d;
37 };
38 
39 }
40 
41 #endif // QUERYRUNNABLE_H
void stop(Ekos::AlignState mode)
Implements storage for docIds without any associated data Instantiated for:
Definition: coding.cpp:11
KIOWIDGETS_EXPORT bool run(const QUrl &_url, bool _is_local)
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.