Changeset View
Changeset View
Standalone View
Standalone View
src/lib/util/kshell.h
Show First 20 Lines • Show All 186 Lines • ▼ Show 20 Line(s) | |||||
187 | * | 187 | * | ||
188 | * Note that if @p path starts with a tilde but cannot be properly expanded, | 188 | * Note that if @p path starts with a tilde but cannot be properly expanded, | ||
189 | * this function will return an empty string. | 189 | * this function will return an empty string. | ||
190 | * | 190 | * | ||
191 | * @param path the path to tilde-expand | 191 | * @param path the path to tilde-expand | ||
192 | * @return the expanded path | 192 | * @return the expanded path | ||
193 | */ | 193 | */ | ||
194 | KCOREADDONS_EXPORT QString tildeExpand(const QString &path); | 194 | KCOREADDONS_EXPORT QString tildeExpand(const QString &path); | ||
195 | | ||||
196 | /** | ||||
197 | * Performs tilde collapse on @p path. If path did not start by the user | ||||
198 | * homedir returns path unchanged. | ||||
199 | * | ||||
200 | * @param path the path to tilde-collpase | ||||
201 | * @return the collapsed path | ||||
202 | * @since 5.67 | ||||
203 | */ | ||||
204 | KCOREADDONS_EXPORT QString tildeCollapse(const QString &path); | ||||
195 | } | 205 | } | ||
196 | 206 | | |||
197 | Q_DECLARE_OPERATORS_FOR_FLAGS(KShell::Options) | 207 | Q_DECLARE_OPERATORS_FOR_FLAGS(KShell::Options) | ||
198 | 208 | | |||
199 | #endif /* KSHELL_H */ | 209 | #endif /* KSHELL_H */ |