Changeset View
Changeset View
Standalone View
Standalone View
src/service/plugins/gtk-eventspy/GtkEventSpy.h
Show All 32 Lines | 32 | public: | |||
---|---|---|---|---|---|
33 | explicit GtkEventSpyPlugin(QObject *parent = nullptr, | 33 | explicit GtkEventSpyPlugin(QObject *parent = nullptr, | ||
34 | const QVariantList &args = QVariantList()); | 34 | const QVariantList &args = QVariantList()); | ||
35 | ~GtkEventSpyPlugin() override; | 35 | ~GtkEventSpyPlugin() override; | ||
36 | 36 | | |||
37 | bool init(QHash<QString, QObject *> &modules) override; | 37 | bool init(QHash<QString, QObject *> &modules) override; | ||
38 | 38 | | |||
39 | private Q_SLOTS: | 39 | private Q_SLOTS: | ||
40 | void fileUpdated(const QString &file); | 40 | void fileUpdated(const QString &file); | ||
41 | void addDocument(const QUrl &url, const QString &application); | 41 | void addDocument(const QUrl &url, const QString &application, const QString &mimetype); | ||
42 | 42 | | |||
43 | private: | 43 | private: | ||
44 | QObject *m_resources; | 44 | QObject *m_resources; | ||
45 | std::unique_ptr<KDirWatch> m_dirWatcher; | 45 | std::unique_ptr<KDirWatch> m_dirWatcher; | ||
46 | QDateTime m_lastUpdate; | 46 | QDateTime m_lastUpdate; | ||
47 | }; | 47 | }; | ||
48 | 48 | | |||
49 | #endif // PLUGINS_EVENT_SPY_PLUGIN_H | 49 | #endif // PLUGINS_EVENT_SPY_PLUGIN_H |