Changeset View
Changeset View
Standalone View
Standalone View
src/ioslaves/file/file.h
Show First 20 Lines • Show All 107 Lines • ▼ Show 20 Line(s) | 95 | private: | |||
---|---|---|---|---|---|
108 | 108 | | |||
109 | // We want to execute chmod/chown/utime with elevated privileges (in copy & put) | 109 | // We want to execute chmod/chown/utime with elevated privileges (in copy & put) | ||
110 | // only during the brief period privileges are elevated. If it's not the case show | 110 | // only during the brief period privileges are elevated. If it's not the case show | ||
111 | // a warning and continue. | 111 | // a warning and continue. | ||
112 | PrivilegeOperationReturnValue tryChangeFileAttr(ActionType action, const QVariantList &args, int errcode); | 112 | PrivilegeOperationReturnValue tryChangeFileAttr(ActionType action, const QVariantList &args, int errcode); | ||
113 | 113 | | |||
114 | void redirect(const QUrl &url); | 114 | void redirect(const QUrl &url); | ||
115 | 115 | | |||
116 | // Close without calling finish(). Use this to close after error. | ||||
117 | void closeWithoutFinish(); | ||||
chinmoyr: Nitpick; why not just closeFile() ? | |||||
feverfew: That's how sftp does it, so for consistency. | |||||
118 | | ||||
116 | private: | 119 | private: | ||
117 | mutable QHash<KUserId, QString> mUsercache; | 120 | mutable QHash<KUserId, QString> mUsercache; | ||
118 | mutable QHash<KGroupId, QString> mGroupcache; | 121 | mutable QHash<KGroupId, QString> mGroupcache; | ||
119 | QFile *mFile; | 122 | QFile *mFile; | ||
120 | }; | 123 | }; | ||
121 | 124 | | |||
122 | #endif | 125 | #endif |
Nitpick; why not just closeFile() ?