Changeset View
Changeset View
Standalone View
Standalone View
krusader/FileSystem/filesystem.h
Show First 20 Lines • Show All 136 Lines • ▼ Show 20 Line(s) | 57 | public: | |||
---|---|---|---|---|---|
137 | inline bool isRemote() const { | 137 | inline bool isRemote() const { | ||
138 | const QString sc = _currentDirectory.scheme(); | 138 | const QString sc = _currentDirectory.scheme(); | ||
139 | return (sc == "fish" || sc == "ftp" || sc == "sftp" || sc == "nfs" || sc == "smb" | 139 | return (sc == "fish" || sc == "ftp" || sc == "sftp" || sc == "nfs" || sc == "smb" | ||
140 | || sc == "webdav"); | 140 | || sc == "webdav"); | ||
141 | } | 141 | } | ||
142 | /// Returns true if this filesystem is currently refreshing the current directory. | 142 | /// Returns true if this filesystem is currently refreshing the current directory. | ||
143 | inline bool isRefreshing() const { return _isRefreshing; } | 143 | inline bool isRefreshing() const { return _isRefreshing; } | ||
144 | 144 | | |||
145 | /// Delete or trash files in the current directory. Implemented async. | | |||
146 | void deleteFiles(const QStringList &fileNames, bool moveToTrash = true); | | |||
147 | /// Delete or trash arbitrary files. Implemented async. Universal refresh not fully implemented. | 145 | /// Delete or trash arbitrary files. Implemented async. Universal refresh not fully implemented. | ||
148 | void deleteAnyFiles(const QList<QUrl> &urls, bool moveToTrash); | 146 | void deleteFiles(const QList<QUrl> &urls, bool moveToTrash); | ||
149 | 147 | | |||
150 | /// Return the input URL with a trailing slash if absent. | 148 | /// Return the input URL with a trailing slash if absent. | ||
151 | static QUrl ensureTrailingSlash(const QUrl &url); | 149 | static QUrl ensureTrailingSlash(const QUrl &url); | ||
152 | /// Return the input URL without trailing slash. | 150 | /// Return the input URL without trailing slash. | ||
153 | static QUrl cleanUrl(const QUrl &url) { | 151 | static QUrl cleanUrl(const QUrl &url) { | ||
154 | return url.adjusted(QUrl::StripTrailingSlash); | 152 | return url.adjusted(QUrl::StripTrailingSlash); | ||
155 | } | 153 | } | ||
156 | /// Add 'file' scheme to non-empty URL without scheme | 154 | /// Add 'file' scheme to non-empty URL without scheme | ||
▲ Show 20 Lines • Show All 67 Lines • Show Last 20 Lines |