MythTV
master
|
#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. More... | |
void | ClearOverrideSettingForSession (const QString &key) |
Clears session Overrides for the given setting. More... | |
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) |
bool | GetBoolSetting (const QString &key, bool defaultval) |
int | GetNumSetting (const QString &key, int defaultval) |
double | GetFloatSetting (const QString &key, double defaultval) |
QString | GetSetting (const QString &key) |
bool | GetBoolSetting (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 &refresh_rate, int index=-1) |
void | GetResolutionSetting (const QString &t, int &w, int &h, int i=-1) |
void | WriteDelayedSettings (void) |
void | SetHaveDBConnection (bool connected) |
Set a flag indicating we have successfully connected to the database. More... | |
void | SetHaveSchema (bool schema) |
Set a flag indicating that we have discovered tables and that this therefore not a new empty database. More... | |
bool | HaveSchema (void) const |
Get a flag indicating that we have discovered tables and that this therefore not a new empty database. More... | |
bool | HaveValidDatabase (void) const |
Returns true if we have successfully connected to the database and that database has tables. More... | |
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 |
|
protected |
Definition at line 105 of file mythdb.cpp.
|
protected |
Definition at line 110 of file mythdb.cpp.
MDBManager * MythDB::GetDBManager | ( | void | ) |
Definition at line 115 of file mythdb.cpp.
Referenced by MSqlQuery::DDCon(), MSqlQuery::InitCon(), MSqlQuery::SchedCon(), MSqlQuery::testDBConnection(), and MSqlQuery::~MSqlQuery().
|
static |
Definition at line 163 of file mythdb.cpp.
Referenced by MSqlQuery::exec().
|
static |
Definition at line 179 of file mythdb.cpp.
Referenced by SingleValueImp::add(), MultiValueImp::add(), add_genres(), ChannelGroup::AddChannel(), CardUtil::AddChildInput(), MythSessionManager::AddDigestUser(), MusicFileScanner::AddFileToDB(), AddFileType(), RecordingInfo::AddHistory(), ProfileGroup::addMissingDynamicProfiles(), Scheduler::AddNewRecords(), Scheduler::AddNotListed(), Myth::AddStorageGroupDir(), AllStream::addStream(), ChannelScanSM::AddToList(), LiveTVChain::AppendNewProgram(), ChannelRecPriority::applyChannelRecPriorityChange(), RecordingInfo::ApplyRecordPlayGroupChange(), RecordingInfo::ApplyRecordRecGroupChange(), RecordingInfo::ApplyRecordRecID(), RecordingInfo::ApplyRecordRecTitleChange(), RecordingInfo::ApplyStorageGroupChange(), RecordingInfo::ApplyTranscoderProfileChange(), RecordingInfo::ApplyTranscoderProfileChangeById(), MainServer::BackendQueryDiskSpace(), DBUtil::BackupDB(), Scheduler::BuildNewRecordsQueries(), change_program(), MythSessionManager::ChangeDigestUserPassword(), JobQueue::ChangeJobArgs(), JobQueue::ChangeJobCmds(), JobQueue::ChangeJobComment(), JobQueue::ChangeJobFlags(), JobQueue::ChangeJobHost(), JobQueue::ChangeJobStatus(), chanid_available(), ChannelScanSM::ChannelScanSM(), StorageGroup::CheckAllStorageGroupDirs(), ImportIconsWizard::checkAndDownload(), ChannelBase::CheckChannel(), TVRec::CheckChannelPrefix(), checkChannelPresets(), checkHandlers(), checkImageStoragePaths(), ProgramInfo::CheckProgramIDAuthorities(), checkStorageGroup(), checkStoragePaths(), DBUtil::CheckTables(), ImportMusicDialog::chooseBackend(), Ripper::chooseBackend(), MusicFileScanner::cleanDB(), CleanupTask::CleanupInUsePrograms(), CleanupMyOldInUsePrograms(), JobQueue::CleanupOldJobsInQueue(), CleanupTask::CleanupOldRecordings(), CleanupTask::CleanupOrphanedLiveTV(), CleanupTask::CleanupProgramListings(), CleanupTask::CleanupRecordedTables(), clearAllKeys(), GameHandler::clearAllMetadata(), clearArchiveTable(), EITCache::ClearChannelLocks(), ImageDb< ImageAdapterLocal >::ClearDb(), ClearEIT(), ProgramInfo::ClearMarkupMap(), ProgramInfo::ClearPositionMap(), clearRSSArticles(), clearTreeItems(), clone_capturecard(), KeyBindings::CommitAction(), KeyBindings::CommitJumppoint(), CompleteJob(), DBUtil::CountClients(), DataDirectProcessor::CreateATempTable(), DiSEqCDevDevice::CreateById(), CardUtil::CreateCardInput(), ChannelUtil::CreateChannel(), Scheduler::CreateConflictLists(), MusicMetadata::createFromFilename(), CardUtil::CreateInputGroup(), CardInput::CreateNewInputGroupSlot(), PlayGroupEditor::CreateNewPlayBackGroupSlot(), VideoDisplayProfile::CreateProfile(), VideoDisplayProfile::CreateProfileGroup(), SourceUtil::CreateSource(), ImageDbLocal::CreateTable(), Scheduler::CreateTempTables(), PlaybackBox::createTranscodingProfilesMenu(), ChannelEditor::customEvent(), StorageGroupEditor::customEvent(), StatusBox::customEvent(), DataDirectProcessor::DataDirectProgramUpdate(), ProgramRecPriority::deactivate(), commDetector2::debugDirectory(), RecordingRule::Delete(), TransportListEditor::Delete(), delete_in_db(), delete_program(), CaptureCardEditor::DeleteAllCaptureCardsOnHost(), JobQueue::DeleteAllJobs(), SourceUtil::DeleteAllSources(), SmartPlaylistEditor::deleteCategory(), ChannelGroup::DeleteChannel(), ChannelUtil::DeleteChannel(), CustomPriority::deleteClicked(), PhrasePopup::deleteClicked(), PowerSearchPopup::deleteClicked(), VideoDisplayProfile::DeleteDB(), GamePlayerSetting::deleteEntry(), PlayGroupConfig::deleteEntry(), ChannelGroupSetting::deleteEntry(), Ripper::deleteExistingTrack(), RomInfo::DeleteFromDatabase(), VideoMetadataImp::DeleteFromDatabase(), RecordingInfo::DeleteHistory(), PrevRecordedList::DeleteOldEpisode(), ProgLister::DeleteOldEpisode(), PrevRecordedList::DeleteOldSeries(), ProgLister::DeleteOldSeries(), PlaylistContainer::deletePlaylist(), VideoDisplayProfile::DeleteProfileGroup(), VideoDisplayProfile::DeleteProfiles(), LiveTVChain::DeleteProgram(), MainServer::DeleteRecordedFiles(), CustomEdit::deleteRule(), ScanInfo::DeleteScan(), SmartPlaylistEditor::deleteSmartPlaylist(), SourceUtil::DeleteSource(), Scheduler::DeleteTempTables(), ChannelImporter::DeleteUnusedTransports(), LiveTVChain::DestroyChain(), MythSessionManager::DestroyUserSession(), MainServer::DoDeleteInDB(), StorageGroupEditor::DoDeleteSlot(), StorageGroupDirSetting::DoDeleteSlot(), LogCleanerTask::DoRun(), GameScanner::doScanAll(), StatusBox::doScheduleStatus(), StatusBox::doTunerStatus(), SearchStream::doUpdateStreams(), doUpgradeMusicDatabaseSchema(), doUpgradeTVDatabaseSchema(), doUpgradeVideoDatabaseSchema(), ImageDbLocal::DropTable(), MusicMetadata::dumpToDatabase(), AlbumArtImages::dumpToDatabase(), DDStructureParser::endElement(), DiSEqCDevTree::Exists(), AutoExpire::ExpireEpisodesOverMax(), AutoExpire::ExpireRecordings(), NativeArchive::exportVideo(), RomInfo::fillData(), DTVMultiplex::FillFromDB(), ScanDTVTransport::FillFromDB(), ChannelRecPriority::FillList(), ProgramRecPriority::FillList(), Scheduler::FillRecordingDir(), Scheduler::FillRecordListFromDB(), Source::fillSelections(), ProfileGroup::fillSelections(), CaptureCard::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(), LiveTVChain::FinishedRecording(), RecordingInfo::FinishedRecording(), FlagCommercials(), RecordingInfo::ForgetHistory(), FromProgramQuery(), get_cardtype(), get_chan_id_from_db_atsc(), get_chan_id_from_db_dtv(), get_chan_id_from_db_dvb(), get_dtv_multiplex(), get_inputtypes(), get_max_chanid(), get_on_input(), get_use_eit(), get_valid_recorder_list(), MusicMetadata::getAlbumId(), CardUtil::GetAllInputInfo(), RomInfo::GetAllRomInfo(), Scheduler::GetAllScheduled(), MusicMetadata::getArtistId(), GetArtwork(), ChannelUtil::GetATSCChannel(), ChannelUtil::GetBetterMplexID(), ChannelUtil::GetCachedPids(), Capture::GetCaptureCard(), Capture::GetCaptureCardList(), GetCategoryList(), ChannelBase::GetChanID(), DVBChannel::GetChanID(), ChannelUtil::GetChanID(), ChannelUtil::GetChanIDs(), ChannelUtil::GetChannelData(), ChannelGroup::GetChannelGroupId(), ChannelGroup::GetChannelGroupName(), ChannelGroup::GetChannelGroups(), TVRec::GetChannelInfo(), ChannelUtil::GetChannelsInternal(), ChannelUtil::GetChannelStringField(), ChannelUtil::GetChannelValueStr(), CardUtil::GetChildInputCount(), CardUtil::GetChildInputIDs(), ChannelUtil::GetConflicting(), CardUtil::GetConflictingInputs(), PlayGroup::GetCount(), ChannelImporter::GetDBTransports(), ChannelUtil::GetDefaultAuthority(), RecordingRule::GetDefaultFilter(), ImageDb< ImageAdapterLocal >::GetDescendantCount(), ImageDb< ImageAdapterLocal >::GetDescendants(), CardUtil::GetDeviceInputGroup(), TVRec::GetDevices(), ImageDb< ImageAdapterLocal >::GetDirectory(), MusicFileScanner::GetDirectoryId(), MusicMetadata::getDirectoryId(), CardUtil::GetDisplayName(), NativeArchive::getFieldList(), V4LChannel::GetFormatForChannel(), MusicMetadata::getGenreId(), CardUtil::GetGroupInputIDs(), Myth::GetHosts(), ChannelUtil::GetIcon(), PlayGroup::GetInitialName(), CardUtil::GetInputGroups(), CardUtil::GetInputIDs(), CardUtil::GetInputInfo(), CardUtil::GetInputTypeNames(), CardUtil::GetInputTypes(), ChannelUtil::GetInputTypes(), ChannelUtil::GetIPTVTuningData(), 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(), PlayGroup::GetNames(), TVRec::GetNextProgram(), DBEvent::GetOverlappingPrograms(), MythSessionManager::GetPasswordDigest(), DBPerson::GetPersonDB(), VideoDisplayProfile::GetProfileGroupID(), VideoDisplayProfile::GetProfiles(), Dvr::GetProgramCategories(), CardUtil::GetQuickTuning(), ProgDetails::getRatings(), RecordingInfo::GetRecgroupID(), Dvr::GetRecGroupList(), RecordingInfo::GetRecgroupString(), RomInfo::GetRomInfoById(), ThumbItem::GetRotationAngle(), getRSSArticles(), ChannelUtil::GetServiceVersion(), PlayGroup::GetSetting(), Myth::GetSetting(), Myth::GetSettingList(), GetSettingsMap(), ProgFinder::getShowNames(), RemoteEncoder::GetSignalLockTimeout(), PlaylistEditorView::getSmartPlaylistCategories(), SmartPlaylistEditor::getSmartPlaylistCategories(), PlaylistEditorView::getSmartPlaylists(), PlaylistEditorView::getSmartPlaylistTracks(), ChannelUtil::GetSourceID(), CardUtil::GetSourceID(), ChannelUtil::GetSourceIDForChannel(), SourceUtil::GetSourceName(), TVRec::GetStartChannel(), CardUtil::GetStartingChannel(), Myth::GetStorageGroupDirs(), DBUtil::GetTables(), RecordingRule::GetTemplateNames(), CardUtil::GetTimeouts(), Dvr::GetTitleInfoList(), Dvr::GetTitleList(), getTreeArticles(), ChannelUtil::GetTuningParams(), Content::GetVideo(), Content::GetVideoArtwork(), CardUtil::GetVideoDevices(), Channel::GetVideoMultiplex(), Channel::GetVideoMultiplexList(), Channel::GetVideoSource(), Channel::GetVideoSourceList(), Channel::GetXMLTVIdList(), FillData::GrabData(), ChannelData::handleChannels(), MainServer::HandleGetPendingRecordings(), ProgramData::HandlePrograms(), MainServer::HandleQueryFindFile(), Scheduler::HandleReschedule(), MainServer::HandleScanMusic(), SourceUtil::HasDigitalChannel(), NativeArchive::importRecording(), NativeArchive::importVideo(), ChannelBase::InitializeInput(), Scheduler::InitInputInfoMap(), insert_dtv_multiplex(), DBPerson::InsertCreditsDB(), DBEvent::InsertDB(), ProgInfo::InsertDB(), ImageDb< ImageAdapterLocal >::InsertDbImage(), insertGrabberInDB(), InsertInDB(), insertInDB(), DBPerson::InsertPersonDB(), RecordingInfo::InsertProgram(), insertRSSArticleInDB(), insertTreeArticleInDB(), CustomPriority::installClicked(), is_dishnet_eit(), SourceUtil::IsAnySourceScanable(), SourceUtil::IsEncoder(), CardUtil::IsInputTypePresent(), isNewTune(), isTreeInUse(), CardUtil::IsTunerShared(), MythSessionManager::IsValidUser(), lastUpdate(), CardUtil::LinkInputGroup(), StorageGroupEditor::Load(), RecordingFile::Load(), StorageGroupListEditor::Load(), ChannelInfo::Load(), PlaylistContainer::load(), DiSEqCDevSettings::Load(), RecordingRule::Load(), InputSelector::Load(), GamePlayersList::Load(), SimpleDBStorage::Load(), TransportListEditor::Load(), DiSEqCDevTree::Load(), TransFreqTableSelector::Load(), DiSEqCDevSwitch::Load(), ChannelGroupSetting::Load(), ChannelGroupsSetting::Load(), DiSEqCDevRotor::Load(), DiSEqCDevSCR::Load(), DiSEqCDevLNB::Load(), CardInputEditor::Load(), InputGroup::Load(), load_markup_datum(), load_settings(), VideoMetadataListManager::loadAllFromDatabase(), RecordingRule::LoadBySearch(), EITCache::LoadChannel(), MHIContext::LoadChannelCache(), ChannelUtil::LoadChannels(), MythBurn::loadConfiguration(), KeyBindings::LoadContexts(), CustomPriority::loadData(), CustomEdit::loadData(), PrevRecordedList::LoadDates(), VideoDisplayProfile::LoadDB(), SmartPlaylistEditor::loadFromDatabase(), LoadFromOldRecorded(), LoadFromRecorded(), ChannelInfo::LoadGroupIds(), ChannelInfo::LoadInputIds(), KeyBindings::LoadJumppoints(), ProgDetails::loadPage(), Playlist::loadPlaylistByID(), ProgramInfo::LoadProgramFromRecorded(), LoadScan(), LoadScanList(), MythSessionManager::LoadSessions(), MythNews::loadSites(), AllStream::loadStreams(), RecordingRule::LoadTemplate(), PrevRecordedList::LoadTitles(), FileServerHandler::LocalFilePath(), MainServer::LocalFilePath(), lock_channel(), lockShutdown(), DatabaseLogger::logqmsg(), SmartPlaylistEditor::lookupCategoryID(), main(), ProgramInfo::MarkAsInUse(), ScanInfo::MarkProcessed(), markTreeUpdated(), markUpdated(), needsMFDBReminder(), SmartPlaylistEditor::newCategory(), num_inputs(), Scheduler::OldRecordedFixups(), performActualUpdate(), MusicMetadata::persist(), ProgDetails::PowerPriorities(), WeatherSource::ProbeScript(), WeatherSource::processExit(), program_exists(), purgeGameDB(), ProgramInfo::QueryAverageAspectRatio(), ProgramInfo::QueryBasename(), ProgramInfo::QueryBookmarkTimeStamp(), DBUtil::QueryDBMSVersion(), FileServerHandler::QueryFileSystems(), ProgramInfo::QueryKeyFrameInfo(), ProgramInfo::QueryMarkup(), ProgramInfo::QueryMarkupMap(), ProgramInfo::QueryMplexID(), ProgramInfo::QueryPositionMap(), ProgramInfo::QueryTuningInfo(), JobQueue::QueueJob(), RecordingInfo::ReactivateRecording(), ImageDb< ImageAdapterLocal >::ReadAllImages(), ImageDb< ImageAdapterLocal >::ReadImages(), RecordingInfo::RecordingInfo(), MythMainWindow::RegisterJump(), MythMainWindow::RegisterKey(), ThumbItem::Remove(), MultiValueImp::remove(), MythSessionManager::RemoveDigestUser(), MusicFileScanner::RemoveFileFromDB(), RemoveFromDB(), removeFromDB(), ImageDb< ImageAdapterLocal >::RemoveFromDB(), removeGrabberFromDB(), Myth::RemoveStorageGroupDir(), AllStream::removeStream(), SmartPlaylistEditor::renameCategory(), GalleryUtil::RenameDirectory(), DBUtil::RepairTables(), Scheduler::ResetDuplicates(), AllMusic::resync(), romInDB(), JobQueue::SafeDeleteJob(), ChannelID::Save(), RecordingFile::Save(), PlayGroupConfig::Save(), RecordingRule::Save(), SimpleDBStorage::Save(), TransFreqTableSelector::Save(), AutoIncrementSetting::Save(), ChannelGroupSetting::Save(), XMLTVGrabber::Save(), ProgramInfo::SaveAspect(), ProgramInfo::SaveAutoExpire(), ProgramInfo::SaveBasename(), ProgramInfo::SaveBDBookmark(), ProgramInfo::SaveBookmark(), ChannelUtil::SaveCachedPids(), SmartPlaylistEditor::saveClicked(), ProgramInfo::SaveCommFlagged(), ExportNative::saveConfiguration(), MythBurn::saveConfiguration(), ProgramInfo::SaveCutList(), ScreenSetup::saveData(), VideoDisplayProfile::SaveDB(), ProgramInfo::SaveDeletePendingFlag(), ProgramInfo::SaveDVDBookmark(), ProgramInfo::SaveEditing(), ProgramInfo::SaveFilesize(), ProgramInfo::SaveFrameRate(), MusicMetadata::saveHostname(), ProgramInfo::SaveMarkup(), ProgramInfo::SaveMarkupMap(), Playlist::savePlaylist(), ProgramInfo::SavePositionMap(), ProgramInfo::SavePositionMapDelta(), ProgramInfo::SavePreserve(), ProgramInfo::SaveResolution(), SaveScan(), ScanDTVTransport::SaveScan(), ChannelInsertInfo::SaveScan(), ProgramInfo::SaveSeasonEpisode(), SaveSettingOnHost(), SmartPLCriteriaRow::saveToDatabase(), RomInfo::SaveToDatabase(), VideoMetadataImp::saveToDatabase(), ProgramInfo::SaveTotalDuration(), ProgramInfo::SaveTotalFrames(), ProgramInfo::SaveTranscodeStatus(), ProgramInfo::SaveVideoProperties(), ProgramInfo::SaveWatched(), MusicFileScanner::ScanArtwork(), MusicFileScanner::ScanMusic(), ProgramRecPriority::scheduleChanged(), set_lineup_type(), set_on_input(), SetArtwork(), TVRec::SetChannelInfo(), ImageDb< ImageAdapterLocal >::SetCover(), RecordingInfo::SetDupHistory(), RomInfo::setFavorite(), setGlobalSetting(), ImageDb< ImageAdapterLocal >::SetHidden(), ImageDb< ImageAdapterLocal >::SetOrientation(), PlaybackBox::SetRecGroupPassword(), ThumbItem::SetRotationAngle(), ChannelUtil::SetServiceVersion(), CardUtil::SetStartChannel(), Weather::SetupScreens(), SourceManager::setupSources(), setupTVs(), ChannelUtil::SetVisible(), TVRec::ShouldSwitchToAnotherInput(), GeneralSettings::slotDoResetDB(), MythNews::slotNewsRetrieved(), ChannelOptionsCommon::sourceChanged(), HouseKeeper::Start(), EITScanner::StartActiveScan(), RecordingInfo::StartedRecording(), DiSEqCDevSettings::Store(), DiSEqCDevTree::Store(), DiSEqCDevSwitch::Store(), DiSEqCDevRotor::Store(), DiSEqCDevSCR::Store(), DiSEqCDevLNB::Store(), ChannelBase::StoreInputChannels(), CustomEdit::storeRule(), CustomPriority::testSchedule(), ChannelGroup::ToggleChannel(), CardUtil::UnlinkInputGroup(), unlock_channel(), DBUtil::UnlockSchema(), unlockShutdown(), update_channel_basic(), SearchStream::updateBroadcasters(), ChannelUtil::UpdateChannel(), DataDirectProcessor::UpdateChannelsSafe(), DataDirectProcessor::UpdateChannelsUnsafe(), SearchStream::updateCountries(), DBEvent::UpdateDB(), ImageDb< ImageAdapterLocal >::UpdateDbImage(), UpdateDBVersionNumber(), updateDiskCount(), updateDisplayRom(), Scheduler::UpdateDuplicates(), GameHandler::UpdateGameDB(), updateGameName(), SearchStream::updateGenres(), VideoMetadata::UpdateHashedDBRecord(), UpdateHashes(), ChannelUtil::UpdateInsertInfoFromDB(), ChannelUtil::UpdateIPTVTuningData(), ProgLister::UpdateKeywordInDB(), SearchStream::updateLanguages(), ProgramInfo::UpdateLastDelete(), HouseKeeperTask::UpdateLastRun(), DataDirectProcessor::UpdateListings(), Scheduler::UpdateManuals(), SmartPlaylistEditor::updateMatches(), Scheduler::UpdateMatches(), Scheduler::UpdateNextRecord(), DataDirectProcessor::UpdateProgramViewTable(), RecordingInfo::UpdateRecordingEnd(), SourceUtil::UpdateSource(), DataDirectProcessor::UpdateStationViewTable(), AllStream::updateStream(), MusicMetadata::updateStreamList(), SearchView::updateTracksList(), UpgradeGameDatabaseSchema(), RecordingRule::UseTempTable(), Scheduler::VerifyCards(), GameHandler::VerifyGameDB(), and EITCache::WriteToDB().
|
static |
Definition at line 184 of file mythdb.cpp.
Referenced by MSqlDatabase::MSqlDatabase(), MSqlDatabase::OpenDatabase(), performActualUpdate(), performUpdateSeries(), MSqlQuery::prepare(), CustomPriority::testSchedule(), and UpdateDBVersionNumber().
DatabaseParams MythDB::GetDatabaseParams | ( | void | ) | const |
Definition at line 199 of file mythdb.cpp.
Referenced by MythCoreContext::GetDatabaseParams(), MSqlDatabase::OpenDatabase(), and SchemaUpgradeWizard::PromptForUpgrade().
void MythDB::SetDatabaseParams | ( | const DatabaseParams & | params | ) |
Definition at line 204 of file mythdb.cpp.
void MythDB::SetLocalHostname | ( | const QString & | name | ) |
Definition at line 209 of file mythdb.cpp.
QString MythDB::GetHostName | ( | void | ) | const |
Definition at line 218 of file mythdb.cpp.
void MythDB::IgnoreDatabase | ( | bool | bIgnore | ) |
Definition at line 223 of file mythdb.cpp.
bool MythDB::IsDatabaseIgnored | ( | void | ) | const |
Definition at line 228 of file mythdb.cpp.
void MythDB::SetSuppressDBMessages | ( | bool | bUpgraded | ) |
Definition at line 233 of file mythdb.cpp.
bool MythDB::SuppressDBMessages | ( | void | ) | const |
Definition at line 238 of file mythdb.cpp.
void MythDB::ClearSettingsCache | ( | const QString & | key = QString() | ) |
Definition at line 853 of file mythdb.cpp.
Definition at line 887 of file mythdb.cpp.
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 786 of file mythdb.cpp.
Referenced by MythUIHelper::FindThemeDir(), and MythUIHelperPrivate::StoreGUIsettings().
void MythDB::ClearOverrideSettingForSession | ( | const QString & | key | ) |
Clears session Overrides for the given setting.
Definition at line 808 of file mythdb.cpp.
void MythDB::SaveSetting | ( | const QString & | key, |
int | newValue | ||
) |
Definition at line 243 of file mythdb.cpp.
Referenced by MythThemedMenu::checkPinCode(), MythThemedMenu::customEvent(), MythUIHelper::FindMenuThemeDir(), MythLocale::SaveLocaleDefaults(), and DBConfiguration::SetValue().
void MythDB::SaveSetting | ( | const QString & | key, |
const QString & | newValue | ||
) |
Definition at line 249 of file mythdb.cpp.
bool MythDB::SaveSettingOnHost | ( | const QString & | key, |
const QString & | newValue, | ||
const QString & | host | ||
) |
Definition at line 254 of file mythdb.cpp.
Referenced by MythLocale::SaveLocaleDefaults().
bool MythDB::ClearSetting | ( | const QString & | key | ) |
Definition at line 352 of file mythdb.cpp.
Referenced by DBConfiguration::ClearValue().
bool MythDB::ClearSettingOnHost | ( | const QString & | key, |
const QString & | host | ||
) |
Definition at line 357 of file mythdb.cpp.
bool MythDB::GetSettings | ( | QMap< QString, QString > & | _key_value_pairs | ) |
Definition at line 434 of file mythdb.cpp.
QString MythDB::GetSetting | ( | const QString & | _key, |
const QString & | defaultval | ||
) |
Definition at line 362 of file mythdb.cpp.
Referenced by UPnpDeviceDesc::_InternalLoad(), MythThemedMenu::checkPinCode(), MythThemedMenu::customEvent(), MythUIHelper::GetThemeCacheDir(), DBConfiguration::GetValue(), MythLocale::Init(), LCD::init(), MythUIHelper::LoadQtConfig(), MythUIClock::MythUIClock(), MythLocale::SaveLocaleDefaults(), and LCD::SetupLCD().
Definition at line 555 of file mythdb.cpp.
Referenced by MythUIHelperPrivate::GetScreenBounds(), and LCD::SetupLCD().
int MythDB::GetNumSetting | ( | const QString & | key, |
int | defaultval | ||
) |
Definition at line 563 of file mythdb.cpp.
Referenced by MythUIHelperPrivate::GetScreenBounds(), DBConfiguration::GetValue(), MythThemedMenu::parseThemeButton(), MythUIHelper::PruneCacheDir(), LCD::SetupLCD(), MythThemedMenu::ShowMenu(), and MythUIHelperPrivate::StoreGUIsettings().
double MythDB::GetFloatSetting | ( | const QString & | key, |
double | defaultval | ||
) |
Definition at line 571 of file mythdb.cpp.
QString MythDB::GetSetting | ( | const QString & | key | ) |
Definition at line 579 of file mythdb.cpp.
bool MythDB::GetBoolSetting | ( | const QString & | key | ) |
Definition at line 586 of file mythdb.cpp.
int MythDB::GetNumSetting | ( | const QString & | key | ) |
Definition at line 595 of file mythdb.cpp.
double MythDB::GetFloatSetting | ( | const QString & | key | ) |
Definition at line 602 of file mythdb.cpp.
QString MythDB::GetSettingOnHost | ( | const QString & | _key, |
const QString & | _host, | ||
const QString & | defaultval | ||
) |
Definition at line 609 of file mythdb.cpp.
int MythDB::GetNumSettingOnHost | ( | const QString & | key, |
const QString & | host, | ||
int | defaultval | ||
) |
Definition at line 675 of file mythdb.cpp.
Referenced by ScreenSaverX11Private::ResetTimer().
double MythDB::GetFloatSettingOnHost | ( | const QString & | key, |
const QString & | host, | ||
double | defaultval | ||
) |
Definition at line 684 of file mythdb.cpp.
QString MythDB::GetSettingOnHost | ( | const QString & | key, |
const QString & | host | ||
) |
Definition at line 693 of file mythdb.cpp.
int MythDB::GetNumSettingOnHost | ( | const QString & | key, |
const QString & | host | ||
) |
Definition at line 700 of file mythdb.cpp.
double MythDB::GetFloatSettingOnHost | ( | const QString & | key, |
const QString & | host | ||
) |
Definition at line 707 of file mythdb.cpp.
void MythDB::GetResolutionSetting | ( | const QString & | type, |
int & | width, | ||
int & | height, | ||
double & | forced_aspect, | ||
double & | refresh_rate, | ||
int | index = -1 |
||
) |
Referenced by DisplayRes::Initialize(), and MythUIHelperPrivate::StoreGUIsettings().
void MythDB::GetResolutionSetting | ( | const QString & | t, |
int & | w, | ||
int & | h, | ||
int | i = -1 |
||
) |
void MythDB::WriteDelayedSettings | ( | void | ) |
Definition at line 898 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 916 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 925 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 937 of file mythdb.cpp.
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 949 of file mythdb.cpp.
|
static |
Definition at line 25 of file mythdb.cpp.
Referenced by GetMythDB(), HostDBStorage::GetSetClause(), HostDBStorage::GetWhereClause(), TV::InitFromDB(), SchemaUpgradeWizard::PromptForUpgrade(), HostDBStorage::Save(), and MythLocale::SaveLocaleDefaults().
|
static |
Definition at line 38 of file mythdb.cpp.
Referenced by DestroyMythDB().
|
static |
Definition at line 120 of file mythdb.cpp.
|
private |