Changeset View
Changeset View
Standalone View
Standalone View
src/file/mainhub.cpp
Show All 35 Lines | 35 | { | |||
---|---|---|---|---|---|
36 | Q_ASSERT(db); | 36 | Q_ASSERT(db); | ||
37 | Q_ASSERT(config); | 37 | Q_ASSERT(config); | ||
38 | 38 | | |||
39 | connect(&m_fileWatcher, &FileWatch::indexNewFile, &m_fileIndexScheduler, &FileIndexScheduler::indexNewFile); | 39 | connect(&m_fileWatcher, &FileWatch::indexNewFile, &m_fileIndexScheduler, &FileIndexScheduler::indexNewFile); | ||
40 | connect(&m_fileWatcher, &FileWatch::indexModifiedFile, &m_fileIndexScheduler, &FileIndexScheduler::indexModifiedFile); | 40 | connect(&m_fileWatcher, &FileWatch::indexModifiedFile, &m_fileIndexScheduler, &FileIndexScheduler::indexModifiedFile); | ||
41 | connect(&m_fileWatcher, &FileWatch::indexXAttr, &m_fileIndexScheduler, &FileIndexScheduler::indexXAttrFile); | 41 | connect(&m_fileWatcher, &FileWatch::indexXAttr, &m_fileIndexScheduler, &FileIndexScheduler::indexXAttrFile); | ||
42 | connect(&m_fileWatcher, &FileWatch::fileRemoved, &m_fileIndexScheduler, &FileIndexScheduler::handleFileRemoved); | 42 | connect(&m_fileWatcher, &FileWatch::fileRemoved, &m_fileIndexScheduler, &FileIndexScheduler::handleFileRemoved); | ||
43 | 43 | | |||
44 | connect(&m_fileWatcher, &FileWatch::installedWatches, &m_fileIndexScheduler, &FileIndexScheduler::scheduleIndexing); | 44 | connect(&m_fileWatcher, &FileWatch::installedWatches, &m_fileIndexScheduler, &FileIndexScheduler::checkUnindexedFiles); | ||
45 | 45 | | |||
46 | connect(QCoreApplication::instance(), &QCoreApplication::aboutToQuit, &m_fileIndexScheduler, &FileIndexScheduler::halt); | 46 | connect(QCoreApplication::instance(), &QCoreApplication::aboutToQuit, &m_fileIndexScheduler, &FileIndexScheduler::halt); | ||
47 | 47 | | |||
48 | MainAdaptor* main = new MainAdaptor(this); | 48 | MainAdaptor* main = new MainAdaptor(this); | ||
49 | Q_UNUSED(main) | 49 | Q_UNUSED(main) | ||
50 | 50 | | |||
51 | QDBusConnection bus = QDBusConnection::sessionBus(); | 51 | QDBusConnection bus = QDBusConnection::sessionBus(); | ||
52 | bus.registerObject(QStringLiteral("/"), this, QDBusConnection::ExportAllSlots | | 52 | bus.registerObject(QStringLiteral("/"), this, QDBusConnection::ExportAllSlots | | ||
Show All 11 Lines | 63 | { | |||
64 | QCoreApplication::instance()->quit(); | 64 | QCoreApplication::instance()->quit(); | ||
65 | } | 65 | } | ||
66 | 66 | | |||
67 | void MainHub::updateConfig() | 67 | void MainHub::updateConfig() | ||
68 | { | 68 | { | ||
69 | m_fileIndexScheduler.halt(); | 69 | m_fileIndexScheduler.halt(); | ||
70 | 70 | | |||
71 | m_config->forceConfigUpdate(); | 71 | m_config->forceConfigUpdate(); | ||
72 | // FIXME!! | | |||
bruns: Unrelated change | |||||
73 | //m_fileIndexer.updateConfig(); | | |||
74 | m_fileWatcher.updateIndexedFoldersWatches(); | 72 | m_fileWatcher.updateIndexedFoldersWatches(); | ||
75 | } | 73 | } | ||
76 | 74 | | |||
77 | void MainHub::registerBalooWatcher(const QString &service) | 75 | void MainHub::registerBalooWatcher(const QString &service) | ||
78 | { | 76 | { | ||
79 | m_fileWatcher.registerBalooWatcher(service); | 77 | m_fileWatcher.registerBalooWatcher(service); | ||
80 | } | 78 | } |
Unrelated change