|
MythTV
0.25-pre
|
QSqlDatabase wrapper, used by MSqlQuery. Do not use directly. More...
#include <mythdbcon.h>
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 |
QSqlDatabase wrapper, used by MSqlQuery. Do not use directly.
Definition at line 26 of file mythdbcon.h.
| MSqlDatabase::MSqlDatabase | ( | const QString & | name | ) |
Definition at line 70 of file mythdbcon.cpp.
Definition at line 85 of file mythdbcon.cpp.
| bool MSqlDatabase::OpenDatabase | ( | bool | skipdb = false | ) |
Definition at line 108 of file mythdbcon.cpp.
Referenced by MDBManager::popConnection(), and TestDatabase().
| void MSqlDatabase::SetDBParams | ( | DatabaseParams | params | ) | [inline] |
Definition at line 35 of file mythdbcon.h.
Referenced by TestDatabase().
| bool MSqlDatabase::isOpen | ( | void | ) | [private] |
Definition at line 98 of file mythdbcon.cpp.
Referenced by MSqlQuery::exec(), MSqlQuery::MSqlQuery(), MSqlQuery::prepare(), and MSqlQuery::testDBConnection().
| bool MSqlDatabase::KickDatabase | ( | 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().
| bool MSqlDatabase::Reconnect | ( | void | ) | [private] |
Definition at line 230 of file mythdbcon.cpp.
Referenced by MSqlQuery::Reconnect().
friend class MDBManager [friend] |
Definition at line 28 of file mythdbcon.h.
friend class MSqlQuery [friend] |
Definition at line 29 of file mythdbcon.h.
QString MSqlDatabase::m_name [private] |
Definition at line 45 of file mythdbcon.h.
Referenced by MDBManager::CloseDatabases(), GetConnectionName(), MSqlDatabase(), and ~MSqlDatabase().
QSqlDatabase MSqlDatabase::m_db [private] |
Definition at line 46 of file mythdbcon.h.
Referenced by MDBManager::CloseDatabases(), db(), MSqlQuery::exec(), MSqlQuery::InitCon(), isOpen(), KickDatabase(), MSqlDatabase(), OpenDatabase(), Reconnect(), and ~MSqlDatabase().
QDateTime MSqlDatabase::m_lastDBKick [private] |
Definition at line 47 of file mythdbcon.h.
Referenced by KickDatabase(), MSqlDatabase(), MDBManager::PurgeIdleConnections(), and MDBManager::pushConnection().
DatabaseParams MSqlDatabase::m_dbparms [private] |
Definition at line 48 of file mythdbcon.h.
Referenced by OpenDatabase(), and SetDBParams().
1.7.6.1