Changeset View
Changeset View
Standalone View
Standalone View
src/kioexec/kioexecd.h
Show All 19 Lines | |||||
20 | 20 | | |||
21 | #ifndef KIOEXECD_H | 21 | #ifndef KIOEXECD_H | ||
22 | #define KIOEXECD_H | 22 | #define KIOEXECD_H | ||
23 | 23 | | |||
24 | #include <KDEDModule> | 24 | #include <KDEDModule> | ||
25 | 25 | | |||
26 | #include <QMap> | 26 | #include <QMap> | ||
27 | #include <QUrl> | 27 | #include <QUrl> | ||
28 | 28 | | |||
dfaure: remove | |||||
29 | class KDirWatch; | 29 | class KDirWatch; | ||
30 | 30 | | |||
31 | class KIOExecd : public KDEDModule | 31 | class KIOExecd : public KDEDModule | ||
32 | { | 32 | { | ||
33 | Q_OBJECT | 33 | Q_OBJECT | ||
34 | Q_CLASSINFO("D-Bus Interface", "org.kde.KIOExecd") | 34 | Q_CLASSINFO("D-Bus Interface", "org.kde.KIOExecd") | ||
35 | 35 | | |||
36 | public: | 36 | public: | ||
37 | KIOExecd(QObject *parent, const QList<QVariant>&); | 37 | KIOExecd(QObject *parent, const QList<QVariant>&); | ||
38 | virtual ~KIOExecd(); | 38 | virtual ~KIOExecd(); | ||
39 | 39 | | |||
anthonyfieroni: Unused? | |||||
40 | public Q_SLOTS: | 40 | public Q_SLOTS: | ||
41 | void watch(const QString &path, const QString &destUrl); | 41 | void watch(const QString &path, const QString &destUrl); | ||
42 | // @since 5.50 | ||||
43 | void watchCommand(const QString &path, const QString &destUrl, const QString &command); | ||||
44 | void removeWatchAndDirectory(const QString &path, const QString &command); | ||||
42 | 45 | | |||
43 | private Q_SLOTS: | 46 | private Q_SLOTS: | ||
44 | void slotDirty(const QString &path); | 47 | void slotDirty(const QString &path); | ||
45 | void slotDeleted(const QString &path); | | |||
46 | 48 | | |||
47 | private: | 49 | private: | ||
48 | KDirWatch *m_watcher; | 50 | KDirWatch *m_watcher; | ||
51 | // temporary file and remote file | ||||
49 | QMap<QString, QUrl> m_watched; | 52 | QMap<QString, QUrl> m_watched; | ||
53 | // application and temporary file | ||||
54 | QMap<QString, QString> m_openedBy; | ||||
55 | // counter for application | ||||
56 | QMap<QString, int> m_appCounter; | ||||
50 | }; | 57 | }; | ||
51 | 58 | | |||
52 | #endif | 59 | #endif | ||
53 | 60 | |
remove