Baloo

extractorprocess.h
1/*
2 SPDX-FileCopyrightText: 2015 Vishesh Handa <vhanda@kde.org>
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 <QVector>
15
16namespace Baloo {
17
18class ExtractorProcess : public QObject
19{
21public:
22 ExtractorProcess(const QString& extractorPath, QObject* parent = nullptr);
23 ~ExtractorProcess();
24
25 void index(const QVector<quint64>& fileIds);
26 void start();
27
29 void startedIndexingFile(QString filePath);
30 void finishedIndexingFile(QString filePath, bool fileUpdated);
31 void done();
32 void failed();
33
34private:
35 const QString m_extractorPath;
36
37 QProcess m_extractorProcess;
39};
40}
41
42#endif // BALOO_EXTRACTORPROCESS_H
Bidirectional communication pipe.
Definition commandpipe.h:24
Implements storage for docIds without any associated data Instantiated for:
Definition coding.cpp:11
Q_OBJECTQ_OBJECT
Q_SIGNALSQ_SIGNALS
QObject * parent() const const
This file is part of the KDE documentation.
Documentation copyright © 1996-2024 The KDE developers.
Generated on Fri Nov 22 2024 12:03:07 by doxygen 1.12.0 written by Dimitri van Heesch, © 1997-2006

KDE's Doxygen guidelines are available online.