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 | #include <QTimer> | ||||
dfaure: remove | |||||
28 | 29 | | |||
29 | class KDirWatch; | 30 | class KDirWatch; | ||
30 | 31 | | |||
31 | class KIOExecd : public KDEDModule | 32 | class KIOExecd : public KDEDModule | ||
32 | { | 33 | { | ||
33 | Q_OBJECT | 34 | Q_OBJECT | ||
34 | Q_CLASSINFO("D-Bus Interface", "org.kde.KIOExecd") | 35 | Q_CLASSINFO("D-Bus Interface", "org.kde.KIOExecd") | ||
35 | 36 | | |||
36 | public: | 37 | public: | ||
37 | KIOExecd(QObject *parent, const QList<QVariant>&); | 38 | KIOExecd(QObject *parent, const QList<QVariant>&); | ||
38 | virtual ~KIOExecd(); | 39 | virtual ~KIOExecd(); | ||
39 | 40 | | |||
anthonyfieroni: Unused? | |||||
40 | public Q_SLOTS: | 41 | public Q_SLOTS: | ||
41 | void watch(const QString &path, const QString &destUrl); | 42 | void watch(const QString &path, const QString &destUrl); | ||
42 | 43 | | |||
43 | private Q_SLOTS: | 44 | private Q_SLOTS: | ||
44 | void slotDirty(const QString &path); | 45 | void slotDirty(const QString &path); | ||
45 | void slotDeleted(const QString &path); | 46 | void slotDeleted(const QString &path); | ||
47 | void slotCreated(const QString &path); | ||||
48 | void slotCheckDeletedFiles(); | ||||
46 | 49 | | |||
47 | private: | 50 | private: | ||
48 | KDirWatch *m_watcher; | 51 | KDirWatch *m_watcher; | ||
52 | // temporary file and associated remote file | ||||
49 | QMap<QString, QUrl> m_watched; | 53 | QMap<QString, QUrl> m_watched; | ||
54 | // temporary file and the last date it was removed | ||||
55 | QMap<QString, QDateTime> m_deleted; | ||||
56 | QTimer m_timer; | ||||
50 | }; | 57 | }; | ||
51 | 58 | | |||
52 | #endif | 59 | #endif | ||
53 | 60 | |
remove