TreeFrogFramework  2.8
Public Member Functions | Protected Slots | List of all members
TBackgroundProcess Class Reference

#include <tbackgroundprocess.h>

Inheritance diagram for TBackgroundProcess:
Inheritance graph
[legend]
Collaboration diagram for TBackgroundProcess:
Collaboration graph
[legend]

Public Member Functions

 TBackgroundProcess (QObject *parent=nullptr)
 
virtual ~TBackgroundProcess ()
 
void start (const QString &program, const QStringList &arguments, OpenMode mode=ReadWrite, TBackgroundProcessHandler *handler=nullptr)
 
void start (const QString &command, OpenMode mode=ReadWrite, TBackgroundProcessHandler *handler=nullptr)
 
void start (OpenMode mode=ReadWrite, TBackgroundProcessHandler *handler=nullptr)
 
bool autoDelete () const
 
void setAutoDelete (bool autoDelete)
 

Protected Slots

void callStart (const QString &program, const QStringList &arguments, int mode)
 
void handleFinished ()
 

Detailed Description

The TBackgroundProcess class is used to start external programs in background.

Constructor & Destructor Documentation

◆ TBackgroundProcess()

TBackgroundProcess::TBackgroundProcess ( QObject *  parent = nullptr)

◆ ~TBackgroundProcess()

virtual TBackgroundProcess::~TBackgroundProcess ( )
inlinevirtual

Member Function Documentation

◆ autoDelete()

bool TBackgroundProcess::autoDelete ( ) const

◆ callStart

void TBackgroundProcess::callStart ( const QString &  program,
const QStringList &  arguments,
int  mode 
)
protectedslot

◆ handleFinished

void TBackgroundProcess::handleFinished ( )
protectedslot

◆ setAutoDelete()

void TBackgroundProcess::setAutoDelete ( bool  autoDelete)

◆ start() [1/3]

void TBackgroundProcess::start ( const QString &  command,
OpenMode  mode = ReadWrite,
TBackgroundProcessHandler handler = nullptr 
)

◆ start() [2/3]

void TBackgroundProcess::start ( const QString &  program,
const QStringList &  arguments,
OpenMode  mode = ReadWrite,
TBackgroundProcessHandler handler = nullptr 
)

◆ start() [3/3]

void TBackgroundProcess::start ( OpenMode  mode = ReadWrite,
TBackgroundProcessHandler handler = nullptr 
)

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