Changeset View
Changeset View
Standalone View
Standalone View
krusader/FileSystem/filesystem.h
Show First 20 Lines • Show All 61 Lines • ▼ Show 20 Line(s) | 59 | enum FS_TYPE { | |||
---|---|---|---|---|---|
62 | /// Filesystem supporting all KIO protocols (file:/, ftp:/, smb:/, etc.) | 62 | /// Filesystem supporting all KIO protocols (file:/, ftp:/, smb:/, etc.) | ||
63 | FS_DEFAULT | 63 | FS_DEFAULT | ||
64 | }; | 64 | }; | ||
65 | 65 | | |||
66 | FileSystem(); | 66 | FileSystem(); | ||
67 | ~FileSystem() override; | 67 | ~FileSystem() override; | ||
68 | 68 | | |||
69 | // DirListerInterface implementation | 69 | // DirListerInterface implementation | ||
70 | inline QList<FileItem *> fileItems() const Q_DECL_OVERRIDE { return _fileItems.values(); } | 70 | inline QList<FileItem *> fileItems() const override { return _fileItems.values(); } | ||
71 | inline unsigned long numFileItems() const Q_DECL_OVERRIDE { return _fileItems.count(); } | 71 | inline unsigned long numFileItems() const override { return _fileItems.count(); } | ||
72 | inline bool isRoot() const Q_DECL_OVERRIDE { | 72 | inline bool isRoot() const override { | ||
73 | const QString path = _currentDirectory.path(); | 73 | const QString path = _currentDirectory.path(); | ||
74 | return path.isEmpty() || path == "/"; | 74 | return path.isEmpty() || path == "/"; | ||
75 | } | 75 | } | ||
76 | 76 | | |||
77 | /// Copy (copy, move or link) files in this filesystem. | 77 | /// Copy (copy, move or link) files in this filesystem. | ||
78 | /// Destination is absolute URL. May implemented async. | 78 | /// Destination is absolute URL. May implemented async. | ||
79 | virtual void copyFiles(const QList<QUrl> &urls, const QUrl &destination, | 79 | virtual void copyFiles(const QList<QUrl> &urls, const QUrl &destination, | ||
80 | KIO::CopyJob::CopyMode mode = KIO::CopyJob::Copy, | 80 | KIO::CopyJob::CopyMode mode = KIO::CopyJob::Copy, | ||
▲ Show 20 Lines • Show All 141 Lines • Show Last 20 Lines |