1/*
2 SPDX-FileCopyrightText: 2015 Vishesh Handa <vhanda@kde.org>
3
4 SPDX-License-Identifier: LGPL-2.1-or-later
5*/
6
7#ifndef BALOO_MAINHUB_H
8#define BALOO_MAINHUB_H
9
10#include <QObject>
11
12#include "filewatch.h"
13#include "fileindexscheduler.h"
14
15namespace Baloo {
16
17class Database;
18class FileIndexerConfig;
19
20class MainHub : public QObject
21{
22 Q_OBJECT
23 Q_CLASSINFO("D-Bus Interface", "org.kde.baloo.main")
24public:
25 MainHub(Database* db, FileIndexerConfig* config, bool firstRun);
26
27public Q_SLOTS:
28 Q_SCRIPTABLE void quit() const;
29 Q_SCRIPTABLE void updateConfig();
30
31private:
32 Database* m_db;
33 FileIndexerConfig* m_config;
34
35 FileWatch m_fileWatcher;
36 FileIndexScheduler m_fileIndexScheduler;
37
38};
39}
40
41#endif // BALOO_MAINHUB_H
42

source code of baloo/src/file/mainhub.h