Changeset View
Changeset View
Standalone View
Standalone View
kioslave/remote/kdedmodule/remotedirnotify.h
Show All 16 Lines | |||||
17 | */ | 17 | */ | ||
18 | 18 | | |||
19 | #ifndef REMOTEDIRNOTIFY_H | 19 | #ifndef REMOTEDIRNOTIFY_H | ||
20 | #define REMOTEDIRNOTIFY_H | 20 | #define REMOTEDIRNOTIFY_H | ||
21 | 21 | | |||
22 | #include <QUrl> | 22 | #include <QUrl> | ||
23 | #include <QtCore/QObject> | 23 | #include <QtCore/QObject> | ||
24 | 24 | | |||
25 | class KDirWatch; | ||||
26 | | ||||
25 | class RemoteDirNotify : public QObject | 27 | class RemoteDirNotify : public QObject | ||
26 | { | 28 | { | ||
27 | Q_OBJECT | 29 | Q_OBJECT | ||
28 | 30 | | |||
29 | public: | 31 | public: | ||
30 | RemoteDirNotify(); | 32 | RemoteDirNotify(); | ||
31 | 33 | | |||
32 | private slots: | 34 | private slots: | ||
33 | void FilesAdded (const QString &directory); | 35 | void slotRemoteChanged(); | ||
34 | void FilesRemoved (const QStringList &fileList); | | |||
35 | void FilesChanged (const QStringList &fileList); | | |||
36 | 36 | | |||
37 | private: | 37 | private: | ||
38 | QUrl toRemoteURL(const QUrl &url); | 38 | KDirWatch *m_dirWatch; | ||
39 | QList<QUrl> toRemoteURLList(const QStringList &list); | | |||
40 | QUrl m_baseURL; | | |||
41 | }; | 39 | }; | ||
42 | 40 | | |||
43 | #endif | 41 | #endif |