Changeset View
Changeset View
Standalone View
Standalone View
kdevplatform/interfaces/iruntime.h
Show First 20 Lines • Show All 70 Lines • ▼ Show 20 Line(s) | 47 | public: | |||
---|---|---|---|---|---|
71 | 71 | | |||
72 | /** | 72 | /** | ||
73 | * Given a @p runtimePath from the runtime | 73 | * Given a @p runtimePath from the runtime | ||
74 | * @returns the path in our file system scope that maps to the runtime's | 74 | * @returns the path in our file system scope that maps to the runtime's | ||
75 | */ | 75 | */ | ||
76 | virtual Path pathInHost(const Path& runtimePath) const = 0; | 76 | virtual Path pathInHost(const Path& runtimePath) const = 0; | ||
77 | 77 | | |||
78 | /** | 78 | /** | ||
79 | * Analogous to QStandardPaths::findExecutable(), searches for the executable | ||||
80 | * named @p executableName in the paths specified by @p paths, or the | ||||
81 | * system paths if paths is empty. | ||||
82 | * @returns the absolute file path to the executable, or an empty string if not found. | ||||
83 | */ | ||||
84 | virtual QString findExecutable(const QString& executableName, | ||||
85 | const QStringList& paths = QStringList()) const = 0; | ||||
mwolff: you can remove the `paths` arg - it's currently never used as far as I can see. we can add it… | |||||
86 | | ||||
87 | /** | ||||
79 | * @returns the value for an environment variable in the runtime | 88 | * @returns the value for an environment variable in the runtime | ||
80 | */ | 89 | */ | ||
81 | virtual QByteArray getenv(const QByteArray& varname) const = 0; | 90 | virtual QByteArray getenv(const QByteArray& varname) const = 0; | ||
82 | 91 | | |||
83 | /** | 92 | /** | ||
84 | * @returns a path for binary directories or empty if there's no such thing. | 93 | * @returns a path for binary directories or empty if there's no such thing. | ||
85 | * | 94 | * | ||
86 | * Some runtime systems won't be benefiting much from having custom build directories. | 95 | * Some runtime systems won't be benefiting much from having custom build directories. | ||
Show All 23 Lines |
you can remove the paths arg - it's currently never used as far as I can see. we can add it if need be in the future