Changeset View
Changeset View
Standalone View
Standalone View
krusader/FileSystem/defaultfilesystem.h
Show First 20 Lines • Show All 44 Lines • ▼ Show 20 Line(s) | |||||
45 | class DefaultFileSystem : public FileSystem { | 45 | class DefaultFileSystem : public FileSystem { | ||
46 | Q_OBJECT | 46 | Q_OBJECT | ||
47 | public: | 47 | public: | ||
48 | DefaultFileSystem(); | 48 | DefaultFileSystem(); | ||
49 | 49 | | |||
50 | void copyFiles(const QList<QUrl> &urls, const QUrl &destination, | 50 | void copyFiles(const QList<QUrl> &urls, const QUrl &destination, | ||
51 | KIO::CopyJob::CopyMode mode = KIO::CopyJob::Copy, | 51 | KIO::CopyJob::CopyMode mode = KIO::CopyJob::Copy, | ||
52 | bool showProgressInfo = true, | 52 | bool showProgressInfo = true, | ||
53 | JobMan::StartMode startMode = JobMan::Default) Q_DECL_OVERRIDE; | 53 | JobMan::StartMode startMode = JobMan::Default) override; | ||
54 | void dropFiles(const QUrl &destination, QDropEvent *event) Q_DECL_OVERRIDE; | 54 | void dropFiles(const QUrl &destination, QDropEvent *event) override; | ||
55 | 55 | | |||
56 | void addFiles(const QList<QUrl> &fileUrls, KIO::CopyJob::CopyMode mode, | 56 | void addFiles(const QList<QUrl> &fileUrls, KIO::CopyJob::CopyMode mode, | ||
57 | const QString &dir = "") Q_DECL_OVERRIDE; | 57 | const QString &dir = "") override; | ||
58 | void mkDir(const QString &name) Q_DECL_OVERRIDE; | 58 | void mkDir(const QString &name) override; | ||
59 | void rename(const QString &fileName, const QString &newName) Q_DECL_OVERRIDE; | 59 | void rename(const QString &fileName, const QString &newName) override; | ||
60 | /// Return URL for file name - even if file does not exist. | 60 | /// Return URL for file name - even if file does not exist. | ||
61 | QUrl getUrl(const QString &name) const Q_DECL_OVERRIDE; | 61 | QUrl getUrl(const QString &name) const override; | ||
62 | bool canMoveToTrash(const QStringList &) const Q_DECL_OVERRIDE { return isLocal(); } | 62 | bool canMoveToTrash(const QStringList &) const override { return isLocal(); } | ||
63 | 63 | | |||
64 | QString mountPoint() const Q_DECL_OVERRIDE { return _mountPoint; } | 64 | QString mountPoint() const override { return _mountPoint; } | ||
65 | bool hasAutoUpdate() const Q_DECL_OVERRIDE { return !_watcher.isNull(); } | 65 | bool hasAutoUpdate() const override { return !_watcher.isNull(); } | ||
66 | void updateFilesystemInfo() Q_DECL_OVERRIDE; | 66 | void updateFilesystemInfo() override; | ||
67 | 67 | | |||
68 | protected: | 68 | protected: | ||
69 | bool refreshInternal(const QUrl &origin, bool onlyScan) Q_DECL_OVERRIDE; | 69 | bool refreshInternal(const QUrl &origin, bool onlyScan) override; | ||
70 | 70 | | |||
71 | protected slots: | 71 | protected slots: | ||
72 | /// Handle result after dir listing job is finished | 72 | /// Handle result after dir listing job is finished | ||
73 | void slotListResult(KJob *job); | 73 | void slotListResult(KJob *job); | ||
74 | /// Fill directory file list with new files from the dir lister | 74 | /// Fill directory file list with new files from the dir lister | ||
75 | void slotAddFiles(KIO::Job *job, const KIO::UDSEntryList &entries); | 75 | void slotAddFiles(KIO::Job *job, const KIO::UDSEntryList &entries); | ||
76 | /// URL redirection signal from dir lister | 76 | /// URL redirection signal from dir lister | ||
77 | void slotRedirection(KIO::Job *job, const QUrl &url); | 77 | void slotRedirection(KIO::Job *job, const QUrl &url); | ||
Show All 19 Lines |