#include <mythdbcon.h>
Definition at line 39 of file mythdbcon.h.
Public Member Functions | |
| MDBManager (void) | |
| ~MDBManager (void) | |
| void | CloseDatabases (void) |
| void | PurgeIdleConnections (void) |
Protected Member Functions | |
| MSqlDatabase * | popConnection (void) |
| void | pushConnection (MSqlDatabase *db) |
| MSqlDatabase * | getSchedCon (void) |
| MSqlDatabase * | getDDCon (void) |
Private Attributes | |
| QList< MSqlDatabase * > | m_pool |
| QMutex | m_lock |
| QSemaphore * | m_sem |
| int | m_nextConnID |
| int | m_connCount |
| MSqlDatabase * | m_schedCon |
| MSqlDatabase * | m_DDCon |
Friends | |
| class | MSqlQuery |
| MDBManager::MDBManager | ( | void | ) |
Definition at line 184 of file mythdbcon.cpp.
| MDBManager::~MDBManager | ( | void | ) |
Definition at line 195 of file mythdbcon.cpp.
| void MDBManager::CloseDatabases | ( | void | ) |
| void MDBManager::PurgeIdleConnections | ( | void | ) |
Definition at line 247 of file mythdbcon.cpp.
Referenced by popConnection(), pushConnection(), and HouseKeeper::RunHouseKeeping().
| MSqlDatabase * MDBManager::popConnection | ( | void | ) | [protected] |
Definition at line 205 of file mythdbcon.cpp.
Referenced by MSqlQuery::InitCon(), and MSqlQuery::testDBConnection().
| void MDBManager::pushConnection | ( | MSqlDatabase * | db | ) | [protected] |
Definition at line 231 of file mythdbcon.cpp.
Referenced by MSqlQuery::InitCon(), MSqlQuery::testDBConnection(), and MSqlQuery::~MSqlQuery().
| MSqlDatabase * MDBManager::getSchedCon | ( | void | ) | [protected] |
| MSqlDatabase * MDBManager::getDDCon | ( | void | ) | [protected] |
friend class MSqlQuery [friend] |
Definition at line 41 of file mythdbcon.h.
QList<MSqlDatabase*> MDBManager::m_pool [private] |
Definition at line 57 of file mythdbcon.h.
Referenced by CloseDatabases(), popConnection(), PurgeIdleConnections(), pushConnection(), and ~MDBManager().
QMutex MDBManager::m_lock [private] |
Definition at line 58 of file mythdbcon.h.
Referenced by CloseDatabases(), popConnection(), PurgeIdleConnections(), and pushConnection().
QSemaphore* MDBManager::m_sem [private] |
Definition at line 59 of file mythdbcon.h.
Referenced by MDBManager(), popConnection(), pushConnection(), and ~MDBManager().
int MDBManager::m_nextConnID [private] |
Definition at line 60 of file mythdbcon.h.
Referenced by MDBManager(), popConnection(), and PurgeIdleConnections().
int MDBManager::m_connCount [private] |
Definition at line 61 of file mythdbcon.h.
Referenced by MDBManager(), popConnection(), and PurgeIdleConnections().
MSqlDatabase* MDBManager::m_schedCon [private] |
Definition at line 63 of file mythdbcon.h.
Referenced by getSchedCon(), MDBManager(), and ~MDBManager().
MSqlDatabase* MDBManager::m_DDCon [private] |
Definition at line 64 of file mythdbcon.h.
Referenced by getDDCon(), MDBManager(), and ~MDBManager().
1.5.5