Diana Software
Public Member Functions | Private Attributes | List of all members
QDbWatchdogThread Class Reference

thread responsible for closing the database connection after it remains idle for a certain amount of time. More...

Inheritance diagram for QDbWatchdogThread:
QBaseThread

Public Member Functions

 QDbWatchdogThread ()
 
virtual ~QDbWatchdogThread ()
 
void SetWatchdogTimer (QWatchdogTimer *timer)
 
void SetDatabase (QDb *db)
 
virtual void operator() ()
 
- Public Member Functions inherited from QBaseThread
 QBaseThread ()
 
virtual ~QBaseThread ()
 
void SetError (QError *err)
 
void SetControlFlag (const int *flag)
 

Private Attributes

QWatchdogTimerfTimer
 
QDbfDb
 

Additional Inherited Members

- Protected Attributes inherited from QBaseThread
QErrorfErr
 
const int * fControlFlag
 

Detailed Description

thread responsible for closing the database connection after it remains idle for a certain amount of time.

Author
Sergio Di Domizio

This class uses protected methods IsConnected() and Disconnect() of QDb, therefore it needs to be friend of QDb.

Definition at line 19 of file QDbWatchdogThread.hh.

Constructor & Destructor Documentation

◆ QDbWatchdogThread()

QDbWatchdogThread::QDbWatchdogThread ( )

Definition at line 9 of file QDbWatchdogThread.cc.

◆ ~QDbWatchdogThread()

virtual QDbWatchdogThread::~QDbWatchdogThread ( )
inlinevirtual

Definition at line 23 of file QDbWatchdogThread.hh.

Member Function Documentation

◆ operator()()

void QDbWatchdogThread::operator() ( )
virtual

◆ SetDatabase()

void QDbWatchdogThread::SetDatabase ( QDb db)
inline

the database is not owned by this object

Definition at line 28 of file QDbWatchdogThread.hh.

References fDb.

Referenced by QDbWatchdogThreadHandler::Start().

◆ SetWatchdogTimer()

void QDbWatchdogThread::SetWatchdogTimer ( QWatchdogTimer timer)
inline

the timer is not owned by this object

Definition at line 26 of file QDbWatchdogThread.hh.

References fTimer.

Referenced by QDbWatchdogThreadHandler::Start().

Member Data Documentation

◆ fDb

QDb* QDbWatchdogThread::fDb
private

Definition at line 38 of file QDbWatchdogThread.hh.

Referenced by operator()(), and SetDatabase().

◆ fTimer

QWatchdogTimer* QDbWatchdogThread::fTimer
private

Definition at line 37 of file QDbWatchdogThread.hh.

Referenced by operator()(), and SetWatchdogTimer().


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