TreeFrogFramework  1.29
Public Member Functions | Protected Slots | Friends | List of all members
TBackgroundProcessHandler Class Referenceabstract

#include <tbackgroundprocesshandler.h>

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

Public Member Functions

 TBackgroundProcessHandler (QObject *parent=nullptr)
 
virtual ~TBackgroundProcessHandler ()
 
bool autoDelete () const
 
void setAutoDelete (bool autoDelete)
 
TBackgroundProcessbackgroundProcess () const
 
- Public Member Functions inherited from TDatabaseContext
 TDatabaseContext ()
 
virtual ~TDatabaseContext ()
 
QSqlDatabase & getSqlDatabase (int id=0)
 
TKvsDatabase & getKvsDatabase (Tf::KvsEngine engine)
 
void setTransactionEnabled (bool enable, int id=0)
 
void release ()
 
void commitTransactions ()
 
bool commitTransaction (int id=0)
 
void rollbackTransactions ()
 
bool rollbackTransaction (int id=0)
 
int idleTime () const
 

Protected Slots

virtual void handleFinished (int exitCode, QProcess::ExitStatus exitStatus)=0
 
virtual void handleReadyReadStandardError ()
 
virtual void handleReadyReadStandardOutput ()
 
virtual void handleStarted ()
 
virtual void handleStateChanged (QProcess::ProcessState)
 
virtual void handleErrorOccurred (QProcess::ProcessError)
 
void deleteAutoDeleteHandler ()
 

Friends

class TBackgroundProcess
 

Additional Inherited Members

- Static Public Member Functions inherited from TDatabaseContext
static TDatabaseContextcurrentDatabaseContext ()
 
static void setCurrentDatabaseContext (TDatabaseContext *context)
 
- Protected Member Functions inherited from TDatabaseContext
void releaseKvsDatabases ()
 
void releaseSqlDatabases ()
 
- Protected Attributes inherited from TDatabaseContext
QMap< int, TSqlTransaction > sqlDatabases
 
QMap< int, TKvsDatabase > kvsDatabases
 

Detailed Description

The TBackgroundProcessHandler class is used to handle events of a backgound process.

Constructor & Destructor Documentation

◆ TBackgroundProcessHandler()

TBackgroundProcessHandler::TBackgroundProcessHandler ( QObject *  parent = nullptr)

◆ ~TBackgroundProcessHandler()

virtual TBackgroundProcessHandler::~TBackgroundProcessHandler ( )
inlinevirtual

Member Function Documentation

◆ autoDelete()

bool TBackgroundProcessHandler::autoDelete ( ) const

◆ backgroundProcess()

TBackgroundProcess* TBackgroundProcessHandler::backgroundProcess ( ) const
inline

◆ deleteAutoDeleteHandler

void TBackgroundProcessHandler::deleteAutoDeleteHandler ( )
protectedslot

◆ handleErrorOccurred

virtual void TBackgroundProcessHandler::handleErrorOccurred ( QProcess::ProcessError  )
inlineprotectedvirtualslot

◆ handleFinished

virtual void TBackgroundProcessHandler::handleFinished ( int  exitCode,
QProcess::ExitStatus  exitStatus 
)
protectedpure virtualslot

◆ handleReadyReadStandardError

virtual void TBackgroundProcessHandler::handleReadyReadStandardError ( )
inlineprotectedvirtualslot

◆ handleReadyReadStandardOutput

virtual void TBackgroundProcessHandler::handleReadyReadStandardOutput ( )
inlineprotectedvirtualslot

◆ handleStarted

virtual void TBackgroundProcessHandler::handleStarted ( )
inlineprotectedvirtualslot

◆ handleStateChanged

virtual void TBackgroundProcessHandler::handleStateChanged ( QProcess::ProcessState  )
inlineprotectedvirtualslot

◆ setAutoDelete()

void TBackgroundProcessHandler::setAutoDelete ( bool  autoDelete)

Friends And Related Function Documentation

◆ TBackgroundProcess

friend class TBackgroundProcess
friend

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