Baloo Widgets

filefetchjob.h
1 /*
2  SPDX-FileCopyrightText: 2014 Vishesh Handa <[email protected]>
3 
4  SPDX-License-Identifier: LGPL-2.1-or-later
5 */
6 
7 #ifndef BALOO_FILEFETCHJOB_H
8 #define BALOO_FILEFETCHJOB_H
9 
10 #include "ondemandextractor.h"
11 #include <KJob>
12 #include <QVariantMap>
13 
14 namespace Baloo
15 {
16 class FileFetchJob : public KJob
17 {
18  Q_OBJECT
19 public:
20  enum class UseRealtimeIndexing : char {
21  Disabled = 0,
22  Only,
23  Fallback,
24  };
25  explicit FileFetchJob(const QStringList &urls, bool canEditAll, UseRealtimeIndexing useRealtime, QObject *parent = nullptr);
26 
27  QList<QVariantMap> data() const;
28  bool canEditAll() const;
29 
30  void start() override;
31 
32 private Q_SLOTS:
33  void doStart();
34 
35 private:
36  QStringList m_urls;
37  QList<QVariantMap> m_data;
38  bool m_canEditAll;
39  UseRealtimeIndexing m_useRealtime;
40  Private::OnDemandExtractor m_extractor;
41 };
42 }
43 
44 #endif // BALOO_FILEFETCHJOB_H
Q_OBJECTQ_OBJECT
Q_SLOTSQ_SLOTS
Q_SCRIPTABLE Q_NOREPLY void start()
This file is part of the KDE documentation.
Documentation copyright © 1996-2022 The KDE developers.
Generated on Fri Aug 19 2022 04:12:56 by doxygen 1.8.17 written by Dimitri van Heesch, © 1997-2006

KDE's Doxygen guidelines are available online.