Baloo

extractorprocess.h
1 /*
2  SPDX-FileCopyrightText: 2015 Vishesh Handa <[email protected]>
3 
4  SPDX-License-Identifier: LGPL-2.1-or-later
5 */
6 
7 #ifndef BALOO_EXTRACTORPROCESS_H
8 #define BALOO_EXTRACTORPROCESS_H
9 
10 #include "extractor/commandpipe.h"
11 
12 #include <QProcess>
13 #include <QObject>
14 #include <QTimer>
15 #include <QVector>
16 
17 namespace Baloo {
18 
19 class ExtractorProcess : public QObject
20 {
21  Q_OBJECT
22 public:
23  ExtractorProcess(const QString& extractorPath, QObject* parent = nullptr);
24  ~ExtractorProcess();
25 
26  void index(const QVector<quint64>& fileIds);
27  void start();
28 
29 Q_SIGNALS:
30  void startedIndexingFile(QString filePath);
31  void finishedIndexingFile(QString filePath, bool fileUpdated);
32  void done();
33  void failed();
34 
35 private:
36  const QString m_extractorPath;
37 
38  QProcess m_extractorProcess;
39  QTimer m_timeCurrentFile;
40  int m_processTimeout;
41  Baloo::Private::ControllerPipe m_controller;
42 };
43 }
44 
45 #endif // BALOO_EXTRACTORPROCESS_H
Q_OBJECTQ_OBJECT
Q_SCRIPTABLE Q_NOREPLY void start()
Implements storage for docIds without any associated data Instantiated for:
Definition: coding.cpp:11
Q_SIGNALSQ_SIGNALS
Bidirectional communication pipe.
Definition: commandpipe.h:23
This file is part of the KDE documentation.
Documentation copyright © 1996-2023 The KDE developers.
Generated on Wed Nov 29 2023 03:56:26 by doxygen 1.8.17 written by Dimitri van Heesch, © 1997-2006

KDE's Doxygen guidelines are available online.