GammaRay API Documentation
3.2.0
|
Describes the injection and probe options used for launching/attacing to a host process. More...
#include <launchoptions.h>
Public Types | |
enum | UiMode { InProcessUi , OutOfProcessUi , NoUi } |
Public Member Functions | |
LaunchOptions (const LaunchOptions &other) | |
QString | absoluteExecutablePath () const |
bool | execute (const QString &launcherPath) const |
QString | injectorType () const |
QString | injectorTypeExecutableOverride () const |
bool | isAttach () const |
bool | isLaunch () const |
bool | isValid () const |
QStringList | launchArguments () const |
LaunchOptions & | operator= (const LaunchOptions &other) |
qint64 | pid () const |
ProbeABI | probeABI () const |
QString | probePath () const |
QHash< QByteArray, QByteArray > | probeSettings () const |
QProcessEnvironment | processEnvironment () const |
void | setInjectorType (const QString &injectorType) |
void | setInjectorTypeExecutableOverride (const QString &filePath) |
void | setLaunchArguments (const QStringList &args) |
void | setPid (qint64 pid) |
void | setProbeABI (const ProbeABI &abi) |
void | setProbePath (const QString &path) |
void | setProbeSetting (const QString &key, const QVariant &value) |
void | setProcessEnvironment (const QProcessEnvironment &env) |
void | setUiMode (UiMode mode) |
void | setWorkingDirectory (const QString &path) |
UiMode | uiMode () const |
QString | workingDirectory () const |
Describes the injection and probe options used for launching/attacing to a host process.
QString GammaRay::LaunchOptions::absoluteExecutablePath | ( | ) | const |
Absolute path (as far as it can be determined) of the executable to launch. Only valid if isLaunch() returns true
.
bool GammaRay::LaunchOptions::execute | ( | const QString & | launcherPath | ) | const |
execute this launch options with the given command-line launcher.
QString GammaRay::LaunchOptions::injectorType | ( | ) | const |
Injector type.
QString GammaRay::LaunchOptions::injectorTypeExecutableOverride | ( | ) | const |
Injector executable override.
bool GammaRay::LaunchOptions::isAttach | ( | ) | const |
Returns true
if we are supposed to attach rather than start a new process.
bool GammaRay::LaunchOptions::isLaunch | ( | ) | const |
Returns true
if this is valid and has launch arguments set.
bool GammaRay::LaunchOptions::isValid | ( | ) | const |
Returns true
if no valid launch arguments or process id are set.
void GammaRay::LaunchOptions::setLaunchArguments | ( | const QStringList & | args | ) |
Program and command line arguments to launch.
void GammaRay::LaunchOptions::setPid | ( | qint64 | pid | ) |
Process id for the process to attach to.
void GammaRay::LaunchOptions::setProbePath | ( | const QString & | path | ) |
Full path to the probe being used. This overrides specifying a probe ABI and can be useful on non-standard installation layouts of the probes.
void GammaRay::LaunchOptions::setProbeSetting | ( | const QString & | key, |
const QVariant & | value | ||
) |
Generic key/value settings send to the probe.
void GammaRay::LaunchOptions::setProcessEnvironment | ( | const QProcessEnvironment & | env | ) |
Process environment for the launched target. By default the environment of the launcher process is used.
void GammaRay::LaunchOptions::setWorkingDirectory | ( | const QString & | path | ) |
Working directory for launching the target.
UiMode GammaRay::LaunchOptions::uiMode | ( | ) | const |
UI mode.