Baloo Widgets

filefetchjob.h
1/*
2 SPDX-FileCopyrightText: 2014 Vishesh Handa <me@vhanda.in>
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
14namespace Baloo
15{
16class FileFetchJob : public KJob
17{
19public:
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
32private Q_SLOTS:
33 void doStart();
34
35private:
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
QObject * parent() const const
This file is part of the KDE documentation.
Documentation copyright © 1996-2024 The KDE developers.
Generated on Fri Nov 29 2024 11:45:25 by doxygen 1.12.0 written by Dimitri van Heesch, © 1997-2006

KDE's Doxygen guidelines are available online.