Baloo Widgets

ondemandextractor.h
1/*
2 SPDX-FileCopyrightText: 2019 Stefan BrĂ¼ns <stefan.bruens@rwth-aachen.de>
3
4 SPDX-License-Identifier: LGPL-2.1-or-later
5*/
6
7#ifndef ONDEMANDEXTRACTOR_H
8#define ONDEMANDEXTRACTOR_H
9
10#include <KFileMetaData/Properties>
11#include <QProcess>
12
13namespace Baloo
14{
15namespace Private
16{
17class OnDemandExtractor : public QObject
18{
20
21public:
22 explicit OnDemandExtractor(QObject *parent = nullptr);
23 ~OnDemandExtractor() override;
24
25 void process(const QString &filePath);
26
27 bool waitFinished();
28 KFileMetaData::PropertyMultiMap properties() const;
29
31 void fileFinished(QProcess::ExitStatus exitStatus);
32
33private Q_SLOTS:
34 void slotIndexedFile(int exitCode, QProcess::ExitStatus exitStatus);
35
36private:
37 QProcess m_process;
38 KFileMetaData::PropertyMultiMap m_properties;
39};
40
41} // namespace Private
42} // namespace Baloo
43
44#endif // ONDEMANDEXTRACTOR_H
Q_OBJECTQ_OBJECT
Q_SIGNALSQ_SIGNALS
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 Dec 20 2024 11:54:55 by doxygen 1.12.0 written by Dimitri van Heesch, © 1997-2006

KDE's Doxygen guidelines are available online.