MDBManager Class Reference

#include <mythdbcon.h>

List of all members.


Detailed Description

DB connection pool, used by MSqlQuery. Do not use directly.

Definition at line 39 of file mythdbcon.h.


Public Member Functions

 MDBManager (void)
 ~MDBManager (void)
void CloseDatabases (void)
void PurgeIdleConnections (void)

Protected Member Functions

MSqlDatabasepopConnection (void)
void pushConnection (MSqlDatabase *db)
MSqlDatabasegetSchedCon (void)
MSqlDatabasegetDDCon (void)

Private Attributes

QList< MSqlDatabase * > m_pool
QMutex m_lock
QSemaphore * m_sem
int m_nextConnID
int m_connCount
MSqlDatabasem_schedCon
MSqlDatabasem_DDCon

Friends

class MSqlQuery

Constructor & Destructor Documentation

MDBManager::MDBManager ( void   ) 

Definition at line 184 of file mythdbcon.cpp.

MDBManager::~MDBManager ( void   ) 

Definition at line 195 of file mythdbcon.cpp.


Member Function Documentation

void MDBManager::CloseDatabases ( void   ) 

Definition at line 337 of file mythdbcon.cpp.

Referenced by MythContextPrivate::ResetDatabase().

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]

MSqlDatabase * MDBManager::getSchedCon ( void   )  [protected]

Definition at line 309 of file mythdbcon.cpp.

Referenced by MSqlQuery::SchedCon().

MSqlDatabase * MDBManager::getDDCon ( void   )  [protected]

Definition at line 322 of file mythdbcon.cpp.

Referenced by MSqlQuery::DDCon().


Friends And Related Function Documentation

friend class MSqlQuery [friend]

Definition at line 41 of file mythdbcon.h.


Member Data Documentation

QList<MSqlDatabase*> MDBManager::m_pool [private]

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().

Definition at line 63 of file mythdbcon.h.

Referenced by getSchedCon(), MDBManager(), and ~MDBManager().

Definition at line 64 of file mythdbcon.h.

Referenced by getDDCon(), MDBManager(), and ~MDBManager().


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

Generated on Thu Sep 9 06:39:45 2010 for MythTV by  doxygen 1.5.5