Changeset View
Changeset View
Standalone View
Standalone View
krusader/FileSystem/filesystem.h
Show First 20 Lines • Show All 165 Lines • ▼ Show 20 Line(s) | 65 | public: | |||
---|---|---|---|---|---|
166 | 166 | | |||
167 | /// Return a file item for a local file inside a directory | 167 | /// Return a file item for a local file inside a directory | ||
168 | static FileItem *createLocalFileItem(const QString &name, const QString &directory, | 168 | static FileItem *createLocalFileItem(const QString &name, const QString &directory, | ||
169 | bool virt = false); | 169 | bool virt = false); | ||
170 | /// Return a file item for a KIO result. Returns 0 if entry is not needed | 170 | /// Return a file item for a KIO result. Returns 0 if entry is not needed | ||
171 | static FileItem *createFileItemFromKIO(const KIO::UDSEntry &entry, const QUrl &directory, | 171 | static FileItem *createFileItemFromKIO(const KIO::UDSEntry &entry, const QUrl &directory, | ||
172 | bool virt = false); | 172 | bool virt = false); | ||
173 | 173 | | |||
174 | // set the parent window to be used for dialogs | 174 | /// Read symlink with extra precautions | ||
175 | static QString readLinkSafely(const char *path); | ||||
176 | | ||||
177 | /// Set the parent window to be used for dialogs | ||||
175 | void setParentWindow(QWidget *widget) { parentWindow = widget; } | 178 | void setParentWindow(QWidget *widget) { parentWindow = widget; } | ||
176 | 179 | | |||
177 | signals: | 180 | signals: | ||
178 | /// Emitted when this filesystem is currently refreshing the filesystem directory. | 181 | /// Emitted when this filesystem is currently refreshing the filesystem directory. | ||
179 | void refreshJobStarted(KIO::Job *job); | 182 | void refreshJobStarted(KIO::Job *job); | ||
180 | /// Emitted when an error occurred in this filesystem during refresh. | 183 | /// Emitted when an error occurred in this filesystem during refresh. | ||
181 | void error(const QString &msg); | 184 | void error(const QString &msg); | ||
182 | /// Emitted when the content of a directory was changed by this filesystem. | 185 | /// Emitted when the content of a directory was changed by this filesystem. | ||
▲ Show 20 Lines • Show All 46 Lines • Show Last 20 Lines |