OpenMW
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
Signals | Public Member Functions | Private Slots | Private Attributes | List of all members
CSMDoc::Runner Class Reference

#include <runner.hpp>

Inheritance diagram for CSMDoc::Runner:
Collaboration diagram for CSMDoc::Runner:

Signals

void runStateChanged ()
 

Public Member Functions

 Runner (const boost::filesystem::path &projectPath)
 
 ~Runner ()
 
void start (bool delayed=false)
 
void stop ()
 
bool isRunning () const
 
void configure (const ESM::DebugProfile &profile, const std::vector< std::string > &contentFiles, const std::string &startupInstruction)
 
QTextDocument * getLog ()
 

Private Slots

void finished (int exitCode, QProcess::ExitStatus exitStatus)
 
void readyReadStandardOutput ()
 

Private Attributes

QProcess mProcess
 
bool mRunning
 
ESM::DebugProfile mProfile
 
std::vector< std::string > mContentFiles
 
std::string mStartupInstruction
 
QTemporaryFile * mStartup
 
QTextDocument mLog
 
boost::filesystem::path mProjectPath
 

Constructor & Destructor Documentation

CSMDoc::Runner::Runner ( const boost::filesystem::path &  projectPath)

Here is the call graph for this function:

CSMDoc::Runner::~Runner ( )

Member Function Documentation

void CSMDoc::Runner::configure ( const ESM::DebugProfile profile,
const std::vector< std::string > &  contentFiles,
const std::string &  startupInstruction 
)
void CSMDoc::Runner::finished ( int  exitCode,
QProcess::ExitStatus  exitStatus 
)
privateslot

Here is the caller graph for this function:

QTextDocument * CSMDoc::Runner::getLog ( )
bool CSMDoc::Runner::isRunning ( ) const
Note
Running state is entered when the start function is called. This is not necessarily identical to the moment the child process is started.
void CSMDoc::Runner::readyReadStandardOutput ( )
privateslot

Here is the caller graph for this function:

void CSMDoc::Runner::runStateChanged ( )
signal
void CSMDoc::Runner::start ( bool  delayed = false)
Parameters
delayedFlag as running but do not start the OpenMW process yet (the process must be started by another call of start with delayed==false)
void CSMDoc::Runner::stop ( )

Member Data Documentation

std::vector<std::string> CSMDoc::Runner::mContentFiles
private
QTextDocument CSMDoc::Runner::mLog
private
QProcess CSMDoc::Runner::mProcess
private
ESM::DebugProfile CSMDoc::Runner::mProfile
private
boost::filesystem::path CSMDoc::Runner::mProjectPath
private
bool CSMDoc::Runner::mRunning
private
QTemporaryFile* CSMDoc::Runner::mStartup
private
std::string CSMDoc::Runner::mStartupInstruction
private

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