|
MythTV master
|
#include "mythdb.h"#include <vector>#include <QReadWriteLock>#include <QTextStream>#include <QSqlError>#include <QMutex>#include <QFile>#include <QHash>#include <QDir>#include <QRegularExpression>#include <QStandardPaths>#include "configuration.h"#include "mythconfig.h"#include "mythdbcon.h"#include "mythlogging.h"#include "mythdirs.h"#include "mythcorecontext.h"#include "mythrandom.h"Go to the source code of this file.
Classes | |
| struct | SingleSetting |
| class | MythDBPrivate |
Typedefs | |
| using | SettingsMap = QHash< QString, QString > |
Functions | |
| MythDB * | GetMythDB (void) |
| void | DestroyMythDB (void) |
| MythDB * | GetMythTestDB (const QString &testname) |
| static void | clear (SettingsMap &cache, SettingsMap &overrides, const QString &myKey) |
Variables | |
| static MythDB * | mythdb = nullptr |
| static QMutex | dbLock |
| const char *const | kSentinelValue { "<settings_sentinel_value>" } |
| const char *const | kClearSettingValue { "<clear_setting_value>" } |
| static const int | settings_reserve = 61 |
| using SettingsMap = QHash<QString,QString> |
Definition at line 90 of file mythdb.cpp.
|
static |
Definition at line 949 of file mythdb.cpp.
Referenced by DeleteMap::CleanMap(), MarkedFiles::Clear(), MythDB::ClearSettingsCache(), DeviceManager::CloseDevices(), MarkedFiles::Initialise(), and MpegRecorder::Pause().
| void DestroyMythDB | ( | void | ) |
Definition at line 56 of file mythdb.cpp.
Referenced by MythCoreContextPrivate::~MythCoreContextPrivate().
| MythDB * GetMythDB | ( | void | ) |
Definition at line 51 of file mythdb.cpp.
Referenced by MythUIAnimation::Activate(), AddPaintEngine(), MSqlQuery::ChannelCon(), MythThemedMenu::checkPinCode(), MythContext::Impl::ChooseBackend(), LCD::connectToHost(), DBUtil::CountClients(), MythPainterWindow::CreatePainters(), MythMainWindow::customEvent(), MythThemedMenu::customEvent(), DBUtil::DoBackup(), RadioStreamUpdateTask::DoCheckRun(), MythFillDatabaseTask::DoCheckRun(), JobQueue::DoFlagCommercialsThread(), JobQueue::DoMetadataLookupThread(), JobQueue::DoTranscodeThread(), doUpgradeMusicDatabaseSchema(), doUpgradeTVDatabaseSchema(), JobQueue::DoUserJobThread(), MythContext::Impl::EnableDBerrors(), MythScreenStack::EnableEffects(), MythMainWindow::EnterStandby(), MythMainWindow::ExitStandby(), MythContext::Impl::FindDatabase(), V2Myth::GetConnectionInfo(), V2Config::GetDatabaseStatus(), getDBParamters(), MythDisplay::GetDesiredScreen(), MythMainWindow::GetKey(), MythUIThemeCache::GetThemeCacheDir(), LCD::init(), MediaServer::Init(), MythMainWindow::Init(), MythLocale::Init(), MSqlQuery::InitCon(), MythDisplay::Initialise(), InitializeDatabase(), InitializeMythSchema(), MythDisplay::InitScreenBounds(), UPnpDeviceDesc::InternalLoad(), MythUITextEdit::keyPressEvent(), DatabaseSettings::Load(), MythContext::Impl::LoadDatabaseSettings(), main(), MythUIThemeCache::MythUIThemeCache(), MSqlDatabase::OpenDatabase(), RemoteFile::openSocket(), MythThemedMenu::parseThemeButton(), MDBManager::popConnection(), MSqlQuery::prepare(), MythContext::Impl::PromptForDatabaseParams(), MythUIThemeCache::PruneCacheDir(), MythMainWindow::RegisterJump(), MythMainWindow::RegisterKey(), MythContext::Impl::ResetDatabase(), MPoolThread::run(), DatabaseSettings::Save(), EditMetadataCommon::saveAll(), MythMainWindow::SaveScreenShot(), MythDB::SaveSettingOnHost(), MSqlQuery::SchedCon(), V2Myth::SetConnectionInfo(), V2Config::SetDatabaseCredentials(), LCD::SetupLCD(), MythThemedMenu::ShowMenu(), EditAlbumartDialog::showMenu(), MythMainWindow::ShowMouseCursor(), MythContext::Impl::SilenceDBerrors(), MythInputDeviceHandler::Start(), MSqlQuery::testDBConnection(), MythContext::Impl::TestDBconnection(), MThread::ThreadCleanup(), DBPurgeHandler::timerEvent(), MainServer::TruncateAndClose(), MusicMetadata::updateStreamList(), MusicPlayer::updateVolatileMetadata(), UpgradeArchiveDatabaseSchema(), UpgradeGameDatabaseSchema(), UpgradeMusicDatabaseSchema(), UpgradeTVDatabaseSchema(), MythContext::Impl::UPnPconnect(), MSqlQuery::~MSqlQuery(), and MythCoreContextPrivate::~MythCoreContextPrivate().
| MythDB * GetMythTestDB | ( | const QString & | testname | ) |
Definition at line 61 of file mythdb.cpp.
|
static |
Definition at line 24 of file mythdb.cpp.
Referenced by MythDB::destroyMythDB(), and MythDB::getMythDB().
| const char* const kClearSettingValue { "<clear_setting_value>" } |
Definition at line 28 of file mythdb.cpp.
Referenced by MythDB::ClearSettingOnHost(), and MythDB::SaveSettingOnHost().
| const char* const kSentinelValue { "<settings_sentinel_value>" } |
Definition at line 27 of file mythdb.cpp.
Referenced by MythDB::GetBoolSetting(), MythDB::GetFloatSetting(), MythDB::GetFloatSettingOnHost(), MythDB::GetNumSetting(), MythDB::GetNumSettingOnHost(), MythDB::GetSetting(), and MythDB::GetSettingOnHost().
|
static |
Definition at line 23 of file mythdb.cpp.
Referenced by MythDB::destroyMythDB(), and MythDB::getMythDB().
|
static |
Definition at line 119 of file mythdb.cpp.
Referenced by MythDB::ClearSettingsCache(), and MythDBPrivate::MythDBPrivate().