8#ifndef BALOOMONITOR_MONITOR_H
9#define BALOOMONITOR_MONITOR_H
11#include <QDeadlineTimer>
14#include <qqmlregistration.h>
16#include "indexerstate.h"
17#include "schedulerinterface.h"
18#include "fileindexerinterface.h"
22 QML_NAMED_ELEMENT(Global)
23 QML_FOREIGN_NAMESPACE(
Baloo)
34 Q_PROPERTY(
bool balooRunning MEMBER m_balooRunning NOTIFY balooStateChanged)
35 Q_PROPERTY(uint totalFiles MEMBER m_totalFiles NOTIFY totalFilesChanged)
36 Q_PROPERTY(uint filesIndexed MEMBER m_filesIndexed NOTIFY newFileIndexed)
39 Q_PROPERTY(Baloo::IndexerState state READ state NOTIFY indexerStateChanged)
44 QString filePath()
const {
return m_filePath; }
46 QString remainingTime()
const {
return m_remainingTime; }
47 QString stateString()
const {
return Baloo::stateString(m_indexerState); }
48 Baloo::IndexerState state()
const {
return m_indexerState; }
55 void newFileIndexed();
56 void balooStateChanged();
57 void totalFilesChanged();
58 void remainingTimeChanged();
59 void indexerStateChanged();
62 void newFile(
const QString& filePath);
64 void slotIndexerStateChanged(
int state);
67 void fetchTotalFiles();
68 void updateRemainingTime();
73 bool m_balooRunning =
false;
74 Baloo::IndexerState m_indexerState = Baloo::Unavailable;
77 org::kde::baloo::scheduler* m_scheduler;
78 org::kde::baloo::fileindexer* m_fileindexer;
80 uint m_totalFiles = 0;
81 uint m_filesIndexed = 0;
83 uint m_remainingTimeSeconds = 0;
Implements storage for docIds without any associated data Instantiated for:
QObject * parent() const const
This file is part of the KDE documentation.
Documentation copyright © 1996-2024 The KDE developers.
Generated on Sat Dec 21 2024 16:56:58 by
doxygen 1.12.0 written
by
Dimitri van Heesch, © 1997-2006
KDE's Doxygen guidelines are available online.