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 | |
15 | namespace Baloo { |
16 | |
17 | class Database; |
18 | class FileIndexerConfig; |
19 | |
20 | class MainHub : public QObject |
21 | { |
22 | Q_OBJECT |
23 | Q_CLASSINFO("D-Bus Interface" , "org.kde.baloo.main" ) |
24 | public: |
25 | MainHub(Database* db, FileIndexerConfig* config, bool firstRun); |
26 | |
27 | public Q_SLOTS: |
28 | Q_SCRIPTABLE void quit() const; |
29 | Q_SCRIPTABLE void updateConfig(); |
30 | |
31 | private: |
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 | |