Baloo
8 #ifndef BALOOMONITOR_MONITOR_H
9 #define BALOOMONITOR_MONITOR_H
11 #include <QDeadlineTimer>
15 #include "indexerstate.h"
16 #include "schedulerinterface.h"
17 #include "fileindexerinterface.h"
26 Q_PROPERTY(
bool balooRunning MEMBER m_balooRunning NOTIFY balooStateChanged)
27 Q_PROPERTY(uint totalFiles MEMBER m_totalFiles NOTIFY totalFilesChanged)
28 Q_PROPERTY(uint filesIndexed MEMBER m_filesIndexed NOTIFY newFileIndexed)
31 Q_PROPERTY(Baloo::IndexerState state READ state NOTIFY indexerStateChanged)
33 explicit Monitor(
QObject* parent =
nullptr);
36 QString filePath()
const {
return m_filePath; }
38 QString remainingTime()
const {
return m_remainingTime; }
39 QString stateString()
const {
return Baloo::stateString(m_indexerState); }
40 Baloo::IndexerState state()
const {
return m_indexerState; }
47 void newFileIndexed();
48 void balooStateChanged();
49 void totalFilesChanged();
50 void remainingTimeChanged();
51 void indexerStateChanged();
54 void newFile(
const QString& filePath);
56 void slotIndexerStateChanged(
int state);
59 void fetchTotalFiles();
60 void updateRemainingTime();
65 bool m_balooRunning =
false;
66 Baloo::IndexerState m_indexerState = Baloo::Unavailable;
69 org::kde::baloo::scheduler* m_scheduler;
70 org::kde::baloo::fileindexer* m_fileindexer;
72 uint m_totalFiles = 0;
73 uint m_filesIndexed = 0;
75 uint m_remainingTimeSeconds = 0;
78 #endif //BALOOMONITOR_MONITOR_H
Implements storage for docIds without any associated data Instantiated for:
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.