Changeset View
Changeset View
Standalone View
Standalone View
src/qml/experimental/monitor.cpp
Show All 36 Lines | |||||
37 | 37 | | |||
38 | using namespace Baloo; | 38 | using namespace Baloo; | ||
39 | Monitor::Monitor(QObject *parent) | 39 | Monitor::Monitor(QObject *parent) | ||
40 | : QObject(parent) | 40 | : QObject(parent) | ||
41 | , m_bus(QDBusConnection::sessionBus()) | 41 | , m_bus(QDBusConnection::sessionBus()) | ||
42 | , m_filePath(QStringLiteral("Idle")) | 42 | , m_filePath(QStringLiteral("Idle")) | ||
43 | , m_scheduler(nullptr) | 43 | , m_scheduler(nullptr) | ||
44 | , m_fileindexer(nullptr) | 44 | , m_fileindexer(nullptr) | ||
45 | , m_filesIndexed(0) | | |||
46 | , m_remainingTime(QStringLiteral("Estimating")) | 45 | , m_remainingTime(QStringLiteral("Estimating")) | ||
47 | { | 46 | { | ||
48 | m_scheduler = new org::kde::baloo::scheduler(QStringLiteral("org.kde.baloo"), | 47 | m_scheduler = new org::kde::baloo::scheduler(QStringLiteral("org.kde.baloo"), | ||
49 | QStringLiteral("/scheduler"), | 48 | QStringLiteral("/scheduler"), | ||
50 | m_bus, this); | 49 | m_bus, this); | ||
51 | 50 | | |||
52 | m_fileindexer = new org::kde::baloo::fileindexer(QStringLiteral("org.kde.baloo"), | 51 | m_fileindexer = new org::kde::baloo::fileindexer(QStringLiteral("org.kde.baloo"), | ||
53 | QStringLiteral("/fileindexer"), | 52 | QStringLiteral("/fileindexer"), | ||
▲ Show 20 Lines • Show All 105 Lines • Show Last 20 Lines |