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 37 of file mythdbcon.h.


Public Member Functions

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

Protected Member Functions

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

Private Attributes

QPtrList< MSqlDatabasem_pool
QMutex m_lock
QSemaphore * m_sem
int m_connID
MSqlDatabasem_schedCon
MSqlDatabasem_DDCon

Friends

class MSqlQuery

Constructor & Destructor Documentation

MDBManager::MDBManager ( void   ) 

Definition at line 173 of file mythdbcon.cpp.

MDBManager::~MDBManager ( void   ) 

Definition at line 184 of file mythdbcon.cpp.


Member Function Documentation

void MDBManager::CloseDatabases ( void   ) 

Definition at line 252 of file mythdbcon.cpp.

Referenced by MythContextPrivate::ResetDatabase().

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

Definition at line 190 of file mythdbcon.cpp.

Referenced by MSqlQuery::InitCon().

void MDBManager::pushConnection ( MSqlDatabase db  )  [protected]

Definition at line 211 of file mythdbcon.cpp.

Referenced by MSqlQuery::~MSqlQuery().

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

Definition at line 224 of file mythdbcon.cpp.

Referenced by MSqlQuery::SchedCon().

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

Definition at line 237 of file mythdbcon.cpp.

Referenced by MSqlQuery::DDCon().


Friends And Related Function Documentation

friend class MSqlQuery [friend]

Definition at line 39 of file mythdbcon.h.


Member Data Documentation

QPtrList<MSqlDatabase> MDBManager::m_pool [private]

Definition at line 54 of file mythdbcon.h.

Referenced by CloseDatabases(), MDBManager(), popConnection(), pushConnection(), and ~MDBManager().

QMutex MDBManager::m_lock [private]

Definition at line 55 of file mythdbcon.h.

Referenced by CloseDatabases(), popConnection(), and pushConnection().

QSemaphore* MDBManager::m_sem [private]

Definition at line 56 of file mythdbcon.h.

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

int MDBManager::m_connID [private]

Definition at line 57 of file mythdbcon.h.

Referenced by MDBManager(), and popConnection().

Definition at line 59 of file mythdbcon.h.

Referenced by getSchedCon(), and MDBManager().

Definition at line 60 of file mythdbcon.h.

Referenced by getDDCon(), and MDBManager().


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

Generated on Sat Dec 18 05:16:05 2010 for MythTV by  doxygen 1.5.5