GammaRay  2.4.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
 
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, QByteArray > probeSettings () const
 
QProcessEnvironment processEnvironment () const
 
QString rootPath () const
 
void setInjectorType (const QString &injectorType)
 
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 setRootPath (const QString &path)
 
void setUiMode (UiMode mode)
 
UiMode uiMode () 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.

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::setRootPath ( const QString &  path)

Full path to root gammarary path. This overrides specifying a probe ABI and can be useful on non-standard installation layouts of the probes.

UiMode GammaRay::LaunchOptions::uiMode ( ) const

UI mode.


The documentation for this class was generated from the following file:

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