GammaRay API Documentaion  2.6.0
Public Types | Public Member Functions | List of all members
GammaRay::LaunchOptions Class Reference

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
 
LaunchOptionsoperator= (const LaunchOptions &other)
 
int pid () const
 
ProbeABI probeABI () const
 
QString probePath () const
 
QHash< QByteArray, QByteArrayprobeSettings () const
 
QProcessEnvironment processEnvironment () const
 
void setInjectorType (const QString &injectorType)
 
void setInjectorTypeExecutableOverride (const QString &filePath)
 
void setLaunchArguments (const QStringList &args)
 
void setPid (int 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
 

Detailed Description

Describes the injection and probe options used for launching/attacing to a host process.

Member Function Documentation

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.

ProbeABI GammaRay::LaunchOptions::probeABI ( ) const

Probe ABI.

void GammaRay::LaunchOptions::setLaunchArguments ( const QStringList args)

Program and command line arguments to launch.

void GammaRay::LaunchOptions::setPid ( int  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.


Klarälvdalens Datakonsult AB (KDAB)
"The Qt Experts"
https://www.kdab.com/
GammaRay
Qt-application inspection and manipulation tool
https://www.kdab.com/gammaray/