MythTV  0.27pre
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Groups Pages
Classes | Typedefs | Functions | Variables
mythdb.cpp File Reference

Go to the source code of this file.

Classes

struct  SingleSetting
class  MythDBPrivate

Typedefs

typedef QHash< QString, QString > SettingsMap

Functions

MythDB * GetMythDB (void)
void DestroyMythDB (void)
static void clear (SettingsMap &cache, SettingsMap &overrides, const QString &myKey)

Variables

static MythDB * mythdb = NULL
static QMutex dbLock
const char * kSentinelValue = "<settings_sentinel_value>"
const char * kClearSettingValue = "<clear_setting_value>"
static const int settings_reserve = 61

Typedef Documentation

typedef QHash<QString,QString> SettingsMap

Definition at line 63 of file mythdb.cpp.

Function Documentation

MythDB* GetMythDB ( void  )

Definition at line 46 of file mythdb.cpp.

Referenced by UPnpDeviceDesc::_InternalLoad(), DDStructureParser::characters(), MythThemedMenu::checkPinCode(), DBConfiguration::ClearValue(), LCD::connectToHost(), MythThemedMenu::customEvent(), MythMainWindow::customEvent(), MSqlQuery::DDCon(), JobQueue::DoFlagCommercialsThread(), JobQueue::DoMetadataLookupThread(), JobQueue::DoTranscodeThread(), JobQueue::DoUserJobThread(), MythMainWindow::EnterStandby(), MythMainWindow::ExitStandby(), MythUIHelper::FindMenuThemeDir(), MythUIHelper::FindThemeDir(), MythMainWindow::GetKey(), MythUIHelperPrivate::GetScreenBounds(), MythUIHelper::GetThemeCacheDir(), DBConfiguration::GetValue(), MythLocale::Init(), MythMainWindow::Init(), MythUIHelper::Init(), LCD::init(), MSqlQuery::InitCon(), DisplayRes::Initialize(), InitializeMythSchema(), DatabaseLogger::isDatabaseReady(), MythUITextEdit::keyPressEvent(), MythUIHelper::LoadQtConfig(), main(), MythUIClock::MythUIClock(), MSqlDatabase::OpenDatabase(), RemoteFile::openSocket(), MythThemedMenu::parseThemeButton(), MSqlQuery::prepare(), MythMainWindow::RegisterJump(), MythMainWindow::RegisterKey(), ScreenSaverX11Private::ResetTimer(), MPoolThread::run(), EditMetadataCommon::saveAll(), MythMainWindow::SaveScreenShot(), MythDB::SaveSettingOnHost(), MSqlQuery::SchedCon(), LCD::SetupLCD(), DBConfiguration::SetValue(), MythThemedMenu::ShowMenu(), EditAlbumartDialog::showMenu(), MythMainWindow::ShowMouseCursor(), MythMainWindow::StartLIRC(), MythUIHelperPrivate::StoreGUIsettings(), MSqlQuery::testDBConnection(), MThread::ThreadCleanup(), DBPurgeHandler::timerEvent(), MainServer::TruncateAndClose(), MusicPlayer::updateVolatileMetadata(), UpgradeMusicDatabaseSchema(), UpgradeTVDatabaseSchema(), MSqlQuery::~MSqlQuery(), and MythCoreContextPrivate::~MythCoreContextPrivate().

void DestroyMythDB ( void  )

Definition at line 51 of file mythdb.cpp.

Referenced by MythCoreContextPrivate::~MythCoreContextPrivate().

static void clear ( SettingsMap cache,
SettingsMap overrides,
const QString &  myKey 
)
static

Variable Documentation

MythDB* mythdb = NULL
static

Definition at line 18 of file mythdb.cpp.

Referenced by MythDB::destroyMythDB(), and MythDB::getMythDB().

QMutex dbLock
static

Definition at line 19 of file mythdb.cpp.

Referenced by MythDB::destroyMythDB(), and MythDB::getMythDB().

const char* kSentinelValue = "<settings_sentinel_value>"
const char* kClearSettingValue = "<clear_setting_value>"

Definition at line 23 of file mythdb.cpp.

Referenced by MythDB::ClearSettingOnHost(), and MythDB::SaveSettingOnHost().

const int settings_reserve = 61
static

Definition at line 92 of file mythdb.cpp.

Referenced by MythDB::ClearSettingsCache(), and MythDBPrivate::MythDBPrivate().