Changeset View
Changeset View
Standalone View
Standalone View
src/abstractfile/abstractfilelistener.h
Show All 12 Lines | |||||
13 | * | 13 | * | ||
14 | * You should have received a copy of the GNU Lesser General Public License | 14 | * You should have received a copy of the GNU Lesser General Public License | ||
15 | * along with this program. If not, see <https://www.gnu.org/licenses/>. | 15 | * along with this program. If not, see <https://www.gnu.org/licenses/>. | ||
16 | */ | 16 | */ | ||
17 | 17 | | |||
18 | #ifndef ABSTRACTFILELISTENER_H | 18 | #ifndef ABSTRACTFILELISTENER_H | ||
19 | #define ABSTRACTFILELISTENER_H | 19 | #define ABSTRACTFILELISTENER_H | ||
20 | 20 | | |||
21 | #include "notificationitem.h" | | |||
22 | | ||||
23 | #include <QObject> | 21 | #include <QObject> | ||
24 | #include <QVector> | 22 | #include <QVector> | ||
25 | #include <QString> | 23 | #include <QString> | ||
26 | 24 | | |||
27 | #include <memory> | 25 | #include <memory> | ||
28 | 26 | | |||
29 | class AbstractFileListenerPrivate; | 27 | class AbstractFileListenerPrivate; | ||
30 | class DatabaseInterface; | 28 | class DatabaseInterface; | ||
Show All 27 Lines | 50 | Q_SIGNALS: | |||
58 | void indexingStarted(); | 56 | void indexingStarted(); | ||
59 | 57 | | |||
60 | void indexingFinished(); | 58 | void indexingFinished(); | ||
61 | 59 | | |||
62 | void configurationChanged(); | 60 | void configurationChanged(); | ||
63 | 61 | | |||
64 | void clearDatabase(); | 62 | void clearDatabase(); | ||
65 | 63 | | |||
66 | void newNotification(NotificationItem notification); | | |||
67 | | ||||
68 | void closeNotification(QString notificationId); | | |||
69 | | ||||
70 | public Q_SLOTS: | 64 | public Q_SLOTS: | ||
71 | 65 | | |||
72 | void setDatabaseInterface(DatabaseInterface* databaseInterface); | 66 | void setDatabaseInterface(DatabaseInterface* databaseInterface); | ||
73 | 67 | | |||
74 | void applicationAboutToQuit(); | 68 | void applicationAboutToQuit(); | ||
75 | 69 | | |||
76 | void quitListener(); | 70 | void quitListener(); | ||
77 | 71 | | |||
78 | void setAllRootPaths(const QStringList &allRootPaths); | 72 | void setAllRootPaths(const QStringList &allRootPaths); | ||
79 | 73 | | |||
80 | protected: | 74 | protected: | ||
81 | 75 | | |||
82 | void setFileListing(AbstractFileListing *fileIndexer); | 76 | void setFileListing(AbstractFileListing *fileIndexer); | ||
83 | 77 | | |||
84 | NotificationItem& currentNotification(); | | |||
85 | | ||||
86 | private: | 78 | private: | ||
87 | 79 | | |||
88 | std::unique_ptr<AbstractFileListenerPrivate> d; | 80 | std::unique_ptr<AbstractFileListenerPrivate> d; | ||
89 | 81 | | |||
90 | }; | 82 | }; | ||
91 | 83 | | |||
92 | #endif // ABSTRACTFILELISTENER_H | 84 | #endif // ABSTRACTFILELISTENER_H |