digiKam
Loading...
Searching...
No Matches
Digikam::ProcessLauncher Class Reference

#include <processlauncher.h>

+ Inheritance diagram for Digikam::ProcessLauncher:

Signals

void signalComplete (bool success, int exitCode)
 

Public Member Functions

qint64 elapsedTime () const
 
int exitCode () const
 
QString output () const
 
 ProcessLauncher (QObject *const parent=nullptr)
 
void setArguments (const QStringList &args)
 
void setConsoleTraces (bool b)
 
void setProgram (const QString &prog)
 
void setTimeOut (int msecs)
 
void setWorkingDirectory (const QString &dir)
 
void startProcess ()
 
bool success () const
 
 ~ProcessLauncher ()
 

Constructor & Destructor Documentation

◆ ProcessLauncher()

Digikam::ProcessLauncher::ProcessLauncher ( QObject *const  parent = nullptr)
explicit

◆ ~ProcessLauncher()

Digikam::ProcessLauncher::~ProcessLauncher ( )

Member Function Documentation

◆ elapsedTime()

qint64 Digikam::ProcessLauncher::elapsedTime ( ) const

Return the elapsed time in ms to run the process.

◆ exitCode()

int Digikam::ProcessLauncher::exitCode ( ) const

Return the exit code from the process.

◆ output()

QString Digikam::ProcessLauncher::output ( ) const

◆ setArguments()

◆ setConsoleTraces()

void Digikam::ProcessLauncher::setConsoleTraces ( bool  b)

If turned on, all traces from the process are printed on the console.

Referenced by Digikam::FFmpegLauncher::soundTrackLength(), Digikam::FFmpegLauncher::supportedCodecs(), and Digikam::FFmpegLauncher::supportedFormats().

◆ setProgram()

◆ setTimeOut()

void Digikam::ProcessLauncher::setTimeOut ( int  msecs)

◆ setWorkingDirectory()

void Digikam::ProcessLauncher::setWorkingDirectory ( const QString &  dir)

◆ signalComplete

void Digikam::ProcessLauncher::signalComplete ( bool  success,
int  exitCode 
)
signal

◆ startProcess()

◆ success()

bool Digikam::ProcessLauncher::success ( ) const

Return true if the process is startd and completed without error.


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