#include <mythdb.h>
Public Member Functions | |
| MDBManager * | GetDBManager (void) |
| DatabaseParams | GetDatabaseParams (void) const |
| void | SetDatabaseParams (const DatabaseParams ¶ms) |
| void | SetLocalHostname (const QString &name) |
| QString | GetHostName (void) const |
| void | IgnoreDatabase (bool bIgnore) |
| bool | IsDatabaseIgnored (void) const |
| void | SetSuppressDBMessages (bool bUpgraded) |
| bool | SuppressDBMessages (void) const |
| void | ClearSettingsCache (const QString &key=QString()) |
| void | ActivateSettingsCache (bool activate=true) |
| void | OverrideSettingForSession (const QString &key, const QString &newValue) |
| Overrides the given setting for the execution time of the process. | |
| void | ClearOverrideSettingForSession (const QString &key) |
| Clears session Overrides for the given setting. | |
| void | SaveSetting (const QString &key, int newValue) |
| void | SaveSetting (const QString &key, const QString &newValue) |
| bool | SaveSettingOnHost (const QString &key, const QString &newValue, const QString &host) |
| bool | ClearSetting (const QString &key) |
| bool | ClearSettingOnHost (const QString &key, const QString &host) |
| bool | GetSettings (QMap< QString, QString > &_key_value_pairs) |
| QString | GetSetting (const QString &key, const QString &defaultval) |
| int | GetNumSetting (const QString &key, int defaultval) |
| double | GetFloatSetting (const QString &key, double defaultval) |
| QString | GetSetting (const QString &key) |
| int | GetNumSetting (const QString &key) |
| double | GetFloatSetting (const QString &key) |
| QString | GetSettingOnHost (const QString &key, const QString &host, const QString &defaultval) |
| int | GetNumSettingOnHost (const QString &key, const QString &host, int defaultval) |
| double | GetFloatSettingOnHost (const QString &key, const QString &host, double defaultval) |
| QString | GetSettingOnHost (const QString &key, const QString &host) |
| int | GetNumSettingOnHost (const QString &key, const QString &host) |
| double | GetFloatSettingOnHost (const QString &key, const QString &host) |
| void | GetResolutionSetting (const QString &type, int &width, int &height, double &forced_aspect, double &refreshrate, int index=-1) |
| void | GetResolutionSetting (const QString &type, int &width, int &height, int index=-1) |
| void | WriteDelayedSettings (void) |
| void | SetHaveDBConnection (bool connected) |
| Set a flag indicating we have successfully connected to the database. | |
| void | SetHaveSchema (bool schema) |
| Set a flag indicating that we have discovered tables and that this therefore not a new empty database. | |
| bool | HaveSchema (void) const |
| Get a flag indicating that we have discovered tables and that this therefore not a new empty database. | |
| bool | HaveValidDatabase (void) const |
| Returns true if we have successfully connected to the database and that database has tables. | |
Static Public Member Functions | |
| static QString | GetError (const QString &where, const MSqlQuery &query) |
| static void | DBError (const QString &where, const MSqlQuery &query) |
| static QString | DBErrorMessage (const QSqlError &err) |
| static MythDB * | getMythDB () |
| static void | destroyMythDB () |
| static QString | toCommaList (const QMap< QString, QVariant > &bindings, uint indent=0, uint softMaxColumn=80) |
Protected Member Functions | |
| MythDB () | |
| ~MythDB () | |
Private Attributes | |
| MythDBPrivate * | d |
Friends | |
| class | MSqlQuery |
Definition at line 14 of file mythdb.h.
| MythDB::MythDB | ( | ) | [protected] |
Definition at line 107 of file mythdb.cpp.
Referenced by getMythDB().
| MythDB::~MythDB | ( | ) | [protected] |
Definition at line 112 of file mythdb.cpp.
| MDBManager * MythDB::GetDBManager | ( | void | ) |
Definition at line 117 of file mythdb.cpp.
Referenced by MSqlQuery::DDCon(), JobQueue::DoFlagCommercialsThread(), JobQueue::DoMetadataLookupThread(), JobQueue::DoTranscodeThread(), JobQueue::DoUserJobThread(), MythCoreContext::GetDBManager(), MSqlQuery::InitCon(), MPoolThread::run(), MSqlQuery::SchedCon(), MSqlQuery::testDBConnection(), MThread::ThreadCleanup(), DBPurgeHandler::timerEvent(), MSqlQuery::~MSqlQuery(), and MythCoreContextPrivate::~MythCoreContextPrivate().
| QString MythDB::GetError | ( | const QString & | where, | |
| const MSqlQuery & | query | |||
| ) | [static] |
Definition at line 165 of file mythdb.cpp.
Referenced by DBError(), and MSqlQuery::exec().
| void MythDB::DBError | ( | const QString & | where, | |
| const MSqlQuery & | query | |||
| ) | [static] |
Definition at line 181 of file mythdb.cpp.
Referenced by MultiValueImp::add(), SingleValueImp::add(), ChannelGroup::AddChannel(), FileScanner::AddFileToDB(), AddFileType(), RecordingInfo::AddHistory(), Scheduler::AddNewRecords(), Scheduler::AddNotListed(), Myth::AddStorageGroupDir(), ChannelScanSM::AddToList(), LiveTVChain::AppendNewProgram(), ChannelRecPriority::applyChannelRecPriorityChange(), RecordingInfo::ApplyRecordPlayGroupChange(), RecordingInfo::ApplyRecordRecGroupChange(), RecordingInfo::ApplyRecordRecID(), RecordingInfo::ApplyRecordRecTitleChange(), RecordingInfo::ApplyStorageGroupChange(), RecordingInfo::ApplyTranscoderProfileChange(), RecordingInfo::ApplyTranscoderProfileChangeById(), MainServer::BackendQueryDiskSpace(), DBUtil::BackupDB(), InputGroupMap::Build(), Scheduler::BuildNewRecordsQueries(), ProfileGroupEditor::callDelete(), change_program(), JobQueue::ChangeJobArgs(), JobQueue::ChangeJobCmds(), JobQueue::ChangeJobComment(), JobQueue::ChangeJobFlags(), JobQueue::ChangeJobHost(), JobQueue::ChangeJobStatus(), chanid_available(), DDStructureParser::characters(), StorageGroup::CheckAllStorageGroupDirs(), ImportIconsWizard::checkAndDownload(), ChannelBase::CheckChannel(), TVRec::CheckChannelPrefix(), checkChannelPresets(), checkHandlers(), checkImageStoragePaths(), ProgramInfo::CheckProgramIDAuthorities(), checkStoragePaths(), DBUtil::CheckTables(), FileScanner::cleanDB(), HouseKeeper::CleanupAllOldInUsePrograms(), CleanupMyOldInUsePrograms(), HouseKeeper::CleanupMyOldRecordings(), JobQueue::CleanupOldJobsInQueue(), HouseKeeper::CleanupOrphanedLivetvChains(), HouseKeeper::CleanupProgramListings(), HouseKeeper::CleanupRecordedTables(), clearAllKeys(), GameHandler::clearAllMetadata(), clearArchiveTable(), EITCache::ClearChannelLocks(), ProgramInfo::ClearMarkupMap(), ProgramInfo::ClearPositionMap(), clearRSSArticles(), clearTreeItems(), clone_capturecard(), clone_cardinputs(), KeyBindings::CommitAction(), KeyBindings::CommitJumppoint(), CompleteJob(), DBUtil::CountClients(), DataDirectProcessor::CreateATempTable(), DiSEqCDevDevice::CreateById(), CardUtil::CreateCaptureCard(), CardUtil::CreateCardInput(), ChannelUtil::CreateChannel(), CardUtil::CreateInputGroup(), CardInput::CreateNewInputGroup(), VideoDisplayProfile::CreateProfile(), VideoDisplayProfile::CreateProfileGroup(), SourceUtil::CreateSource(), Scheduler::CreateTempTables(), PlaybackBox::createTranscodingProfilesMenu(), StatusBox::customEvent(), ChannelEditor::customEvent(), DataDirectProcessor::DataDirectProgramUpdate(), ProgramRecPriority::deactivate(), MythGamePlayerEditor::del(), TransportListEditor::Delete(), RecordingRule::Delete(), delete_in_db(), delete_program(), JobQueue::DeleteAllJobs(), CardUtil::DeleteCard(), ChannelUtil::DeleteChannel(), ChannelGroup::DeleteChannel(), PowerSearchPopup::deleteClicked(), PhrasePopup::deleteClicked(), CustomPriority::deleteClicked(), VideoDisplayProfile::DeleteDB(), Ripper::deleteExistingTrack(), VideoMetadataImp::DeleteFromDatabase(), RomInfo::DeleteFromDatabase(), RecordingInfo::DeleteHistory(), CardUtil::DeleteInput(), JobQueue::DeleteJob(), ProgLister::DeleteOldEpisode(), ProgLister::DeleteOldSeries(), CardUtil::DeleteOrphanInputs(), PlaylistContainer::deletePlaylist(), VideoDisplayProfile::DeleteProfileGroup(), VideoDisplayProfile::DeleteProfiles(), LiveTVChain::DeleteProgram(), MainServer::DeleteRecordedFiles(), CustomEdit::deleteRule(), ScanInfo::DeleteScan(), SourceUtil::DeleteSource(), Scheduler::DeleteTempTables(), ChannelImporter::DeleteUnusedTransports(), LiveTVChain::DestroyChain(), StorageGroupListEditor::doDelete(), StorageGroupEditor::doDelete(), PlayGroupEditor::doDelete(), ChannelGroupEditor::doDelete(), MainServer::DoDeleteInDB(), GameScanner::doScanAll(), StatusBox::doScheduleStatus(), StatusBox::doTunerStatus(), doUpgradeMusicDatabaseSchema(), doUpgradeTVDatabaseSchema(), doUpgradeVideoDatabaseSchema(), AlbumArtImages::dumpToDatabase(), Metadata::dumpToDatabase(), CaptureCardEditor::edit(), DDStructureParser::endElement(), DiSEqCDevTree::Exists(), AutoExpire::ExpireEpisodesOverMax(), AutoExpire::ExpireRecordings(), NativeArchive::exportVideo(), RomInfo::fillData(), ScanDTVTransport::FillFromDB(), DTVMultiplex::FillFromDB(), ProgramRecPriority::FillList(), ChannelRecPriority::FillList(), Scheduler::FillRecordingDir(), Scheduler::FillRecordListFromDB(), CaptureCard::fillSelections(), TransportList::fillSelections(), RecordingProfile::fillSelections(), ProfileGroup::fillSelections(), Source::fillSelections(), Playlist::fillSonglistFromQuery(), Playlist::fillSonglistFromSmartPlaylist(), ProgLister::FillViewList(), findAllDBSearchGrabbers(), findAllDBTreeGrabbers(), findAllDBTreeGrabbersByHost(), findByURL(), ChannelUtil::FindChannel(), StorageGroup::FindDirs(), ChannelID::findHighest(), findInDB(), FindInDB(), SourceManager::findScripts(), SourceManager::findScriptsDB(), findSearchGrabberByCommand(), findSearchGrabberInDB(), findTreeGrabberByCommand(), findTreeGrabberInDB(), RecordingInfo::FinishedRecording(), LiveTVChain::FinishedRecording(), FlagCommercials(), HouseKeeper::flushDBLogs(), RecordingInfo::ForgetHistory(), FromProgramQuery(), get_cardtype(), get_cardtypes(), get_chan_id_from_db(), get_dtv_multiplex(), get_input_id(), get_max_chanid(), get_on_cardid(), get_on_inputid(), get_use_eit(), get_valid_recorder_list(), Content::GetAlbumArt(), CardUtil::GetAllInputIDs(), RomInfo::GetAllRomInfo(), Scheduler::GetAllScheduled(), GetArtwork(), ChannelUtil::GetATSCChannel(), ChannelUtil::GetBetterMplexID(), ChannelUtil::GetCachedPids(), Capture::GetCaptureCard(), Capture::GetCaptureCardList(), CardUtil::GetCardIDs(), CardUtil::GetCardInputID(), CardUtil::GetCardList(), ChannelUtil::GetCardTypes(), CardUtil::GetCardTypes(), GetCategoryList(), DVBChannel::GetChanID(), ChannelUtil::GetChanID(), ChannelBase::GetChanID(), ChannelUtil::GetChanIDs(), IPTVChannel::GetChanInfo(), ChannelUtil::GetChannelData(), ChannelGroup::GetChannelGroupId(), ChannelGroup::GetChannelGroupName(), ChannelGroup::GetChannelGroups(), TVRec::GetChannelInfo(), ChannelUtil::GetChannelsInternal(), ChannelUtil::GetChannelStringField(), ChannelUtil::GetChannelValueStr(), CardUtil::GetCloneCardIDs(), CardUtil::GetConfiguredDVBInputs(), ChannelUtil::GetConflicting(), PlayGroup::GetCount(), ChannelImporter::GetDBTransports(), ChannelUtil::GetDefaultAuthority(), RecordingRule::GetDefaultFilter(), TVRec::GetDevices(), FileScanner::GetDirectoryId(), CardUtil::GetDisplayName(), ChannelUtil::GetExtendedChannelData(), V4LChannel::GetFormatForChannel(), CardUtil::GetGroupCardIDs(), Myth::GetHosts(), ChannelUtil::GetIcon(), PlayGroup::GetInitialName(), CardUtil::GetInputGroups(), CardUtil::GetInputID(), CardUtil::GetInputIDs(), CardUtil::GetInputInfo(), CardUtil::GetInputNames(), JobQueue::GetJobArgs(), JobQueue::GetJobCmd(), JobQueue::GetJobFlags(), JobQueue::GetJobID(), JobQueue::GetJobInfoFromID(), JobQueue::GetJobsInQueue(), JobQueue::GetJobStatus(), Myth::GetKeys(), SourceUtil::GetListingsLoginData(), Myth::GetLogs(), ChannelUtil::GetMplexID(), SourceUtil::GetMplexIDs(), Content::GetMusic(), GetMythXMLURL(), RecordingProfile::getName(), PlayGroup::GetNames(), TVRec::GetNextProgram(), DBEvent::GetOverlappingPrograms(), DBPerson::GetPersonDB(), VideoDisplayProfile::GetProfileGroupID(), VideoDisplayProfile::GetProfiles(), Guide::GetProgramGuide(), CardUtil::GetQuickTuning(), ProgDetails::getRatings(), RomInfo::GetRomInfoById(), ThumbItem::GetRotationAngle(), getRSSArticles(), ChannelUtil::GetServiceVersion(), PlayGroup::GetSetting(), Myth::GetSetting(), GetSettings(), GetSettingsMap(), ProgFinder::getShowNames(), RemoteEncoder::GetSignalLockTimeout(), ChannelUtil::GetSourceID(), CardUtil::GetSourceID(), ChannelUtil::GetSourceIDForChannel(), SourceUtil::GetSourceName(), TVRec::GetStartChannel(), CardUtil::GetStartingChannel(), CardUtil::GetStartInput(), Myth::GetStorageGroupDirs(), DBUtil::GetTables(), RecordingRule::GetTemplateNames(), CardUtil::GetTimeouts(), getTreeArticles(), ChannelUtil::GetTuningParams(), Content::GetVideo(), Content::GetVideoArtwork(), CardUtil::GetVideoDevices(), Channel::GetVideoMultiplex(), Channel::GetVideoMultiplexList(), Channel::GetVideoSource(), Channel::GetVideoSourceList(), Channel::GetXMLTVIdList(), FillData::GrabData(), RecordingProfile::groupType(), ChannelData::handleChannels(), MainServer::HandleGetPendingRecordings(), ProgramData::HandlePrograms(), Scheduler::HandleReschedule(), SourceUtil::HasDigitalChannel(), IconData::ImportIconMap(), NativeArchive::importRecording(), NativeArchive::importVideo(), ChannelBase::InitializeInputs(), insert_dtv_multiplex(), DBPerson::InsertCreditsDB(), ProgInfo::InsertDB(), DBEvent::InsertDB(), insertGrabberInDB(), insertInDB(), InsertInDB(), DBPerson::InsertPersonDB(), RecordingInfo::InsertProgram(), insertRSSArticleInDB(), insertTreeArticleInDB(), CustomPriority::installClicked(), is_dishnet_eit(), is_input_group_busy(), SourceUtil::IsAnySourceScanable(), CardUtil::IsCardTypePresent(), SourceUtil::IsEncoder(), isNewTune(), isTreeInUse(), CardUtil::IsTunerShared(), lastUpdate(), CardUtil::LinkInputGroup(), RecordingProfile::listProfiles(), CardInputEditor::Load(), InputGroup::Load(), TransFreqTableSelector::Load(), StorageGroupListEditor::Load(), StorageGroupEditor::Load(), RecordingRule::Load(), PlaylistContainer::load(), SimpleDBStorage::Load(), InputSelector::Load(), DiSEqCDevLNB::Load(), DiSEqCDevRotor::Load(), DiSEqCDevSwitch::Load(), DiSEqCDevTree::Load(), DiSEqCDevSettings::Load(), ChannelGroupStorage::Load(), load_markup_datum(), load_settings(), VideoMetadataListManager::loadAllFromDatabase(), RecordingProfile::loadByGroup(), RecordingProfile::loadByID(), RecordingRule::LoadBySearch(), RecordingProfile::loadByType(), EITCache::LoadChannel(), MythBurn::loadConfiguration(), KeyBindings::LoadContexts(), CustomPriority::loadData(), CustomEdit::loadData(), VideoDisplayProfile::LoadDB(), LoadFromOldRecorded(), LoadFromRecorded(), KeyBindings::LoadJumppoints(), ProgDetails::loadPage(), Playlist::loadPlaylistByID(), ProgramInfo::LoadProgramFromRecorded(), LoadScan(), LoadScanList(), MythNews::loadSites(), RecordingRule::LoadTemplate(), MainServer::LocalFilePath(), FileServerHandler::LocalFilePath(), lock_channel(), lockShutdown(), DatabaseLogger::logqmsg(), main(), ProgramInfo::MarkAsInUse(), ScanInfo::MarkProcessed(), markTreeUpdated(), markUpdated(), needsMFDBReminder(), no_capturecards(), Scheduler::OldRecordedFixups(), StorageGroupEditor::open(), RecordingProfileEditor::open(), ProfileGroupEditor::open(), PlayGroupEditor::open(), ChannelGroupEditor::open(), performActualUpdate(), Metadata::persist(), WeatherSource::ProbeScript(), WeatherSource::processExit(), purgeGameDB(), ProgramInfo::QueryBasename(), ProgramInfo::QueryBookmarkTimeStamp(), DBUtil::QueryDBMSVersion(), FileServerHandler::QueryFileSystems(), ProgramInfo::QueryInputDisplayName(), ProgramInfo::QueryMarkupMap(), ProgramInfo::QueryMplexID(), ProgramInfo::QueryPositionMap(), ProgramInfo::QueryTuningInfo(), JobQueue::QueueJob(), RecordingInfo::ReactivateRecording(), RecordingInfo::RecordingInfo(), MythMainWindow::RegisterJump(), MythMainWindow::RegisterKey(), ThumbItem::Remove(), MultiValueImp::remove(), FileScanner::RemoveFileFromDB(), removeFromDB(), RemoveFromDB(), removeGrabberFromDB(), Myth::RemoveStorageGroupDir(), GalleryUtil::RenameDirectory(), DBUtil::RepairTables(), replace_in_db(), Scheduler::ResetDuplicates(), IconData::ResetIconMap(), AllMusic::resync(), romInDB(), RunSimpleQuery(), CardInput::Save(), XMLTVConfig::Save(), TransFreqTableSelector::Save(), AutoIncrementDBSetting::Save(), RecordingRule::Save(), SimpleDBStorage::Save(), IconData::Save(), ChannelID::Save(), ProgramInfo::SaveAspect(), ProgramInfo::SaveAutoExpire(), ProgramInfo::SaveBasename(), ProgramInfo::SaveBookmark(), ChannelUtil::SaveCachedPids(), ProgramInfo::SaveCommFlagged(), MythBurn::saveConfiguration(), ExportNative::saveConfiguration(), ProgramInfo::SaveCutList(), ScreenSetup::saveData(), VideoDisplayProfile::SaveDB(), ProgramInfo::SaveDeletePendingFlag(), ProgramInfo::SaveDVDBookmark(), ProgramInfo::SaveEditing(), ProgramInfo::SaveFilesize(), ProgramInfo::SaveFrameRate(), ProgramInfo::SaveMarkupMap(), SavePending(), Playlist::savePlaylist(), ProgramInfo::SavePositionMap(), ProgramInfo::SavePositionMapDelta(), ProgramInfo::SavePreserve(), ProgramInfo::SaveResolution(), SaveScan(), ScanDTVTransport::SaveScan(), ChannelInsertInfo::SaveScan(), SaveSettingOnHost(), VideoMetadataImp::saveToDatabase(), SmartPLCriteriaRow::saveToDatabase(), RomInfo::SaveToDatabase(), ProgramInfo::SaveTotalDuration(), ProgramInfo::SaveTotalFrames(), ProgramInfo::SaveTranscodeStatus(), ProgramInfo::SaveWatched(), FileScanner::ScanArtwork(), FileScanner::ScanMusic(), ProgramRecPriority::scheduleChanged(), set_lineup_type(), set_on_input(), set_on_source(), SetArtwork(), TVRec::SetChannelInfo(), RecordingInfo::SetDupHistory(), RomInfo::setFavorite(), setGlobalSetting(), PlaybackBox::SetRecGroupPassword(), ThumbItem::SetRotationAngle(), ChannelUtil::SetServiceVersion(), CardUtil::SetStartChannel(), Weather::SetupScreens(), SourceManager::setupSources(), setupTVs(), ChannelUtil::SetVisible(), TVRec::ShouldSwitchToAnotherCard(), MythNews::slotNewsRetrieved(), ChannelOptionsCommon::sourceChanged(), EITScanner::StartActiveScan(), RecordingInfo::StartedRecording(), DiSEqCDevLNB::Store(), DiSEqCDevRotor::Store(), DiSEqCDevSwitch::Store(), DiSEqCDevTree::Store(), DiSEqCDevSettings::Store(), ChannelBase::StoreInputChannels(), CustomEdit::storeRule(), CustomPriority::testSchedule(), ChannelGroup::ToggleChannel(), CardUtil::UnlinkInputGroup(), unlock_channel(), unlockShutdown(), update_channel_basic(), ChannelUtil::UpdateChannel(), DataDirectProcessor::UpdateChannelsSafe(), DataDirectProcessor::UpdateChannelsUnsafe(), DBEvent::UpdateDB(), UpdateDBVersionNumber(), updateDiskCount(), updateDisplayRom(), Scheduler::UpdateDuplicates(), GameHandler::UpdateGameDB(), updateGameName(), VideoMetadata::UpdateHashedDBRecord(), UpdateHashes(), ChannelUtil::UpdateInsertInfoFromDB(), ProgLister::UpdateKeywordInDB(), ProgramInfo::UpdateLastDelete(), HouseKeeper::updateLastrun(), updateLastRunEnd(), updateLastRunStart(), updateLastRunStatus(), DataDirectProcessor::UpdateListings(), Scheduler::UpdateManuals(), Scheduler::UpdateMatches(), Metadata::UpdateModTime(), Scheduler::UpdateNextRecord(), DataDirectProcessor::UpdateProgramViewTable(), RecordingInfo::UpdateRecordingEnd(), SourceUtil::UpdateSource(), IconData::UpdateSourceIcons(), DataDirectProcessor::UpdateStationViewTable(), SearchView::updateTracksList(), UpgradeGameDatabaseSchema(), RecordingRule::UseTempTable(), Scheduler::VerifyCards(), GameHandler::VerifyGameDB(), and HouseKeeper::wantToRun().
| QString MythDB::DBErrorMessage | ( | const QSqlError & | err | ) | [static] |
Definition at line 186 of file mythdb.cpp.
Referenced by GetError(), MSqlDatabase::OpenDatabase(), performActualUpdate(), MSqlQuery::prepare(), CustomPriority::testSchedule(), and UpdateDBVersionNumber().
| DatabaseParams MythDB::GetDatabaseParams | ( | void | ) | const |
Definition at line 201 of file mythdb.cpp.
Referenced by MythCoreContext::GetDatabaseParams(), MSqlDatabase::OpenDatabase(), and SchemaUpgradeWizard::PromptForUpgrade().
| void MythDB::SetDatabaseParams | ( | const DatabaseParams & | params | ) |
Definition at line 206 of file mythdb.cpp.
Referenced by MythContextPrivate::EnableDBerrors(), MythContextPrivate::LoadDatabaseSettings(), MythContextPrivate::ResetDatabase(), MythContextPrivate::SaveDatabaseParams(), MythContextPrivate::SilenceDBerrors(), and MythContextPrivate::UPnPconnect().
| void MythDB::SetLocalHostname | ( | const QString & | name | ) |
Definition at line 211 of file mythdb.cpp.
Referenced by MythCoreContext::SetLocalHostname().
| QString MythDB::GetHostName | ( | void | ) | const |
Definition at line 220 of file mythdb.cpp.
Referenced by RemoteFile::openSocket().
| void MythDB::IgnoreDatabase | ( | bool | bIgnore | ) |
Definition at line 225 of file mythdb.cpp.
Referenced by MythContextPrivate::Init().
| bool MythDB::IsDatabaseIgnored | ( | void | ) | const |
Definition at line 230 of file mythdb.cpp.
Referenced by MythCoreContext::IsDatabaseIgnored().
| void MythDB::SetSuppressDBMessages | ( | bool | bUpgraded | ) |
Definition at line 235 of file mythdb.cpp.
Referenced by MythContextPrivate::EnableDBerrors(), MythContextPrivate::SilenceDBerrors(), UpgradeMusicDatabaseSchema(), and UpgradeTVDatabaseSchema().
| bool MythDB::SuppressDBMessages | ( | void | ) | const |
Definition at line 240 of file mythdb.cpp.
Referenced by MythMainWindow::RegisterKey(), and SaveSettingOnHost().
| void MythDB::ClearSettingsCache | ( | const QString & | key = QString() |
) |
Definition at line 839 of file mythdb.cpp.
Referenced by ActivateSettingsCache(), MythCoreContext::ClearSettingsCache(), SaveSettingOnHost(), and SetLocalHostname().
| void MythDB::ActivateSettingsCache | ( | bool | activate = true |
) |
Definition at line 873 of file mythdb.cpp.
Referenced by MythCoreContext::ActivateSettingsCache().
| void MythDB::OverrideSettingForSession | ( | const QString & | key, | |
| const QString & | value | |||
| ) |
Overrides the given setting for the execution time of the process.
This allows defining settings for the session only, without touching the settings in the data base.
Definition at line 772 of file mythdb.cpp.
Referenced by MythUIHelper::FindThemeDir(), MythCoreContext::OverrideSettingForSession(), SaveSettingOnHost(), and MythUIHelperPrivate::StoreGUIsettings().
| void MythDB::ClearOverrideSettingForSession | ( | const QString & | key | ) |
Clears session Overrides for the given setting.
Definition at line 794 of file mythdb.cpp.
Referenced by MythCoreContext::ClearOverrideSettingForSession(), and SaveSettingOnHost().
| void MythDB::SaveSetting | ( | const QString & | key, | |
| int | newValue | |||
| ) |
Definition at line 245 of file mythdb.cpp.
Referenced by MythThemedMenu::checkPinCode(), MythThemedMenu::customEvent(), MythUIHelper::FindMenuThemeDir(), MythLocale::SaveLocaleDefaults(), MythCoreContext::SaveSetting(), and DBConfiguration::SetValue().
| void MythDB::SaveSetting | ( | const QString & | key, | |
| const QString & | newValue | |||
| ) |
Definition at line 251 of file mythdb.cpp.
| bool MythDB::SaveSettingOnHost | ( | const QString & | key, | |
| const QString & | newValue, | |||
| const QString & | host | |||
| ) |
Definition at line 256 of file mythdb.cpp.
Referenced by ClearSettingOnHost(), MythLocale::SaveLocaleDefaults(), SaveSetting(), MythCoreContext::SaveSettingOnHost(), and WriteDelayedSettings().
| bool MythDB::ClearSetting | ( | const QString & | key | ) |
Definition at line 354 of file mythdb.cpp.
Referenced by DBConfiguration::ClearValue().
| bool MythDB::ClearSettingOnHost | ( | const QString & | key, | |
| const QString & | host | |||
| ) |
Definition at line 359 of file mythdb.cpp.
Referenced by ClearSetting().
| bool MythDB::GetSettings | ( | QMap< QString, QString > & | _key_value_pairs | ) |
Definition at line 436 of file mythdb.cpp.
Referenced by TV::InitFromDB().
| QString MythDB::GetSetting | ( | const QString & | key, | |
| const QString & | defaultval | |||
| ) |
Definition at line 364 of file mythdb.cpp.
Referenced by UPnpDeviceDesc::_InternalLoad(), DDStructureParser::characters(), MythThemedMenu::checkPinCode(), MythThemedMenu::customEvent(), GetFloatSetting(), GetNumSetting(), GetResolutionSetting(), GetSetting(), MythCoreContext::GetSetting(), GetSettings(), MythUIHelper::GetThemeCacheDir(), DBConfiguration::GetValue(), MythMainWindow::Init(), MythLocale::Init(), LCD::init(), MythUIHelper::LoadQtConfig(), MythUIClock::MythUIClock(), MythLocale::SaveLocaleDefaults(), MythMainWindow::SaveScreenShot(), and LCD::SetupLCD().
| int MythDB::GetNumSetting | ( | const QString & | key, | |
| int | defaultval | |||
| ) |
Definition at line 557 of file mythdb.cpp.
Referenced by MythCoreContext::GetNumSetting(), GetResolutionSetting(), MythUIHelperPrivate::GetScreenBounds(), DBConfiguration::GetValue(), MythUIHelper::Init(), MythThemedMenu::parseThemeButton(), LCD::SetupLCD(), MythThemedMenu::ShowMenu(), and MythUIHelperPrivate::StoreGUIsettings().
| double MythDB::GetFloatSetting | ( | const QString & | key, | |
| double | defaultval | |||
| ) |
Definition at line 565 of file mythdb.cpp.
Referenced by MythCoreContext::GetFloatSetting(), and GetResolutionSetting().
| QString MythDB::GetSetting | ( | const QString & | key | ) |
Definition at line 573 of file mythdb.cpp.
| int MythDB::GetNumSetting | ( | const QString & | key | ) |
Definition at line 580 of file mythdb.cpp.
| double MythDB::GetFloatSetting | ( | const QString & | key | ) |
Definition at line 587 of file mythdb.cpp.
| QString MythDB::GetSettingOnHost | ( | const QString & | key, | |
| const QString & | host, | |||
| const QString & | defaultval | |||
| ) |
Definition at line 594 of file mythdb.cpp.
Referenced by GetFloatSettingOnHost(), GetNumSettingOnHost(), GetSettingOnHost(), MythCoreContext::GetSettingOnHost(), and RemoteFile::openSocket().
| int MythDB::GetNumSettingOnHost | ( | const QString & | key, | |
| const QString & | host, | |||
| int | defaultval | |||
| ) |
Definition at line 660 of file mythdb.cpp.
Referenced by MythCoreContext::GetNumSettingOnHost(), and ScreenSaverX11Private::ResetTimer().
| double MythDB::GetFloatSettingOnHost | ( | const QString & | key, | |
| const QString & | host, | |||
| double | defaultval | |||
| ) |
Definition at line 669 of file mythdb.cpp.
Referenced by MythCoreContext::GetFloatSettingOnHost().
| QString MythDB::GetSettingOnHost | ( | const QString & | key, | |
| const QString & | host | |||
| ) |
Definition at line 678 of file mythdb.cpp.
| int MythDB::GetNumSettingOnHost | ( | const QString & | key, | |
| const QString & | host | |||
| ) |
Definition at line 685 of file mythdb.cpp.
| double MythDB::GetFloatSettingOnHost | ( | const QString & | key, | |
| const QString & | host | |||
| ) |
Definition at line 692 of file mythdb.cpp.
| void MythDB::GetResolutionSetting | ( | const QString & | type, | |
| int & | width, | |||
| int & | height, | |||
| double & | forced_aspect, | |||
| double & | refreshrate, | |||
| int | index = -1 | |||
| ) |
Definition at line 699 of file mythdb.cpp.
Referenced by GetResolutionSetting(), MythCoreContext::GetResolutionSetting(), DisplayRes::Initialize(), and MythUIHelperPrivate::StoreGUIsettings().
| void MythDB::GetResolutionSetting | ( | const QString & | type, | |
| int & | width, | |||
| int & | height, | |||
| int | index = -1 | |||
| ) |
Definition at line 758 of file mythdb.cpp.
| void MythDB::WriteDelayedSettings | ( | void | ) |
Definition at line 884 of file mythdb.cpp.
Referenced by MSqlDatabase::OpenDatabase().
| void MythDB::SetHaveDBConnection | ( | bool | connected | ) |
Set a flag indicating we have successfully connected to the database.
Definition at line 902 of file mythdb.cpp.
Referenced by MSqlDatabase::OpenDatabase().
| void MythDB::SetHaveSchema | ( | bool | schema | ) |
Set a flag indicating that we have discovered tables and that this therefore not a new empty database.
Definition at line 911 of file mythdb.cpp.
Referenced by MSqlDatabase::OpenDatabase().
| bool MythDB::HaveSchema | ( | void | ) | const |
Get a flag indicating that we have discovered tables and that this therefore not a new empty database.
This flag is set only once on startup, it is assumed that the tables won't be deleted out from under a running application
Definition at line 923 of file mythdb.cpp.
Referenced by MythContextPrivate::Init().
| bool MythDB::HaveValidDatabase | ( | void | ) | const |
Returns true if we have successfully connected to the database and that database has tables.
This does not indicate that we have a database connection or valid schema at this precise moment, only that it was true at the last check
Definition at line 935 of file mythdb.cpp.
Referenced by GetSetting(), DatabaseLogger::isDatabaseReady(), SaveSettingOnHost(), and WriteDelayedSettings().
| MythDB * MythDB::getMythDB | ( | void | ) | [static] |
Definition at line 25 of file mythdb.cpp.
Referenced by GetMythDB(), HostDBStorage::GetSetClause(), HostDBStorage::GetWhereClause(), TV::InitFromDB(), SchemaUpgradeWizard::PromptForUpgrade(), and MythLocale::SaveLocaleDefaults().
| void MythDB::destroyMythDB | ( | void | ) | [static] |
Definition at line 38 of file mythdb.cpp.
Referenced by DestroyMythDB().
| QString MythDB::toCommaList | ( | const QMap< QString, QVariant > & | bindings, | |
| uint | indent = 0, |
|||
| uint | softMaxColumn = 80 | |||
| ) | [static] |
Definition at line 122 of file mythdb.cpp.
Referenced by GetError().
MythDBPrivate* MythDB::d [private] |
Definition at line 92 of file mythdb.h.
Referenced by ActivateSettingsCache(), ClearOverrideSettingForSession(), ClearSetting(), ClearSettingsCache(), GetDatabaseParams(), GetDBManager(), GetHostName(), GetSetting(), GetSettingOnHost(), GetSettings(), HaveSchema(), HaveValidDatabase(), IgnoreDatabase(), IsDatabaseIgnored(), MythDB(), OverrideSettingForSession(), SaveSetting(), SaveSettingOnHost(), SetDatabaseParams(), SetHaveDBConnection(), SetHaveSchema(), SetLocalHostname(), SetSuppressDBMessages(), SuppressDBMessages(), WriteDelayedSettings(), and ~MythDB().
1.6.3