AppRunner Class Reference
+ Inheritance diagram for AppRunner:

Static Public Member Functions

static void cleanArguments (QStringList &args)
 On Windows this removes any wrapping " chars. More...
 
static Message runExecutable (const CommandLineInfo &cmdInfo)
 
static void runExecutableWrappedInStandardServerConsole (const QIcon &icon, const CommandLineInfo &cli)
 Executes predefined command line. More...
 

Detailed Description

Definition at line 53 of file apprunner.h.

Member Function Documentation

void AppRunner::cleanArguments ( QStringList &  args)
static

On Windows this removes any wrapping " chars.

Explanation: Draft from Qt documentation on QProcess::startDetached: "On Windows, arguments that contain spaces are wrapped in quotes." Thus, on Windows we must unwrap the arguments that are wrapped in quotes because thing like +sv_hostname "Started from Doomseeker" won't work properly and a server with empty name will be started.

Definition at line 36 of file apprunner.cpp.

void AppRunner::runExecutableWrappedInStandardServerConsole ( const QIcon &  icon,
const CommandLineInfo cli 
)
static

Executes predefined command line.

Doomseeker will attempt to wrap the input/output of the program with it's own console

Parameters
iconOptional icon for the console window.
cliCommand line that will be executed.

Definition at line 116 of file apprunner.cpp.


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