QtlMovie 1.12 (A specialized FFmpeg front-end)
QtlBoundProcessResult Class Reference

Result of a process execution. More...

Public Member Functions

 QtlBoundProcessResult (const QString &program=QString(), const QStringList &arguments=QStringList())
 Constructor. More...
 
 QtlBoundProcessResult (const QtlBoundProcessResult &other)
 Copy constructor. More...
 
void appendStandardError (const QByteArray &data)
 Append more data to standard error. More...
 
void appendStandardOutput (const QByteArray &data)
 Append more data to standard output. More...
 
QStringList arguments () const
 Get the command line arguments. More...
 
QString errorMessage () const
 Get an error message after process termination if the process did not execute properly. More...
 
int exitCode () const
 Get the process exit code after process termination. More...
 
bool hasError () const
 Check if the process terminated with an error. More...
 
const QtlBoundProcessResultoperator= (const QtlBoundProcessResult &other)
 Assignment operator. More...
 
QString program () const
 Get the executable file path. More...
 
void setErrorMessage (const QString &errorMessage)
 Set the error message. More...
 
void setExitCode (int exitCode)
 Set the exit code. More...
 
QString standardError () const
 Get the content of the standard error after process termination. More...
 
int standardErrorSize () const
 Get the size of the standard error after process termination. More...
 
QString standardOutput () const
 Get the content of the standard output after process termination. More...
 
int standardOutputSize () const
 Get the size of the standard output after process termination. More...
 

Private Attributes

QStringList _arguments
 Command line arguments. More...
 
QString _errorMessage
 Error message. More...
 
int _exitCode
 Process exit code. More...
 
QString _program
 Executable file path. More...
 
QString _stdError
 Content of standard output. More...
 
QString _stdOutput
 Content of standard output. More...
 

Detailed Description

Result of a process execution.

Constructor & Destructor Documentation

◆ QtlBoundProcessResult() [1/2]

QtlBoundProcessResult::QtlBoundProcessResult ( const QString &  program = QString(),
const QStringList &  arguments = QStringList() 
)

Constructor.

Parameters
[in]programExecutable file path.
[in]argumentsCommand line arguments.

◆ QtlBoundProcessResult() [2/2]

QtlBoundProcessResult::QtlBoundProcessResult ( const QtlBoundProcessResult other)

Copy constructor.

Parameters
[in]otherOther instance to copy.

Member Function Documentation

◆ operator=()

const QtlBoundProcessResult & QtlBoundProcessResult::operator= ( const QtlBoundProcessResult other)

Assignment operator.

Parameters
[in]otherOther instance to copy.

◆ program()

QString QtlBoundProcessResult::program ( ) const
inline

Get the executable file path.

Returns
Executable file path.

◆ arguments()

QStringList QtlBoundProcessResult::arguments ( ) const
inline

Get the command line arguments.

Returns
Command line arguments.

◆ standardOutput()

QString QtlBoundProcessResult::standardOutput ( ) const
inline

Get the content of the standard output after process termination.

Returns
Content of standard output.

◆ standardOutputSize()

int QtlBoundProcessResult::standardOutputSize ( ) const
inline

Get the size of the standard output after process termination.

Returns
Content of standard output.

◆ standardError()

QString QtlBoundProcessResult::standardError ( ) const
inline

Get the content of the standard error after process termination.

Returns
Content of standard error.

◆ standardErrorSize()

int QtlBoundProcessResult::standardErrorSize ( ) const
inline

Get the size of the standard error after process termination.

Returns
Content of standard error.

◆ hasError()

bool QtlBoundProcessResult::hasError ( ) const
inline

Check if the process terminated with an error.

Returns
True on error, false otherwise.

◆ errorMessage()

QString QtlBoundProcessResult::errorMessage ( ) const
inline

Get an error message after process termination if the process did not execute properly.

Returns
Error message. If empty, the process executed correctly.

◆ exitCode()

int QtlBoundProcessResult::exitCode ( ) const
inline

Get the process exit code after process termination.

Returns
Process exit code.

◆ appendStandardOutput()

void QtlBoundProcessResult::appendStandardOutput ( const QByteArray &  data)
inline

Append more data to standard output.

Parameters
[in]dataData to append.

◆ appendStandardError()

void QtlBoundProcessResult::appendStandardError ( const QByteArray &  data)
inline

Append more data to standard error.

Parameters
[in]dataData to append.

◆ setErrorMessage()

void QtlBoundProcessResult::setErrorMessage ( const QString &  errorMessage)
inline

Set the error message.

Parameters
[in]errorMessageError message.

◆ setExitCode()

void QtlBoundProcessResult::setExitCode ( int  exitCode)
inline

Set the exit code.

Parameters
exitCodeExit code.

Member Data Documentation

◆ _program

QString QtlBoundProcessResult::_program
private

Executable file path.

◆ _arguments

QStringList QtlBoundProcessResult::_arguments
private

Command line arguments.

◆ _stdOutput

QString QtlBoundProcessResult::_stdOutput
private

Content of standard output.

◆ _stdError

QString QtlBoundProcessResult::_stdError
private

Content of standard output.

◆ _errorMessage

QString QtlBoundProcessResult::_errorMessage
private

Error message.

◆ _exitCode

int QtlBoundProcessResult::_exitCode
private

Process exit code.


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