MythTV
master
|
Public Types | |
using | entry = SingleValue::entry |
using | entry_list = std::vector< entry > |
Public Member Functions | |
SingleValueImp (QString table_name, QString id_name, QString value_name) | |
virtual | ~SingleValueImp ()=default |
void | load_data () |
int | add (const QString &name) |
bool | get (int id, QString &value) |
void | remove (int id) |
bool | exists (int id) |
bool | exists (const QString &name, int *id=nullptr) |
const entry_list & | getList () |
virtual bool | sort (const entry &lhs, const entry &rhs) |
void | cleanup () |
Public Attributes | |
QMutex | m_mutex |
Private Types | |
using | entry_map = std::map< int, QString > |
Private Member Functions | |
entry_map::iterator | find (const QString &name) |
void | fill_from_db () |
Private Attributes | |
QString | m_tableName |
QString | m_idName |
QString | m_valueName |
QString | m_insertSql |
QString | m_fillSql |
QString | m_deleteSql |
bool | m_ready {false} |
bool | m_dirty {true} |
entry_list | m_retEntries |
entry_map | m_entries |
SimpleCleanup< SingleValueImp > | m_cleanStub |
Definition at line 27 of file dbaccess.cpp.
Definition at line 30 of file dbaccess.cpp.
using SingleValueImp::entry_list = std::vector<entry> |
Definition at line 31 of file dbaccess.cpp.
|
private |
Definition at line 34 of file dbaccess.cpp.
|
inline |
Definition at line 37 of file dbaccess.cpp.
|
virtualdefault |
|
inline |
Definition at line 53 of file dbaccess.cpp.
Referenced by SingleValue::load_data().
|
inline |
Definition at line 63 of file dbaccess.cpp.
Referenced by SingleValue::add().
|
inline |
Definition at line 90 of file dbaccess.cpp.
Referenced by hardwareprofile.distros.mythtv_data.makeopts.MakeOpts::dump(), SingleValue::get(), and hardwareprofile.distros.mythtv_data.orddict.OrdDict::itervalues().
|
inline |
Definition at line 101 of file dbaccess.cpp.
Referenced by SingleValue::remove().
|
inline |
Definition at line 117 of file dbaccess.cpp.
Referenced by add(), and SingleValue::exists().
|
inline |
Definition at line 122 of file dbaccess.cpp.
|
inline |
Definition at line 134 of file dbaccess.cpp.
Referenced by SingleValue::getList().
Definition at line 152 of file dbaccess.cpp.
|
inline |
Definition at line 157 of file dbaccess.cpp.
|
inlineprivate |
Definition at line 166 of file dbaccess.cpp.
Referenced by exists().
|
inlineprivate |
Definition at line 176 of file dbaccess.cpp.
Referenced by load_data().
|
mutable |
Definition at line 51 of file dbaccess.cpp.
Referenced by load_data().
|
private |
Definition at line 194 of file dbaccess.cpp.
Referenced by SingleValueImp().
|
private |
Definition at line 195 of file dbaccess.cpp.
Referenced by SingleValueImp().
|
private |
Definition at line 196 of file dbaccess.cpp.
Referenced by SingleValueImp().
|
private |
Definition at line 198 of file dbaccess.cpp.
Referenced by add(), and SingleValueImp().
|
private |
Definition at line 199 of file dbaccess.cpp.
Referenced by fill_from_db(), and SingleValueImp().
|
private |
Definition at line 200 of file dbaccess.cpp.
Referenced by remove(), and SingleValueImp().
Definition at line 202 of file dbaccess.cpp.
Referenced by cleanup(), and load_data().
|
private |
Definition at line 204 of file dbaccess.cpp.
|
private |
Definition at line 205 of file dbaccess.cpp.
Referenced by add(), cleanup(), exists(), fill_from_db(), find(), get(), getList(), and remove().
|
private |
Definition at line 206 of file dbaccess.cpp.