Baloo Widgets

ondemandextractor.h
1 /*
2  SPDX-FileCopyrightText: 2019 Stefan BrĂ¼ns <[email protected]>
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 
13 namespace Baloo
14 {
15 namespace Private
16 {
17 class OnDemandExtractor : public QObject
18 {
19  Q_OBJECT
20 
21 public:
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 
30 Q_SIGNALS:
31  void fileFinished(QProcess::ExitStatus exitStatus);
32 
33 private Q_SLOTS:
34  void slotIndexedFile(int exitCode, QProcess::ExitStatus exitStatus);
35 
36 private:
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_SLOTSQ_SLOTS
KGuiItem properties()
Q_SIGNALSQ_SIGNALS
This file is part of the KDE documentation.
Documentation copyright © 1996-2022 The KDE developers.
Generated on Thu Aug 11 2022 04:13:42 by doxygen 1.8.17 written by Dimitri van Heesch, © 1997-2006

KDE's Doxygen guidelines are available online.