MythTV  0.25-pre
Public Member Functions | Private Member Functions | Private Attributes | Friends
MSqlDatabase Class Reference

QSqlDatabase wrapper, used by MSqlQuery. Do not use directly. More...

#include <mythdbcon.h>

List of all members.

Public Member Functions

 MSqlDatabase (const QString &name)
 ~MSqlDatabase (void)
bool OpenDatabase (bool skipdb=false)
void SetDBParams (DatabaseParams params)

Private Member Functions

bool isOpen (void)
bool KickDatabase (void)
QString GetConnectionName (void) const
QSqlDatabase db (void) const
bool Reconnect (void)

Private Attributes

QString m_name
QSqlDatabase m_db
QDateTime m_lastDBKick
DatabaseParams m_dbparms

Friends

class MDBManager
class MSqlQuery

Detailed Description

QSqlDatabase wrapper, used by MSqlQuery. Do not use directly.

Definition at line 26 of file mythdbcon.h.


Constructor & Destructor Documentation

MSqlDatabase::MSqlDatabase ( const QString &  name)

Definition at line 70 of file mythdbcon.cpp.

Definition at line 85 of file mythdbcon.cpp.


Member Function Documentation

Definition at line 108 of file mythdbcon.cpp.

Referenced by MDBManager::popConnection(), and TestDatabase().

Definition at line 35 of file mythdbcon.h.

Referenced by TestDatabase().

bool MSqlDatabase::isOpen ( void  ) [private]

Definition at line 220 of file mythdbcon.cpp.

Referenced by MSqlQuery::DDCon(), MSqlQuery::InitCon(), and MSqlQuery::SchedCon().

QString MSqlDatabase::GetConnectionName ( void  ) const [inline, private]

Definition at line 40 of file mythdbcon.h.

QSqlDatabase MSqlDatabase::db ( void  ) const [inline, private]

Definition at line 41 of file mythdbcon.h.

Referenced by MSqlQuery::DDCon(), MSqlQuery::InitCon(), and MSqlQuery::SchedCon().

Definition at line 230 of file mythdbcon.cpp.

Referenced by MSqlQuery::Reconnect().


Friends And Related Function Documentation

friend class MDBManager [friend]

Definition at line 28 of file mythdbcon.h.

friend class MSqlQuery [friend]

Definition at line 29 of file mythdbcon.h.


Member Data Documentation

QString MSqlDatabase::m_name [private]
QSqlDatabase MSqlDatabase::m_db [private]
QDateTime MSqlDatabase::m_lastDBKick [private]

Definition at line 48 of file mythdbcon.h.

Referenced by OpenDatabase(), and SetDBParams().


The documentation for this class was generated from the following files:
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends