/* SPDX-FileCopyrightText: 2014 Vishesh Handa SPDX-License-Identifier: LGPL-2.1-or-later */ #ifndef BALOO_FILEFETCHJOB_H #define BALOO_FILEFETCHJOB_H #include "ondemandextractor.h" #include #include namespace Baloo { class FileFetchJob : public KJob { Q_OBJECT public: enum class UseRealtimeIndexing : char { Disabled = 0, Only, Fallback, }; explicit FileFetchJob(const QStringList &urls, bool canEditAll, UseRealtimeIndexing useRealtime, QObject *parent = nullptr); QList data() const; bool canEditAll() const; void start() override; private Q_SLOTS: void doStart(); private: QStringList m_urls; QList m_data; bool m_canEditAll; UseRealtimeIndexing m_useRealtime; Private::OnDemandExtractor m_extractor; }; } #endif // BALOO_FILEFETCHJOB_H