Changeset View
Changeset View
Standalone View
Standalone View
src/file/extractorprocess.h
Show All 29 Lines | |||||
30 | class ExtractorProcess : public QObject | 30 | class ExtractorProcess : public QObject | ||
31 | { | 31 | { | ||
32 | Q_OBJECT | 32 | Q_OBJECT | ||
33 | public: | 33 | public: | ||
34 | explicit ExtractorProcess(QObject* parent = nullptr); | 34 | explicit ExtractorProcess(QObject* parent = nullptr); | ||
35 | ~ExtractorProcess(); | 35 | ~ExtractorProcess(); | ||
36 | 36 | | |||
37 | void index(const QVector<quint64>& fileIds); | 37 | void index(const QVector<quint64>& fileIds); | ||
38 | void start(); | ||||
38 | 39 | | |||
39 | Q_SIGNALS: | 40 | Q_SIGNALS: | ||
40 | void startedIndexingFile(QString filePath); | 41 | void startedIndexingFile(QString filePath); | ||
41 | void finishedIndexingFile(QString filePath); | 42 | void finishedIndexingFile(QString filePath); | ||
42 | void done(); | 43 | void done(); | ||
44 | void failed(); | ||||
43 | 45 | | |||
44 | private Q_SLOTS: | 46 | private Q_SLOTS: | ||
45 | void slotIndexingFile(); | 47 | void slotIndexingFile(); | ||
46 | 48 | | |||
47 | private: | 49 | private: | ||
48 | const QString m_extractorPath; | 50 | const QString m_extractorPath; | ||
49 | 51 | | |||
50 | QProcess m_extractorProcess; | 52 | QProcess m_extractorProcess; | ||
51 | QTimer m_timeCurrentFile; | 53 | QTimer m_timeCurrentFile; | ||
52 | int m_processTimeout; | 54 | int m_processTimeout; | ||
53 | }; | 55 | }; | ||
54 | } | 56 | } | ||
55 | 57 | | |||
56 | #endif // BALOO_EXTRACTORPROCESS_H | 58 | #endif // BALOO_EXTRACTORPROCESS_H |