MythContext Class Reference

#include <mythcontext.h>

Inheritance diagram for MythContext:

MythObservable MythSocketCBs

List of all members.


Detailed Description

This class contains the runtime context for MythTV.

This class can be used to query for and set global and host settings, and is used to communicate between the frontends and backends. It also contains helper functions for theming and for getting system defaults, parsing the command line, etc. It also contains support for database error printing, and database message logging.

Definition at line 140 of file mythcontext.h.


Public Member Functions

 MythContext (const QString &binversion)
virtual ~MythContext ()
bool Init (const bool gui=true, UPnp *UPnPclient=NULL, const bool promptForBackend=false, const bool bypassAutoDiscovery=false)
QString GetMasterHostPrefix (void)
QString GetHostName (void)
void ClearSettingsCache (QString myKey="", QString newVal="")
void ActivateSettingsCache (bool activate=true)
void OverrideSettingForSession (const QString &key, const QString &newValue)
 Overrides the given setting for the execution time of the process.
bool ConnectToMasterServer (bool blockingClient=true)
MythSocketConnectServer (MythSocket *eventSocket, const QString &hostname, int port, bool blockingClient=false)
bool IsConnectedToMaster (void)
void SetBackend (bool backend)
bool IsBackend (void)
 is this process a backend process
bool IsFrontendOnly (void)
 is there a frontend, but no backend, running on this host
bool IsMasterHost (void)
 is this the same host as the master
bool IsMasterBackend (void)
 is this the actual MBE process
bool BackendIsRunning (void)
 a backend process is running on this host
void BlockShutdown (void)
void AllowShutdown (void)
QString GetInstallPrefix (void)
QString GetShareDir (void)
QString GetLibraryDir (void)
QString GetFilePrefix (void)
void LoadQtConfig (void)
void UpdateImageCache (void)
void RefreshBackendConfig (void)
void GetScreenSettings (float &wmult, float &hmult)
void GetScreenSettings (int &width, float &wmult, int &height, float &hmult)
void GetScreenSettings (int &xbase, int &width, float &wmult, int &ybase, int &height, float &hmult)
void GetScreenBounds (int &xbase, int &ybase, int &width, int &height)
bool ParseGeometryOverride (const QString geometry)
 Parse an X11 style command line geometry string.
QString FindThemeDir (const QString &themename)
QString FindMenuThemeDir (const QString &menuname)
QString GetThemeDir (void)
QValueList< QString > GetThemeSearchPath (void)
QString GetMenuThemeDir (void)
QString GetThemesParentDir (void)
QString GetPluginsDir (void)
QString GetPluginsNameFilter (void)
QString FindPlugin (const QString &plugname)
QString GetTranslationsDir (void)
QString GetTranslationsNameFilter (void)
QString FindTranslation (const QString &translation)
QString GetFontsDir (void)
QString GetFontsNameFilter (void)
QString FindFont (const QString &fontname)
QString GetFiltersDir (void)
MDBManagerGetDBManager (void)
DatabaseParams GetDatabaseParams (void)
bool SaveDatabaseParams (const DatabaseParams &params)
void LogEntry (const QString &module, int priority, const QString &message, const QString &details)
Settingsqtconfig (void)
void SaveSetting (const QString &key, int newValue)
void SaveSetting (const QString &key, const QString &newValue)
QString GetSetting (const QString &key, const QString &defaultval="")
bool SaveSettingOnHost (const QString &key, const QString &newValue, const QString &host)
int GetNumSetting (const QString &key, int defaultval=0)
double GetFloatSetting (const QString &key, double defaultval=0.0)
void GetResolutionSetting (const QString &type, int &width, int &height, double &forced_aspect, short &refreshrate, int index=-1)
void GetResolutionSetting (const QString &type, int &width, int &height, int index=-1)
QString GetSettingOnHost (const QString &key, const QString &host, const QString &defaultval="")
int GetNumSettingOnHost (const QString &key, const QString &host, int defaultval=0)
double GetFloatSettingOnHost (const QString &key, const QString &host, double defaultval=0.0)
void SetSetting (const QString &key, const QString &newValue)
QFont GetBigFont ()
QFont GetMediumFont ()
QFont GetSmallFont ()
QString GetLanguage (void)
 Returns two character ISO-639 language descriptor for UI language.
QString GetLanguageAndVariant (void)
 Returns the user-set language and variant.
void ThemeWidget (QWidget *widget)
bool FindThemeFile (QString &filename)
QPixmap * LoadScalePixmap (QString filename, bool fromcache=true)
QImage * LoadScaleImage (QString filename, bool fromcache=true)
bool SendReceiveStringList (QStringList &strlist, bool quickTimeout=false, bool block=true)
QImage * CacheRemotePixmap (const QString &url, bool reCache=false)
void SetMainWindow (MythMainWindow *mainwin)
MythMainWindowGetMainWindow (void)
int PromptForSchemaUpgrade (const QString &dbver, const QString &current, const QString &backupResult)
 Try to prevent silent, automatic database upgrades.
bool TestPopupVersion (const QString &name, const QString &libversion, const QString &pluginversion)
void SetDisableLibraryPopup (bool check)
void SetPluginManager (MythPluginManager *pmanager)
MythPluginManagergetPluginManager (void)
bool CheckProtoVersion (MythSocket *socket)
void DisableScreensaver (void)
void RestoreScreensaver (void)
void ResetScreensaver (void)
void DoDisableScreensaver (void)
void DoRestoreScreensaver (void)
void DoResetScreensaver (void)
bool GetScreensaverEnabled (void)
bool GetScreenIsAsleep (void)
void addPrivRequest (MythPrivRequest::Type t, void *data)
void waitPrivRequest () const
MythPrivRequest popPrivRequest ()
void addCurrentLocation (QString location)
QString removeCurrentLocation (void)
QString getCurrentLocation (void)
void dispatch (MythEvent &event)
 Dispatch an event to all listeners.
void dispatchNow (MythEvent &event)
 Dispatch an event to all listeners.
void sendPlaybackStart (void)
void sendPlaybackEnd (void)

Static Public Member Functions

static QString GetConfDir (void)
static void DBError (const QString &where, const QSqlQuery &query)
static QString DBErrorMessage (const QSqlError &err)
static void SetX11Display (const QString &display)
 This needs to be set before MythContext is initialized so that the MythContext::Init() can detect Xinerama setups.
static QString GetX11Display (void)

Static Public Attributes

static QMutex verbose_mutex
static QString x11_display = QString::null

Private Member Functions

void SetPalette (QWidget *widget)
void InitializeScreenSettings (void)
void ClearOldImageCache (void)
void CacheThemeImages (void)
void CacheThemeImagesDirectory (const QString &dirname, const QString &subdirname="")
void RemoveCacheDir (const QString &dirname)
void connected (MythSocket *sock)
void connectionClosed (MythSocket *sock)
void readyRead (MythSocket *sock)
void connectionFailed (MythSocket *sock)

Private Attributes

MythContextPrivated
QString app_binary_version
QMutex locationLock
QValueList< QString > currentLocation

Constructor & Destructor Documentation

MythContext::MythContext ( const QString &  binversion  ) 

Definition at line 1500 of file mythcontext.cpp.

MythContext::~MythContext (  )  [virtual]

Definition at line 1579 of file mythcontext.cpp.


Member Function Documentation

bool MythContext::Init ( const bool  gui = true,
UPnp UPnPclient = NULL,
const bool  promptForBackend = false,
const bool  bypassAutoDiscovery = false 
)

Definition at line 1517 of file mythcontext.cpp.

Referenced by main().

QString MythContext::GetMasterHostPrefix ( void   ) 

QString MythContext::GetHostName ( void   ) 

Definition at line 1895 of file mythcontext.cpp.

Referenced by BackendQueryDiskSpace(), BackendSettings::BackendSettings(), PlaybackProfileConfigs::btnPress(), StorageGroup::CheckAllStorageGroupDirs(), ChannelBase::CheckChannel(), checkStoragePaths(), CleanupMyOldInUsePrograms(), HouseKeeper::CleanupMyOldRecordings(), MythControls::Create(), MusicPlayer::customEvent(), StorageGroupListEditor::doDelete(), StorageGroupEditor::doDelete(), MainServer::DoHandleDeleteRecording(), MainServer::DoHandleStopRecording(), CaptureCardEditor::edit(), AutoExpire::ExpireRecordings(), CaptureCard::fillSelections(), HttpStatus::FillStatusXML(), SourceManager::findScripts(), SourceManager::findScriptsDB(), FlagCommercials(), ProgramList::FromRecorded(), get_cardtype(), DBUtil::GetBackupDirectory(), CardUtil::GetCardIDs(), getDBParamters(), MythMainWindow::GetKey(), Scheduler::GetNextLiveTVDir(), ProgramInfo::GetPlaybackURL(), MythXML::GetPreviewImage(), TVRec::GetProgramRingBufferForLiveTV(), MythXML::GetRecording(), LogViewer::getSetting(), CardUtil::GetVideoDevices(), MainServer::HandleCheckRecordingActive(), MainServer::HandleFillProgramInfo(), MainServer::HandleGenPreviewPixmap(), MainServer::HandleGetFreeRecorder(), MainServer::HandleIsActiveBackendQuery(), MainServer::HandleLockTuner(), MainServer::HandlePixmapLastModified(), MainServer::HandleQueryCheckFile(), MainServer::HandleQueryRecordings(), HostnameSetting::HostnameSetting(), NativeArchive::importRecording(), init_jobs(), VideoOutputXv::InitDisplayMeasurements(), CardUtil::IsCardTypePresent(), IsFrontendOnly(), JobQueue::JobQueue(), TV::LiveTV(), CardInputEditor::load(), CaptureCardEditor::load(), VideoSourceSelector::load(), StorageGroupListEditor::load(), StorageGroupEditor::load(), InputSelector::load(), RecordingProfile::loadByType(), SourceSetup::loadData(), ScreenSetup::loadData(), CdDecoder::lookupCDDB(), main(), ProgramInfo::MarkAsInUse(), StorageGroupEditor::open(), RemoteEncoder::openControlSocket(), RemoteFile::openSocket(), PlaybackProfileConfig::PlaybackProfileConfig(), PlaybackProfileConfigs::PlaybackProfileConfigs(), PlaybackSock::PlaybackSock(), preMusic(), WeatherSource::probeScript(), MainServer::reconnectTimeout(), JobQueue::RecoverQueue(), MythMainWindow::RegisterJump(), MythMainWindow::RegisterKey(), ScreenSaverX11Private::ResetTimer(), HouseKeeper::RunHouseKeeping(), TV::RunTV(), ScreenSetup::saveData(), SavePending(), sendPlaybackEnd(), sendPlaybackStart(), HostDBStorage::setClause(), Weather::setupScreens(), SourceManager::setupSources(), setupTVs(), ProgramInfo::StartedRecording(), StatusBox::StatusBox(), TV::TogglePIPView(), VideoDisplayProfile::VideoDisplayProfile(), and HostDBStorage::whereClause().

void MythContext::ClearSettingsCache ( QString  myKey = "",
QString  newVal = "" 
)

void MythContext::ActivateSettingsCache ( bool  activate = true  ) 

void MythContext::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 3235 of file mythcontext.cpp.

Referenced by main().

bool MythContext::ConnectToMasterServer ( bool  blockingClient = true  ) 

MythSocket * MythContext::ConnectServer ( MythSocket eventSocket,
const QString &  hostname,
int  port,
bool  blockingClient = false 
)

bool MythContext::IsConnectedToMaster ( void   ) 

void MythContext::SetBackend ( bool  backend  ) 

Definition at line 1788 of file mythcontext.cpp.

Referenced by main().

bool MythContext::IsBackend ( void   ) 

bool MythContext::IsFrontendOnly ( void   ) 

is there a frontend, but no backend, running on this host

Definition at line 1824 of file mythcontext.cpp.

Referenced by WelcomeDialog::customEvent(), handleExit(), MythWelcomeSettings::MythWelcomeSettings(), and WelcomeDialog::shutdownNow().

bool MythContext::IsMasterHost ( void   ) 

is this the same host as the master

Definition at line 1798 of file mythcontext.cpp.

Referenced by IsMasterBackend(), main(), and upnp_rebuild().

bool MythContext::IsMasterBackend ( void   ) 

is this the actual MBE process

Definition at line 1806 of file mythcontext.cpp.

Referenced by ConnectToMasterServer().

bool MythContext::BackendIsRunning ( void   ) 

a backend process is running on this host

Definition at line 1811 of file mythcontext.cpp.

Referenced by main().

void MythContext::BlockShutdown ( void   ) 

Definition at line 1738 of file mythcontext.cpp.

void MythContext::AllowShutdown ( void   ) 

Definition at line 1763 of file mythcontext.cpp.

QString MythContext::GetInstallPrefix ( void   ) 

QString MythContext::GetShareDir ( void   ) 

QString MythContext::GetLibraryDir ( void   ) 

Definition at line 1937 of file mythcontext.cpp.

Referenced by GetFiltersDir(), and GetPluginsDir().

QString MythContext::GetConfDir ( void   )  [static]

QString MythContext::GetFilePrefix ( void   ) 

void MythContext::LoadQtConfig ( void   ) 

Definition at line 1999 of file mythcontext.cpp.

Referenced by main(), reloadTheme(), and MythContextPrivate::TempMainWindow().

void MythContext::UpdateImageCache ( void   ) 

Definition at line 2075 of file mythcontext.cpp.

Referenced by main(), and reloadTheme().

void MythContext::RefreshBackendConfig ( void   ) 

Definition at line 2070 of file mythcontext.cpp.

Referenced by MainServer::HandleBackendRefresh().

void MythContext::GetScreenSettings ( float &  wmult,
float &  hmult 
)

void MythContext::GetScreenSettings ( int &  width,
float &  wmult,
int &  height,
float &  hmult 
)

Definition at line 2300 of file mythcontext.cpp.

void MythContext::GetScreenSettings ( int &  xbase,
int &  width,
float &  wmult,
int &  ybase,
int &  height,
float &  hmult 
)

Definition at line 2310 of file mythcontext.cpp.

void MythContext::GetScreenBounds ( int &  xbase,
int &  ybase,
int &  width,
int &  height 
)

Definition at line 2284 of file mythcontext.cpp.

Referenced by TV::Init(), and VideoOutputXv::InitDisplayMeasurements().

bool MythContext::ParseGeometryOverride ( const QString  geometry  ) 

Parse an X11 style command line geometry string.

Accepts strings like -geometry 800x600 or -geometry 800x600+112+22 to override the fullscreen and user default screen dimensions

Definition at line 2398 of file mythcontext.cpp.

Referenced by main().

QString MythContext::FindThemeDir ( const QString &  themename  ) 

QString MythContext::FindMenuThemeDir ( const QString &  menuname  ) 

Definition at line 2523 of file mythcontext.cpp.

Referenced by LoadQtConfig().

QString MythContext::GetThemeDir ( void   ) 

QValueList< QString > MythContext::GetThemeSearchPath ( void   ) 

QString MythContext::GetMenuThemeDir ( void   ) 

Definition at line 2563 of file mythcontext.cpp.

Referenced by MythThemedMenuPrivate::findMenuFile().

QString MythContext::GetThemesParentDir ( void   ) 

QString MythContext::GetPluginsDir ( void   ) 

Definition at line 1947 of file mythcontext.cpp.

Referenced by FindPlugin(), and MythPluginManager::MythPluginManager().

QString MythContext::GetPluginsNameFilter ( void   ) 

Definition at line 1952 of file mythcontext.cpp.

Referenced by MythPluginManager::MythPluginManager().

QString MythContext::FindPlugin ( const QString &  plugname  ) 

QString MythContext::GetTranslationsDir ( void   ) 

Definition at line 1962 of file mythcontext.cpp.

Referenced by FindTranslation(), and LanguageSettings::load().

QString MythContext::GetTranslationsNameFilter ( void   ) 

Definition at line 1967 of file mythcontext.cpp.

QString MythContext::FindTranslation ( const QString &  translation  ) 

Definition at line 1972 of file mythcontext.cpp.

QString MythContext::GetFontsDir ( void   ) 

Definition at line 1978 of file mythcontext.cpp.

Referenced by FindFont(), OSDCC708Font(), OSDCCFont(), and OSDFont().

QString MythContext::GetFontsNameFilter ( void   ) 

Definition at line 1983 of file mythcontext.cpp.

Referenced by OSDCC708Font(), OSDCCFont(), and OSDFont().

QString MythContext::FindFont ( const QString &  fontname  ) 

Definition at line 1988 of file mythcontext.cpp.

QString MythContext::GetFiltersDir ( void   ) 

Definition at line 1993 of file mythcontext.cpp.

Referenced by FilterManager::FilterManager().

MDBManager * MythContext::GetDBManager ( void   ) 

void MythContext::DBError ( const QString &  where,
const QSqlQuery &  query 
) [static]

Definition at line 2590 of file mythcontext.cpp.

Referenced by MultiValueImp::add(), SingleValueImp::add(), DBEvent::AddAuthority(), FileScanner::AddFileToDB(), ProgramInfo::AddHistory(), Scheduler::AddNewRecords(), Scheduler::AddNotListed(), LiveTVChain::AppendNewProgram(), ChannelRecPriority::applyChannelRecPriorityChange(), ProgramInfo::ApplyRecordPlayGroupChange(), ProgramInfo::ApplyRecordRecGroupChange(), ProgramInfo::ApplyRecordRecID(), ProgramInfo::ApplyRecordRecTitleChange(), ProgramInfo::ApplyTranscoderProfileChange(), InputGroupMap::Build(), Scheduler::BuildNewRecordsQueries(), 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(), checkStoragePaths(), JobQueue::CleanupOldJobsInQueue(), HouseKeeper::CleanupOrphanedLivetvChains(), HouseKeeper::CleanupRecordedTables(), clearArchiveTable(), EITCache::ClearChannelLocks(), ProgramData::clearDataByChannel(), ProgramData::clearDataBySource(), ProgramInfo::ClearMarkupMap(), ProgramInfo::ClearPositionMap(), clone_capturecard(), clone_cardinputs(), KeyBindings::CommitAction(), KeyBindings::CommitJumppoint(), CompleteJob(), DataDirectProcessor::CreateATempTable(), DiSEqCDevDevice::CreateById(), ChannelUtil::CreateChannel(), CardUtil::CreateInputGroup(), CardInput::CreateNewInputGroup(), VideoDisplayProfile::CreateProfile(), VideoDisplayProfile::CreateProfileGroup(), CustomEdit::CustomEdit(), CustomPriority::CustomPriority(), DataDirectProcessor::DataDirectProgramUpdate(), ProgramRecPriority::deactivate(), commDetector2::debugDirectory(), MythGamePlayerEditor::del(), ChannelEditor::del(), TransportListEditor::Delete(), delete_in_db(), delete_program(), JobQueue::DeleteAllJobs(), CardUtil::DeleteCard(), SmartPlaylistEditor::deleteCategory(), ChannelEditor::deleteChannels(), CustomPriority::deleteClicked(), VideoDisplayProfile::DeleteDB(), ProgramInfo::DeleteHistory(), CardUtil::DeleteInput(), JobQueue::DeleteJob(), CardUtil::DeleteOrphanInputs(), PlaylistsContainer::deletePlaylist(), VideoDisplayProfile::DeleteProfileGroup(), VideoDisplayProfile::DeleteProfiles(), SmartPlaylistEditor::deleteSmartPlaylist(), SourceUtil::DeleteSource(), Ripper::deleteTrack(), StorageGroupListEditor::doDelete(), StorageGroupEditor::doDelete(), PlayGroupEditor::doDelete(), MainServer::DoDeleteInDB(), StatusBox::doScheduleStatus(), StatusBox::doTunerStatus(), MetadataImp::dropFromDB(), Metadata::dumpToDatabase(), CaptureCardEditor::edit(), ProgramRecPriority::edit(), ChannelRecPriority::edit(), RomInfo::edit_rominfo(), DDStructureParser::endElement(), AutoExpire::ExpireEpisodesOverMax(), NativeArchive::exportVideo(), DTVMultiplex::FillFromDB(), ProgramRecPriority::FillList(), ChannelRecPriority::FillList(), Scheduler::FillRecordingDir(), Scheduler::FillRecordListFromDB(), CaptureCard::fillSelections(), TransportList::fillSelections(), RecordingProfile::fillSelections(), Source::fillSelections(), Playlist::fillSonglistFromQuery(), Playlist::fillSonglistFromSmartPlaylist(), Scheduler::findAllScheduledPrograms(), ChannelUtil::FindChannel(), ChannelID::findHighest(), MythNewsConfig::findInDB(), MythNews::findInDB(), MythFlixConfig::findInDB(), ProgramInfo::FinishedRecording(), LiveTVChain::FinishedRecording(), DataDirectProcessor::FixProgramIDs(), ProgramInfo::ForgetHistory(), ProgramList::FromOldRecorded(), ProgramList::FromProgram(), ProgramList::FromRecorded(), get_cardtype(), get_cardtypes(), get_chan_id_from_db(), get_dtv_multiplex(), get_input_id(), get_max_chanid(), get_on_cardid(), get_ratings(), get_use_eit(), MythXML::GetAlbumArt(), ChannelUtil::GetATSCChannel(), ChannelUtil::GetBetterMplexID(), DTVChannel::GetCachedPids(), CardUtil::GetCardIDs(), CardUtil::GetCardList(), DVBChannel::GetChanID(), ChannelUtil::GetChanID(), ChannelBase::GetChanID(), IPTVChannel::GetChanInfo(), ProgramInfo::GetChannel(), ChannelUtil::GetChannelData(), MythXML::GetChannelIcon(), DBox2EPG::GetChannelID(), TVRec::GetChannelInfo(), ChannelUtil::GetChannels(), ChannelUtil::GetChannelSettings(), ChannelUtil::GetChannelStringField(), ChannelUtil::GetChannelValueStr(), CardUtil::GetCloneCardIDs(), CardUtil::GetConfiguredDVBInputs(), PlayGroup::GetCount(), CardUtil::GetDefaultInput(), TVRec::GetDevices(), FileScanner::GetDirectoryId(), CardUtil::GetDisplayName(), ProgramInfo::GetDVDBookmark(), MusicPlayer::getFilenameFromID(), Channel::GetFormatForChannel(), CardUtil::GetGroupCardIDs(), PlayGroup::GetInitialName(), CardUtil::GetInputGroups(), CardUtil::GetInputIDs(), CardUtil::GetInputInfo(), CardUtil::GetInputNames(), JobQueue::GetJobArgs(), JobQueue::GetJobCmd(), JobQueue::GetJobFlags(), JobQueue::GetJobID(), JobQueue::GetJobInfoFromID(), JobQueue::GetJobsInQueue(), JobQueue::GetJobStatus(), SourceUtil::GetListingsLoginData(), ProgramInfo::GetMplexID(), ChannelUtil::GetMplexID(), PlayGroup::GetNames(), TVRec::GetNextProgram(), DBEvent::GetOverlappingPrograms(), DBPerson::GetPersonDB(), VideoDisplayProfile::GetProfileGroupID(), VideoDisplayProfile::GetProfiles(), ProgramInfo::GetProgramAtDateTime(), MythXML::GetProgramGuide(), CardUtil::GetQuickTuning(), ProgramInfo::GetRecordBasename(), ThumbItem::GetRotationAngle(), ChannelUtil::GetServiceVersion(), PlayGroup::GetSetting(), RemoteEncoder::GetSignalLockTimeout(), SmartPlaylistDialog::getSmartPlaylistCategories(), SmartPlaylistEditor::getSmartPlaylistCategories(), SmartPlaylistDialog::getSmartPlaylists(), ChannelUtil::GetSourceID(), ChannelUtil::GetSourceIDForChannel(), SourceUtil::GetSourceName(), TVRec::GetStartChannel(), DBUtil::GetTables(), CardUtil::GetTimeouts(), ChannelUtil::GetTuningParams(), TV::GetValidRecorderList(), MythXML::GetVideoArt(), CardUtil::GetVideoDevices(), DataDirectProcessor::GrabNextSuggestedTime(), ChannelData::handleChannels(), ProgramData::handlePrograms(), MainServer::HandleQueryRecordings(), SourceUtil::HasDigitalChannel(), CardUtil::IgnoreEncrypted(), IconData::ImportIconMap(), NativeArchive::importRecording(), NativeArchive::importVideo(), StorageGroup::Init(), ChannelBase::InitializeInputs(), insert_dtv_multiplex(), insert_program(), DBPerson::InsertCreditsDB(), DBEvent::InsertDB(), MythNewsConfig::insertInDB(), MythNews::insertInDB(), MythFlixConfig::insertInDB(), DBPerson::InsertPersonDB(), CustomPriority::installClicked(), is_dishnet_eit(), is_input_group_busy(), SourceUtil::IsAnySourceScanable(), CardUtil::IsCardTypePresent(), SourceUtil::IsEncoder(), Ripper::isNewTune(), CardUtil::IsTunerShared(), MSqlDatabase::KickDatabase(), MSqlQuery::lastInsertId(), CardUtil::LinkInputGroup(), CardInputEditor::load(), InputGroup::load(), TransFreqTableSelector::load(), StorageGroupListEditor::load(), StorageGroupEditor::load(), InputSelector::load(), SimpleDBStorage::load(), DiSEqCDevLNB::Load(), DiSEqCDevRotor::Load(), DiSEqCDevSwitch::Load(), DiSEqCDevTree::Load(), DiSEqCDevSettings::Load(), MetadataListManager::loadAllFromDatabase(), RecordingProfile::loadByID(), ScheduledRecording::loadBySearch(), RecordingProfile::loadByType(), EITCache::LoadChannel(), KeyBindings::LoadContexts(), VideoDisplayProfile::LoadDB(), SmartPlaylistEditor::loadFromDatabase(), KeyBindings::LoadJumppoints(), MainServer::LocalFilePath(), lock_channel(), LogEntry(), SmartPlaylistEditor::lookupCategoryID(), main(), ProgramInfo::MarkAsInUse(), SmartPlaylistEditor::newCategory(), VideoSelector::OKPressed(), RecordingSelector::OKPressed(), FileSelector::OKPressed(), StorageGroupEditor::open(), RecordingProfileEditor::open(), PlayGroupEditor::open(), Metadata::persist(), DBUtil::QueryDBMSVersion(), JobQueue::QueueJob(), ProgramInfo::ReactivateRecording(), MythMainWindow::RegisterJump(), MythMainWindow::RegisterKey(), ThumbItem::Remove(), MultiValueImp::remove(), FileScanner::RemoveFileFromDB(), MythNewsConfig::removeFromDB(), MythNews::removeFromDB(), MythFlixConfig::removeFromDB(), SmartPlaylistEditor::renameCategory(), replace_in_db(), IconData::ResetIconMap(), romInDB(), SearchDialog::runQuery(), Scheduler::RunScheduler(), RunSimpleQuery(), TransFreqTableSelector::save(), AutoIncrementDBSetting::save(), ScheduledRecording::save(), ProgramInfo::Save(), SimpleDBStorage::save(), ChannelID::save(), DTVChannel::SaveCachedPids(), SmartPlaylistEditor::saveClicked(), VideoDisplayProfile::SaveDB(), Playlist::savePlaylist(), SaveSettingOnHost(), SmartPLCriteriaRow::saveToDatabase(), MetadataImp::saveToDatabase(), SIScan::ScanServicesSourceID(), SIScan::ScanTransport(), set_lineup_type(), set_on_source(), ProgramInfo::SetAutoExpire(), ProgramInfo::SetBookmark(), TVRec::SetChannelInfo(), ProgramInfo::SetCommFlagged(), ProgramInfo::SetCutList(), ProgramInfo::SetDeleteFlag(), ProgramInfo::SetDupHistory(), ProgramInfo::SetDVDBookmark(), ProgramInfo::SetEditing(), RomInfo::setFavorite(), ProgramInfo::SetFilesize(), setGlobalSetting(), ProgramInfo::SetMarkupMap(), ProgramInfo::SetPositionMap(), ProgramInfo::SetPositionMapDelta(), ProgramInfo::SetPreserveEpisode(), ProgramInfo::SetRecordBasename(), ThumbItem::SetRotationAngle(), ChannelUtil::SetServiceVersion(), StartingChannel::SetSourceID(), ProgramInfo::SetTranscoded(), setupTVs(), ProgramInfo::SetWatchedFlag(), TVRec::ShouldSwitchToAnotherCard(), ProgramInfo::showDetails(), MythNews::slotNewsRetrieved(), ChannelOptionsCommon::sourceChanged(), EITScanner::StartActiveScan(), ProgramInfo::StartedRecording(), DiSEqCDevLNB::Store(), DiSEqCDevRotor::Store(), DiSEqCDevSwitch::Store(), DiSEqCDevTree::Store(), DiSEqCDevSettings::Store(), CustomEdit::storeClicked(), ChannelBase::StoreDefaultInput(), ChannelBase::StoreInputChannels(), CustomPriority::testSchedule(), TVRec::ToggleChannelFavorite(), CardUtil::TVOnly(), CardUtil::UnlinkInputGroup(), unlock_channel(), update_channel_basic(), ChannelUtil::UpdateChannel(), DataDirectProcessor::UpdateChannelsSafe(), DataDirectProcessor::UpdateChannelsUnsafe(), DBEvent::UpdateDB(), DBox2EPG::UpdateDB(), ProgramInfo::UpdateLastDelete(), DataDirectProcessor::UpdateListings(), Scheduler::UpdateManuals(), Scheduler::UpdateMatches(), Scheduler::UpdateNextRecord(), DataDirectProcessor::UpdateProgramViewTable(), ProgramInfo::UpdateRecordingEnd(), IconData::UpdateSourceIcons(), DataDirectProcessor::UpdateStationViewTable(), UpgradeMusicDatabaseSchema(), and DBox2EPG::UseOnAirGuide().

QString MythContext::DBErrorMessage ( const QSqlError &  err  )  [static]

DatabaseParams MythContext::GetDatabaseParams ( void   ) 

bool MythContext::SaveDatabaseParams ( const DatabaseParams params  ) 

void MythContext::LogEntry ( const QString &  module,
int  priority,
const QString &  message,
const QString &  details 
)

Settings * MythContext::qtconfig ( void   ) 

Definition at line 2622 of file mythcontext.cpp.

Referenced by MythThemeBase::Init(), and MythThemeBase::Reload().

void MythContext::SaveSetting ( const QString &  key,
int  newValue 
)

Definition at line 2627 of file mythcontext.cpp.

Referenced by VideoSelector::checkParentPassword(), checkParentPassword(), MythThemedMenuPrivate::checkPinCode(), MusicPlayer::customEvent(), doBurnDVD(), doNativeArchive(), DoVideoDatabaseSchemaUpgrade(), FindMenuThemeDir(), FindThemeDir(), DataDirectProcessor::FixProgramIDs(), getTempDirectory(), GuideGrid::GuideGrid(), ProgramRecPriority::keyPressEvent(), ChannelRecPriority::keyPressEvent(), PlaybackBoxMusic::play(), LanguageSettings::prompt(), RandTheme(), MythburnWizard::runScript(), XMLTV_generic_config::save(), LangEditorSetting::save(), VideoFilterSettings::saveAsDefault(), MythburnWizard::saveConfiguration(), ExportNativeWizard::saveConfiguration(), GlobalSetup::saveData(), PlaybackBoxMusic::savePosition(), MusicPlayer::savePosition(), VolumeControl::SetCurrentVolume(), VolumeBase::SetCurrentVolume(), PlaybackBox::setGroupFilter(), VideoOutput::SetPictureAttributeDBValue(), PlaybackBox::SetRecGroupPassword(), setupDatabase(), DBConfiguration::SetValue(), PlaybackBox::showViewChanger(), NuppelVideoPlayer::ShutdownAVSync(), MythAppearance::slotResetSettings(), MythNewsConfig::slotUpdateFreqTimerTimeout(), MythFlixConfig::slotUpdateFreqTimerTimeout(), NuppelVideoPlayer::StartPlaying(), MainServer::TruncateAndClose(), MoviesUI::updateMovieTimes(), MythAppearance::updateSettings(), UpgradeMusicDatabaseSchema(), BookmarksConfig::~BookmarksConfig(), DatabaseBox::~DatabaseBox(), GLSingleView::~GLSingleView(), GuideGrid::~GuideGrid(), ImportMusicDialog::~ImportMusicDialog(), LogViewer::~LogViewer(), MusicPlayer::~MusicPlayer(), SingleView::~SingleView(), StatusBox::~StatusBox(), VideoTree::~VideoTree(), ViewScheduled::~ViewScheduled(), ZMEvents::~ZMEvents(), and ZMLivePlayer::~ZMLivePlayer().

void MythContext::SaveSetting ( const QString &  key,
const QString &  newValue 
)

Definition at line 2633 of file mythcontext.cpp.

QString MythContext::GetSetting ( const QString &  key,
const QString &  defaultval = "" 
)

Definition at line 2690 of file mythcontext.cpp.

Referenced by FileScanner::AddFileToDB(), UPnpCDSVideo::AddItem(), UPnpCDSMusic::AddItem(), addMyselfToDirectory(), AutoRunUserJob(), DatabaseBox::BlankCDRW(), UPnpMedia::BuildMediaMap(), DVDTranscodeThread::buildTranscodeCommandLine(), burnISOImage(), calc_eit_utc_offset(), DiSEqCDevRotor::CalculateAzimuth(), LogViewer::cancelClicked(), SipThread::ChangePrimaryCallState(), ChannelRecPriority::ChannelRecPriority(), IvtvDecoder::CheckDevice(), PlaybackBoxMusic::checkForPlaylists(), VideoSelector::checkParentPassword(), checkParentPassword(), MythThemedMenuPrivate::checkPinCode(), Scheduler::CheckShutdownServer(), checkStoragePaths(), ClassicLogoDetector::ClassicLogoDetector(), ClearOldImageCache(), WeatherScreen::clock_tick(), ConnectServer(), ConnectToMasterServer(), Playlist::CreateCDMP3(), createISOImage(), WelcomeDialog::customEvent(), PhoneUIBox::customEvent(), DatabaseBox::DatabaseBox(), MediaMonitor::defaultDevice(), Ripper::deleteTrack(), SipFsm::DetermineNatAddress(), DatabaseBox::doActivePopup(), DBUtil::DoBackup(), StorageGroupListEditor::doDelete(), NativeArchive::doImportArchive(), StatusBox::doListingsStatus(), DoOldDVDDatabaseSchemaUpgrage(), DoOldVideoDatabaseSchemaUpgrade(), doUpgradeTVDatabaseSchema(), DoVideoDatabaseSchemaUpgrade(), expandURLString(), NativeArchive::exportRecording(), NativeArchive::exportVideo(), Ripper::filenameFromMetadata(), PlaybackBox::FillList(), HttpStatus::FillStatusXML(), EditMetadataDialog::findCoverArt(), StorageGroup::FindRecordingDir(), ProgramList::FromProgram(), ProgramList::FromRecorded(), GameTree::GameTree(), GameTreeItem::GameTreeItem(), MythXML::GetAlbumArt(), MythXML::GetConnectionInfo(), InfoDialog::getDateLabel(), ZMEvents::getDateList(), MythburnWizard::getDefaultProfile(), ZMClient::getEventList(), getFileDetails(), GetFilePrefix(), GetFloatSetting(), JobQueue::GetJobCommand(), JobQueue::GetJobDescription(), GetLanguageAndVariant(), MythXML::GetMusic(), GetMySipIp(), GetNumSetting(), ProgramInfo::GetPlaybackURL(), Metadata::getPlayCommand(), Metadata::getPlayer(), ProgramInfo::GetProgramAtDateTime(), ProgramInfo::GetRecGroupPassword(), PhoneUIBox::getResolution(), GetResolutionSetting(), XBox::GetSettings(), MusicFieldTreeBuilder::getSplitField(), getTempDirectory(), ThumbGenerator::getThumbcacheDir(), DBConfiguration::GetValue(), GetVideoDirs(), GLSingleView::GLSingleView(), FillData::grabData(), GuideGrid::GuideGrid(), GuiVidModeResolution(), haltnow(), MythburnWizard::handleAddFile(), MainServer::HandleFillProgramInfo(), MainServer::HandleGetFreeRecorder(), MainServer::HandleGetNextFreeRecorder(), MainServer::HandleGetRecorderFromNum(), MainServer::HandleGetRecorderNum(), MainServer::HandleQueryRecordings(), IconView::HandleSettings(), PhoneUIBox::handleTreeListSignals(), ImportMusicDialog::ImportMusicDialog(), NativeArchive::importVideo(), VideoOutputIvtv::Init(), TVRec::Init(), TV::Init(), StorageGroup::Init(), OSD::Init(), LircClient::Init(), LCDProcClient::init(), LCD::init(), LanguageSettingsPrivate::Init(), Channel::Init(), OSD::InitCC608(), SipCall::initialise(), ProgFinder::Initialize(), initialize_osd_fonts(), InitializeDatabase(), ChannelBase::InitializeInputs(), Channel::InitializeInputs(), OSD::InitMenu(), OSD::InitTeletext(), JobQueue::InJobRunWindow(), DBUtil::IsBackupInProgress(), UPnpCDSVideo::IsBrowseRequestForUs(), UPnpCDSTv::IsBrowseRequestForUs(), IsCombinedSchema(), IsMasterHost(), ISO639_fill_selections(), iso639_get_language_list(), UPnpCDSVideo::IsSearchRequestForUs(), UPnpCDSTv::IsSearchRequestForUs(), JobAllowUserJob(), JobQueue::JobText(), WelcomeDialog::keyPressEvent(), LanguageSettingsPrivate::LanguageChanged(), TransFreqTableSelector::load(), StorageGroupListEditor::load(), RecordingProfile::loadByID(), MythburnWizard::loadConfiguration(), ExportNativeWizard::loadConfiguration(), MythburnWizard::loadEncoderProfiles(), LoadQtConfig(), LCDProcClient::loadSettings(), XMLParse::LoadTheme(), OSD::LoadTheme(), vxmlParser::loadVxmlPage(), ImportNativeWizard::loadXML(), PhoneUIBox::LoopbackButtonPushed(), main(), DVDTranscodeThread::makeWorkingDirectory(), ManualSchedule::ManualSchedule(), MediaMonitor::MediaMonitor(), MetaIO::MetaIO(), MTD::MTD(), MTDLogger::MTDLogger(), MusicDirectoryTreeBuilder::MusicDirectoryTreeBuilder(), MusicPlayer::MusicPlayer(), MythFlix::MythFlix(), MythFlixQueue::MythFlixQueue(), MythMainWindow::MythMainWindow(), MythNews::MythNews(), mythplugin_config(), mythplugin_run(), MythUIClock::MythUIClock(), SipFsm::NewCall(), ImportNativeWizard::nextPressed(), NuppelVideoPlayer::NuppelVideoPlayer(), AudioOutputCA::OpenDevice(), IvtvDecoder::OpenFile(), AudioOutputALSA::OpenMixer(), MusicPlayer::openOutputDevice(), SipFsm::OpenSocket(), rtp::OpenSocket(), SingleView::paintEvent(), GLSingleView::paintGL(), XMLTVParser::parseFile(), OSD::parseFont(), MythFontProperties::ParseFromXml(), PhoneUIBox::PhoneUIBox(), PlaybackBox::PlaybackBox(), PlaybackBoxMusic::PlaybackBoxMusic(), playDVD(), playVCD(), MythNews::playVideo(), preMusic(), PreviousList::PreviousList(), HttpStatus::PrintEncoderStatus(), HttpStatus::PrintJobQueue(), HttpStatus::PrintMachineInfo(), HttpStatus::PrintScheduled(), HttpStatus::PrintStatus(), ProgFinder::ProgFinder(), ProgLister::ProgLister(), DBUtil::QueryDBMSVersion(), rebootnow(), MainServer::reconnectTimeout(), ManualSchedule::recordClicked(), PreviewGenerator::RemotePreviewSetup(), FileScanner::RemoveFileFromDB(), GalleryUtil::Rename(), GalleryUtil::RenameDirectory(), TitleDialog::ripTitles(), CDRipperThread::ripTrack(), mythvideo_videomanager::VideoPosterSearch::Run(), mythvideo_videomanager::VideoUIDSearch::Run(), mythvideo_videomanager::VideoTitleSearch::Run(), run(), CDRipperThread::run(), runBurnDVD(), runFileSelector(), HouseKeeper::RunHouseKeeping(), HouseKeeper::RunMFD(), WelcomeDialog::runMythFillDatabase(), SearchDialog::runQuery(), Scheduler::RunScheduler(), runTestDVD(), vxmlParser::runVxmlSession(), TransFreqTableSelector::save(), ImportCoverArtDialog::scanDirectory(), AvFormatDecoder::ScanStreams(), ScheduledRecording::ScheduledRecording(), Metadata::setArtistAndTrackFormats(), VolumeControl::SetCurrentVolume(), VolumeBase::SetCurrentVolume(), Decoder::SetLocationFormatUseTags(), ZMLivePlayer::setMonitorLayout(), NuppelVideoRecorder::SetOptionsFromProfile(), MpegRecorder::SetOptionsFromProfile(), HDHRRecorder::SetOptionsFromProfile(), DVBRecorder::SetOptionsFromProfile(), StartingChannel::SetSourceID(), OSD::SetTextSubtitles(), setupDatabase(), LCDProcClient::SetupLCD(), LCD::SetupLCD(), SetupMenu(), AudioOutputALSA::SetupMixer(), TV::SetupPipPlayer(), TV::SetupPlayer(), MoviesUI::setupTheme(), BookmarksConfig::setupView(), ZMClient::setupZMClient(), ProgramInfo::showDetails(), ProgFinder::showGuide(), PlaybackBox::showJobPopup(), ProgramInfo::ShowNotRecordingDialog(), PlaybackBox::showPlaylistJobPopup(), shutdown(), WelcomeDialog::shutdownNow(), Scheduler::ShutdownServer(), SingleView::SingleView(), SipFsm::SipFsm(), SipIM::SipIM(), SipWatcher::SipWatcher(), Bookmarks::slotBookmarksViewExecuted(), TVRec::SpawnLiveTV(), SRAutoUserJob1::SRAutoUserJob1(), SRAutoUserJob2::SRAutoUserJob2(), SRAutoUserJob3::SRAutoUserJob3(), SRAutoUserJob4::SRAutoUserJob4(), startDVDRipper(), WelcomeDialog::startFrontend(), startGuide(), PhoneUIBox::startRTP(), StatusBox::StatusBox(), ViewScheduleDiff::statusDialog(), StorageGroupEditor::StorageGroupEditor(), StorageGroupListEditor::StorageGroupListEditor(), MythContextPrivate::StoreGUIsettings(), ProgramInfo::ToMap(), Transcode::TranscodeFile(), GameHandler::UpdateGameDB(), MoviesUI::updateMovieTimes(), WelcomeDialog::updateScreen(), UpgradeArchiveDatabaseSchema(), UpgradeFlixDatabaseSchema(), UpgradeGalleryDatabaseSchema(), UpgradeGameDatabaseSchema(), UpgradeMusicDatabaseSchema(), UpgradePhoneDatabaseSchema(), UpgradeTVDatabaseSchema(), mythvideo_videomanager::VideoManagerImp::VideoManagerImp(), VideoTree::VideoTree(), ViewScheduled::ViewScheduled(), ViewScheduleDiff::ViewScheduleDiff(), TitleDialog::viewTitle(), VolumeControl::VolumeControl(), AudioOutputOSS::VolumeInit(), Scheduler::WasStartedAutomatically(), WebcamSettingsBox::WebcamSettingsBox(), WelcomeDialog::WelcomeDialog(), and ZMConsole::ZMConsole().

bool MythContext::SaveSettingOnHost ( const QString &  key,
const QString &  newValue,
const QString &  host 
)

int MythContext::GetNumSetting ( const QString &  key,
int  defaultval = 0 
)

Definition at line 2763 of file mythcontext.cpp.

Referenced by addMyselfToDirectory(), Scheduler::AddNewRecords(), PhoneUIBox::alertUser(), JobQueue::AllowedToRun(), AudioOutputBase::AudioOutputBase(), AvFormatDecoder::AvFormatDecoder(), VoqvFullscreen::BeginPort(), VideoSync::BestMethod(), DatabaseBox::BlankCDRW(), BlankFrameDetector::BlankFrameDetector(), TV::BookmarkAllowed(), BorderDetector::BorderDetector(), DVDTranscodeThread::buildTranscodeCommandLine(), burnISOImage(), AutoExpire::CalcParams(), ChannelRecPriority::ChannelRecPriority(), IvtvDecoder::CheckDevice(), checkParentPassword(), CheckSchemaVersion(), Scheduler::CheckShutdownServer(), ClassicCommDetector::ClassicCommDetector(), ClassicLogoDetector::ClassicLogoDetector(), HouseKeeper::CleanupProgramListings(), ClearOldImageCache(), CompareTVDatabaseSchemaVersion(), CompleteJob(), ConnectServer(), LCDProcClient::connectToHost(), LCD::connectToHost(), ConnectToMasterServer(), DVDRipBox::connectToMtd(), Playlist::CreateCDMP3(), WelcomeDialog::customEvent(), TV::customEvent(), MusicPlayer::customEvent(), MainServer::customEvent(), DatabaseBox::DatabaseBox(), PlaybackBox::deleteSelected(), SipNotify::Display(), DatabaseBox::doActivePopup(), MainServer::DoDeleteThread(), TV::doEditSchedule(), MainServer::DoHandleDeleteRecording(), MainServer::DoHandleUndeleteRecording(), PlaybackBox::doJobQueueJob(), PlaybackBox::doPlaylistJobQueueJob(), TV::DoQueueTranscode(), NuppelVideoPlayer::DoSkipCommercials(), doUpgradeTVDatabaseSchema(), DoVideoDatabaseSchemaUpgrade(), DVDTitleInfo::DVDTitleInfo(), ProgramRecPriority::edit(), Ripper::ejectCD(), VoqvFullscreen::EndPort(), TabView::eventFilter(), WelcomeDialog::exec(), PlaybackBox::exec(), Ripper::filenameFromMetadata(), AutoExpire::FillDBOrdered(), AutoExpire::FillExpireList(), ProgramRecPriority::FillList(), PlaybackBox::FillList(), TV::FillMenuLiveTV(), Scheduler::FillRecordingDir(), Scheduler::FillRecordList(), HttpStatus::FillStatusXML(), FlagCommercials(), HouseKeeper::flushLogs(), ProgramList::FromRecorded(), AutoExpire::GetAllExpiring(), ProgramInfo::GetDVDBookmark(), JobQueue::GetJobsInQueue(), ProgramInfo::GetPlaybackURL(), MythXML::GetPreviewImage(), TVRec::GetProgramRingBufferForLiveTV(), ProgramInfo::GetRecordingTypeRecPriority(), GetResolutionSetting(), MythContextPrivate::GetScreenBounds(), NuppelVideoPlayer::GetScreenGrabAtFrame(), MythAppearance::getScreenInfo(), XBox::GetSettings(), ThumbGenerator::getThumbcacheDir(), DBConfiguration::GetValue(), GLSingleView::GLSingleView(), ClassicCommDetector::go(), Goom::Goom(), DataDirectProcessor::GrabNextSuggestedTime(), GuideGrid::GuideGrid(), MythThemedMenuPrivate::handleAction(), handleDVDMedia(), handleExit(), handleMedia(), MainServer::HandleQueryRecordings(), IconView::HandleSettings(), handleVCDMedia(), HistogramAnalyzer::HistogramAnalyzer(), HttpStatus::HttpStatus(), TV::IdleDialog(), ImageView::ImageView(), UDPNotify::incomingData(), VideoOutputQuartz::Init(), TVRec::Init(), TV::Init(), MythRemoteLineEdit::Init(), MythMainWindow::Init(), NuppelVideoPlayer::InitAVSync(), OSD::InitCC708(), VideoOutputXv::InitDisplayMeasurements(), ZMLivePlayer::initMonitorLayout(), NuppelVideoPlayer::InitVideo(), AvFormatDecoder::InitVideoCodec(), internal_play_media(), JobQueue::JobQueue(), StatusBox::keyPressEvent(), LinuxFirewireDevice::LinuxFirewireDevice(), TV::LiveTV(), PlaylistsContainer::load(), GlobalSetup::loadData(), MythContextPrivate::LoadLogSettings(), LoadQtConfig(), XMLParse::LoadTheme(), PreviewGenerator::LocalPreviewRun(), LogViewer::LogViewer(), main(), MainServer::MainServer(), MediaMonitor::MediaMonitor(), NuppelVideoPlayer::MergeShortCommercials(), MTD::MTD(), MusicPlayer::MusicPlayer(), MythComboBox::MythComboBox(), MythFlix::MythFlix(), MythFlixConfig::MythFlixConfig(), MythFlixQueue::MythFlixQueue(), MythLineEdit::MythLineEdit(), MythNews::MythNews(), MythNewsConfig::MythNewsConfig(), mythplugin_init(), MythPopupBox::MythPopupBox(), MythXML::MythXML(), NuppelVideoPlayer::NuppelVideoPlayer(), mythvideo_videomanager::VideoManagerImp::OnPosterURL(), HDHRRecorder::Open(), AudioOutputCA::OpenDevice(), AudioOutputALSA::OpenMixer(), OSDTypeCC::OSDTypeCC(), NuppelVideoPlayer::OutputVideoLoop(), GuideGrid::paintChannels(), GuideGrid::paintInfo(), MythThemedMenuPrivate::parseThemeButton(), PlaybackBoxMusic::play(), TV::Playback(), PlaybackBox::PlaybackBox(), PlaybackBoxMusic::PlaybackBoxMusic(), Player::Player(), PlaylistsContainer::PlaylistsContainer(), TV::ProcessKeypress(), TV::ProcessNetworkControlCommand(), JobQueue::ProcessQueue(), ProgFinder::ProgFinder(), ProgramRecPriority::ProgramRecPriority(), PromptForSchemaUpgrade(), JobQueue::QueueJobs(), JobQueue::QueueRecordingJobs(), AudioOutputBase::Reconfigure(), MainServer::reconnectTimeout(), JobQueue::RecoverQueue(), NuppelVideoPlayer::ReinitAudio(), MythThemedMenu::ReloadExitKey(), PreviewGenerator::RemotePreviewSetup(), RemoteUndeleteRecording(), VideoOutputXv::ResizeForVideo(), RipFile::RipFile(), DVDTranscodeThread::run(), CDRipperThread::run(), run_priv_thread(), AutoExpire::RunExpirer(), HouseKeeper::RunHouseKeeping(), Scheduler::RunScheduler(), TV::RunTV(), runWeather(), PreviewGenerator::SavePreview(), MetadataImp::saveToDatabase(), SceneChangeDetector::SceneChangeDetector(), Scheduler::SchedNewRecords(), Scheduler::SchedPreserveLiveTV(), VideoOutputIvtv::SetAlpha(), ScheduledRecording::setDefault(), DVDRingBufferPriv::SetDVDSpeed(), PlaybackBox::setGroupFilter(), Decoder::SetLocationFormatUseTags(), PlaybackBox::setRecGroup(), PlaybackBox::setRecTitle(), setScheduledWakeupTime(), MusicNode::SetStaticData(), DeviceReadBuffer::Setup(), LCDProcClient::SetupLCD(), LCD::SetupLCD(), Weather::setupPage(), TV::SetupPipPlayer(), TV::SetupPlayer(), BookmarksConfig::setupView(), ZMClient::setupZMClient(), VideoOutput::SetVideoScalingAllowed(), PlaybackBox::showRecGroupChooser(), PlaybackBox::showViewChanger(), WelcomeDialog::shutdownNow(), Scheduler::ShutdownServer(), SingleView::SingleView(), SipFsm::SipFsm(), Bookmarks::slotBookmarksViewExecuted(), slowDelete(), SmartPlaylistDialog::SmartPlaylistDialog(), SmartPLOrderByDialog::SmartPLOrderByDialog(), SRDupIn::SRDupIn(), PlaybackBox::startPlayer(), NuppelVideoPlayer::StartPlaying(), Ripper::startRipper(), StatusBox::StatusBox(), MythContextPrivate::StoreGUIsettings(), TabView::TabView(), TemplateFinder::TemplateFinder(), TemplateMatcher::TemplateMatcher(), TV::ToggleRecord(), transUnlink(), TV::TreeMenuSelected(), UIImageType::UIImageType(), ProgFinder::updateBackground(), mythvideo_videomanager::ListHandler::UpdateContents(), UpgradeTVDatabaseSchema(), VideoBrowser::VideoBrowser(), VideoCallback(), VideoDialog::VideoDialog(), VideoFilterSettings::VideoFilterSettings(), VideoGallery::VideoGallery(), VideoListImp::VideoListImp(), VideoOutput::VideoOutput(), VideoOutputXv::VideoOutputXv(), VideoScannerImp::VideoScannerImp(), TV::VideoThemeCheck(), VideoTree::VideoTree(), VideoTreeImp::VideoTreeImp(), ViewScheduled::ViewScheduled(), VolumeControl::VolumeControl(), AudioOutputOSS::VolumeInit(), AudioOutputJACK::VolumeInit(), Weather::Weather(), WeatherCallback(), WelcomeDialog::WelcomeDialog(), GlobalSetup::wireUI(), Ripper::wireupTheme(), ZMEvents::ZMEvents(), ZMPlayer::ZMPlayer(), and TV::~TV().

double MythContext::GetFloatSetting ( const QString &  key,
double  defaultval = 0.0 
)

Definition at line 2771 of file mythcontext.cpp.

Referenced by GetResolutionSetting().

void MythContext::GetResolutionSetting ( const QString &  type,
int &  width,
int &  height,
double &  forced_aspect,
short &  refreshrate,
int  index = -1 
)

void MythContext::GetResolutionSetting ( const QString &  type,
int &  width,
int &  height,
int  index = -1 
)

Definition at line 2382 of file mythcontext.cpp.

QString MythContext::GetSettingOnHost ( const QString &  key,
const QString &  host,
const QString &  defaultval = "" 
)

int MythContext::GetNumSettingOnHost ( const QString &  key,
const QString &  host,
int  defaultval = 0 
)

Definition at line 2846 of file mythcontext.cpp.

Referenced by ScreenSaverX11Private::ResetTimer().

double MythContext::GetFloatSettingOnHost ( const QString &  key,
const QString &  host,
double  defaultval = 0.0 
)

Definition at line 2855 of file mythcontext.cpp.

Referenced by VideoOutputXv::InitDisplayMeasurements().

void MythContext::SetSetting ( const QString &  key,
const QString &  newValue 
)

QFont MythContext::GetBigFont ( void   ) 

QFont MythContext::GetMediumFont ( void   ) 

QFont MythContext::GetSmallFont ( void   ) 

Definition at line 3455 of file mythcontext.cpp.

Referenced by MythDialog::MythDialog(), and MythScrollDialog::MythScrollDialog().

QString MythContext::GetLanguage ( void   ) 

QString MythContext::GetLanguageAndVariant ( void   ) 

Returns the user-set language and variant.

The string has the form ll or ll_vv, where ll is the two character ISO-639 language code, and vv (which may not exist) is the variant. Examples include en_AU, en_CA, en_GB, en_US, fr_CH, fr_DE, pt_BR, pt_PT.

Definition at line 3480 of file mythcontext.cpp.

Referenced by GetLanguage(), MythUIText::ParseElement(), XMLParse::parseRemoteEdit(), XMLParse::parseRichTextArea(), XMLParse::parseTextArea(), MythThemedMenuPrivate::parseThemeButton(), and VirtualKeyboard::VirtualKeyboard().

void MythContext::ThemeWidget ( QWidget *  widget  ) 

bool MythContext::FindThemeFile ( QString &  filename  ) 

QPixmap * MythContext::LoadScalePixmap ( QString  filename,
bool  fromcache = true 
)

QImage * MythContext::LoadScaleImage ( QString  filename,
bool  fromcache = true 
)

bool MythContext::SendReceiveStringList ( QStringList &  strlist,
bool  quickTimeout = false,
bool  block = true 
)

QImage * MythContext::CacheRemotePixmap ( const QString &  url,
bool  reCache = false 
)

void MythContext::SetMainWindow ( MythMainWindow mainwin  ) 

MythMainWindow * MythContext::GetMainWindow ( void   ) 

Definition at line 3493 of file mythcontext.cpp.

Referenced by ImportMusicDialog::addAllNewPressed(), MythControls::AddKeyToAction(), ImportMusicDialog::addPressed(), browse(), PlaybackProfileConfigs::btnPress(), ProfileGroupEditor::callDelete(), LogViewer::cancelClicked(), ChannelEditor::channelIconImport(), ChannelRecPriority::ChannelRecPriority(), VideoSelector::checkParentPassword(), checkParentPassword(), MythThemedMenuPrivate::checkPinCode(), ZMClient::checkProtoVersion(), CustomPriority::checkSyntax(), CustomEdit::checkSyntax(), MediaMonitor::ChooseAndEjectMedia(), chooseQueue(), ProgLister::chooseView(), PreviousList::chooseView(), GameHandler::clearAllGameData(), KeyBindings::CommitAction(), KeyBindings::CommitJumppoint(), ZMClient::connectToHost(), CardInput::CreateNewInputGroup(), VideoTree::createPopup(), VideoDialog::createPopup(), ViewScheduled::customEdit(), ProgramRecPriority::customEdit(), ProgLister::customEdit(), ProgFinder::customEdit(), PreviousList::customEdit(), PlaybackBox::customEdit(), GuideGrid::customEdit(), PlaybackBoxMusic::customEvent(), PlaybackBox::customEvent(), MusicPlayer::customEvent(), DatabaseBox::DatabaseBox(), VideoSourceEditor::del(), CaptureCardEditor::del(), MythGamePlayerEditor::del(), ChannelEditor::del(), TransportListEditor::Delete(), SmartPlaylistEditor::deleteCategory(), ChannelEditor::deleteChannels(), MythControls::DeleteKey(), MythNews::deleteNewsSite(), SmartPlaylistDialog::deletePressed(), DisableScreensaver(), MythFlixQueue::displayOptions(), MythFlix::displayOptions(), DatabaseBox::doActivePopup(), PhoneUIBox::doAddDirectoryPopup(), PhoneUIBox::doAddEntryPopup(), PhoneUIBox::doCallPopup(), StorageGroupListEditor::doDelete(), StorageGroupEditor::doDelete(), PlayGroupEditor::doDelete(), mythvideo_videomanager::VideoManagerImp::DoEditMetadata(), TV::doEditSchedule(), mythvideo_videomanager::VideoManagerImp::DoFilter(), PhoneUIBox::doIMPopup(), NuppelVideoPlayer::DoKeypress(), ScreenSetup::doListSelect(), PhoneUIBox::doMenuPopup(), DatabaseBox::doPlaylistPopup(), mythvideo_videomanager::VideoManagerImp::DoRemoveVideo(), PhoneUIBox::doUrlPopup(), mythvideo_videomanager::VideoManagerImp::DoVideoMenu(), VideoSourceEditor::edit(), CaptureCardEditor::edit(), RotorPosMap::edit(), SmartPLCriteriaRow::editDate(), PlaybackBoxMusic::editPlaylist(), SmartPlaylistDialog::editPressed(), DatabaseBox::ErrorPopup(), WeatherSpinBox::eventFilter(), TabView::eventFilter(), MythSpinBox::eventFilter(), MythNewsSpinBox::eventFilter(), MythFlixSpinBox::eventFilter(), InfoDialog::eventFilter(), ScanProgressPopup::exec(), RecordingProfile::exec(), ProfileGroupEditor::exec(), ConfigurationDialog::exec(), ConfigurationPopupDialog::exec(), MythFlixQueue::executeExternal(), MythFlix::executeExternal(), executeExternal(), EditMetadataDialog::findCoverArt(), get_cardtype(), PlaybackBoxMusic::getInsertPLOptions(), RecordingSelector::getRecordingList(), getTempDirectory(), VideoSelector::getVideoList(), DVDRipBox::goRipScreen(), gotoMainMenu(), MythThemedMenuPrivate::handleAction(), MythburnWizard::handleAddFile(), MythburnWizard::handleAddRecording(), ExportNativeWizard::handleAddRecording(), MythburnWizard::handleAddVideo(), ExportNativeWizard::handleAddVideo(), IconView::HandleDeleteCurrent(), IconView::HandleDeleteMarked(), handleExit(), MythburnWizard::handleFind(), ExportNativeWizard::handleFind(), IconView::HandleImageSelect(), IconView::HandleImport(), SevereWeatherScreen::handleKey(), OSDListTreeType::HandleKeypress(), LCD::handleKeyPress(), VisualizationsEditor::handleKeyPress(), IconView::HandleMediaDeviceSelect(), IconView::HandleMkDir(), MythburnWizard::handleNextPage(), ExportNativeWizard::handleNextPage(), IconView::HandleRename(), GameTree::handleTreeListSelection(), VideoGallery::handleVideoSelect(), history(), ScanWizardScanner::ImportDVBUtils(), ScanWizardScanner::ImportM3U(), UIManagedTreeListType::incSearchStart(), UIListBtnType::incSearchStart(), TV::Init(), ZMLivePlayer::initMonitorLayout(), PlaybackBox::initRecGroupPopup(), NuppelVideoPlayer::InitVideo(), internal_play_media(), ImportIconsWizard::isBlocked(), VideoTree::jumpTo(), VideoDialog::jumpTo(), ZMPlayer::keyPressEvent(), ZMLivePlayer::keyPressEvent(), ZMEvents::keyPressEvent(), ZMConsole::keyPressEvent(), WelcomeDialog::keyPressEvent(), WebcamSettingsBox::keyPressEvent(), LocationDialog::keyPressEvent(), SourceSetup::keyPressEvent(), ScreenSetup::keyPressEvent(), GlobalSetup::keyPressEvent(), Weather::keyPressEvent(), VirtualKeyboard::keyPressEvent(), ViewScheduled::keyPressEvent(), ViewScheduleDiff::keyPressEvent(), VideoTree::keyPressEvent(), VideoSelector::keyPressEvent(), VideoSelected::keyPressEvent(), VideoManager::keyPressEvent(), VideoGallery::keyPressEvent(), VideoFilterDialog::keyPressEvent(), VideoBrowser::keyPressEvent(), UIKeyboardType::keyPressEvent(), TitleDialog::keyPressEvent(), ThumbFinder::keyPressEvent(), StatusBox::keyPressEvent(), RecOptDialog::keyPressEvent(), SmartPLDateDialog::keyPressEvent(), SmartPLOrderByDialog::keyPressEvent(), SmartPlaylistDialog::keyPressEvent(), SingleView::keyPressEvent(), RecordingSelector::keyPressEvent(), ProgramRecPriority::keyPressEvent(), ProgLister::keyPressEvent(), ProgFinder::keyPressEvent(), ProgDetails::keyPressEvent(), PreviousList::keyPressEvent(), PlaybackBoxMusic::keyPressEvent(), PlaybackBox::keyPressEvent(), PhoneUIBox::keyPressEvent(), MythMultiPasswordDialog::keyPressEvent(), MythWizard::keyPressEvent(), MythListBox::keyPressEvent(), MythListView::keyPressEvent(), MythPushButton::keyPressEvent(), MythTable::keyPressEvent(), MythRemoteLineEdit::keyPressEvent(), MythLineEdit::keyPressEvent(), MythSlider::keyPressEvent(), MythRadioButton::keyPressEvent(), MythCheckBox::keyPressEvent(), MythComboBox::keyPressEvent(), MythNewsConfig::keyPressEvent(), MythNews::keyPressEvent(), MythNewsBusyDialog::keyPressEvent(), MythFlixQueue::keyPressEvent(), MythFlixConfig::keyPressEvent(), MythFlix::keyPressEvent(), MythScrollDialog::keyPressEvent(), MythImageFileDialog::keyPressEvent(), MythSearchDialog::keyPressEvent(), MythPasswordDialog::keyPressEvent(), MythProgressDialog::keyPressEvent(), MythPopupBox::keyPressEvent(), MythDialog::keyPressEvent(), MythControls::keyPressEvent(), ConfigurationDialogWidget::keyPressEvent(), MythburnWizard::keyPressEvent(), MythAppearance::keyPressEvent(), MoviesUI::keyPressEvent(), MiniPlayer::keyPressEvent(), LogViewer::keyPressEvent(), ImportNativeWizard::keyPressEvent(), ImportCoverArtDialog::keyPressEvent(), ImportMusicDialog::keyPressEvent(), IconView::keyPressEvent(), GuideGrid::keyPressEvent(), GLSingleView::keyPressEvent(), GameTree::keyPressEvent(), FileSelector::keyPressEvent(), FileAssocDialog::keyPressEvent(), ExportNativeWizard::keyPressEvent(), EditMetadataDialog::keyPressEvent(), DVDRipBox::keyPressEvent(), DirectoryFinder::keyPressEvent(), DatabaseBox::keyPressEvent(), ChannelRecPriority::keyPressEvent(), RipStatus::keyPressEvent(), Ripper::keyPressEvent(), VideoDialog::loadWindow(), RecOptDialog::LoadWindow(), ImportMusicDialog::locationPressed(), LircEventLock::lock(), JoystickMenuEventLock::lock(), PhoneUIBox::LoopbackButtonPushed(), FileAssocDialog::makeNewExtension(), MediaMonitor::mediaStatusChanged(), VideoSourceEditor::menu(), CaptureCardEditor::menu(), TransportListEditor::Menu(), MythGamePlayerEditor::menu(), ChannelEditor::menu(), PhoneUIBox::menuHistorySave(), ImportIconsWizard::menuSelection(), myth_system(), MythImageFileDialog::MythImageFileDialog(), mythplugin_config(), mythplugin_run(), MythThemedDialog::MythThemedDialog(), SmartPlaylistDialog::newPressed(), MusicPlayer::nextAuto(), ImportNativeWizard::nextPressed(), InfoDialog::numberPress(), FileSelector::OKPressed(), mythvideo_videomanager::VideoManagerImp::OnPosterDownloadTimeout(), StorageGroupListEditor::open(), StorageGroupEditor::open(), RecordingProfileEditor::open(), PlayGroupEditor::open(), SmartPlaylistEditor::orderByClicked(), MythThemedMenuPrivate::parseMenu(), PhoneUI(), PlaybackBox::PlaybackBox(), playDVD(), ZMEvents::playPressed(), playVCD(), PlayVideo(), VideoTree::playVideo(), VideoDialog::playVideo(), MythNews::playVideo(), MythRemoteLineEdit::popupVirtualKeyboard(), MythLineEdit::popupVirtualKeyboard(), MythComboBox::popupVirtualKeyboard(), ProgLister::powerEdit(), PreviousList::PreviousList(), NetworkControl::processJump(), NetworkControl::processKey(), TV::ProcessKeypress(), NetworkControl::processPlay(), ProgLister::ProgLister(), ProgramRecPriority::ProgramRecPriority(), VideoScannerImp::promptForRemoval(), GameHandler::promptForRemoval(), TV::PromptRecGroupPassword(), queue(), RecOptDialog::RecOptDialog(), UIRichTextType::refreshImage(), NuppelVideoPlayer::ReinitVideo(), Ripper::reject(), reloadTheme(), PreviousList::removalDialog(), ViewScheduled::remove(), ProgramRecPriority::remove(), ProgLister::remove(), GuideGrid::remove(), ResetScreensaver(), MythControls::ResolveConflict(), RestoreScreensaver(), run(), GuideGrid::Run(), runBurnDVD(), runCreateArchive(), runCreateDVD(), runFileSelector(), runGames(), runImportVideo(), runMenu(), runMovies(), runNews(), PlaybackBox::RunPlaybackBox(), ScheduledRecording::runPrevList(), RunProgramFind(), runRecordingSelector(), ScheduledRecording::runRuleList(), MythburnWizard::runScript(), ExportNativeWizard::runScript(), runShowLog(), runTestDVD(), ScheduledRecording::runTitleList(), DeviceTree::RunTypeDialog(), runVideoSelector(), ViewScheduled::RunViewScheduled(), runWeather(), runZMConsole(), runZMEventView(), runZMLiveView(), XMLTV_generic_config::save(), EditMetadataDialog::saveAll(), ScreenSetup::saveData(), EditMetadataDialog::saveToFile(), ScanWizardScanner::Scan(), MediaMonitor::selectDrivePopup(), PlaybackBox::setGroupFilter(), ScanWizard::SetPage(), IconView::SetupMediaMonitor(), Weather::setupPage(), Weather::setupScreens(), MoviesUI::showAbout(), PlaybackBox::showActionPopup(), PlaybackBox::showAvailablePopup(), SmartPlaylistEditor::showCategoryPopup(), PlaybackBox::showDeletePopup(), ProgramInfo::showDetails(), PlaybackBoxMusic::showEditMetadataDialog(), MythburnWizard::showEditMetadataDialog(), ImportMusicDialog::showEditMetadataDialog(), Ripper::showEditMetadataDialog(), mythvideo_videomanager::ExecuteExternalCommand::ShowError(), PlaybackBox::showFileNotFoundActionPopup(), GameTreeItem::showGameInfo(), PlaybackBox::showIconHelp(), ImportMusicDialog::showImportCoverArtDialog(), PlaybackBox::showJobPopup(), SmartPLCriteriaRow::showList(), ImportNativeWizard::showList(), EditMetadataDialog::showList(), Ripper::showList(), ScreenSetup::showLocationPopup(), ZMEvents::showMenu(), VideoSelector::showMenu(), ThumbFinder::showMenu(), RecordingSelector::showMenu(), PlaybackBoxMusic::showMenu(), PlaybackBox::showMenu(), MythburnWizard::showMenu(), MoviesUI::showMenu(), LogViewer::showMenu(), ImportMusicDialog::showMenu(), ExportNativeWizard::showMenu(), EditMetadataDialog::showMenu(), MusicPlayer::showMiniPlayer(), SRRecGroup::showNewRecGroup(), TV::ShowNoRecorderDialog(), ProgramInfo::ShowNotRecordingDialog(), PlaybackBox::showPlayFromPopup(), PlaybackBox::showPlaylistJobPopup(), PlaybackBox::showPlaylistPopup(), WelcomeDialog::showPopup(), ProgramInfo::ShowRecordingDialog(), PlaybackBox::showRecordingPopup(), SmartPlaylistEditor::showResultsClicked(), EditMetadataDialog::showSaveMenu(), PlaybackBoxMusic::showSearchDialog(), PlaybackBoxMusic::showSmartPlaylistDialog(), PhoneUIBox::showStatistics(), showStatus(), PlaybackBox::showStoragePopup(), PlaybackBox::showTranscodingProfiles(), ScreenSetup::showUnitsPopup(), MusicPlayerSettings::showVisEditor(), showWarningDialog(), WelcomeDialog::shutdownNow(), Bookmarks::slotBookmarksViewExecuted(), VideoTree::slotDoFilter(), VideoDialog::slotDoFilter(), MythFlixQueue::slotMoveToQueue(), MythNews::slotViewArticle(), VideoTree::slotViewCast(), VideoDialog::slotViewCast(), VideoTree::slotViewPlot(), VideoDialog::slotViewPlot(), startChannelRecPriorities(), startCustomEdit(), startCustomPriority(), startDatabaseTree(), startDelete(), startDVDRipper(), startImport(), startManaged(), startManual(), startManualSchedule(), startPlayback(), NuppelVideoPlayer::StartPlaying(), startPrevious(), startProgramRecPriorities(), startRipper(), Ripper::startRipper(), Ripper::startScanCD(), startSearchCategory(), startSearchChannel(), startSearchKeyword(), startSearchMovie(), startSearchNew(), startSearchPeople(), startSearchPower(), startSearchStored(), startSearchTime(), startSearchTitle(), TV::StartTV(), startWebcamSettings(), ViewScheduleDiff::statusDialog(), CustomEdit::storeClicked(), ImportIconsWizard::submit(), CustomEdit::testClicked(), TestPopupVersion(), ScheduledRecording::testRecording(), CustomPriority::testSchedule(), MainVisual::timeout(), OpenGLVideoSync::TryInit(), LircEventLock::unlock(), JoystickMenuEventLock::unlock(), ViewScheduled::upcoming(), ViewScheduleDiff::upcoming(), ProgramRecPriority::upcoming(), ProgLister::upcoming(), ProgFinder::upcoming(), PreviousList::upcoming(), PlaybackBox::upcoming(), GuideGrid::upcoming(), ChannelRecPriority::upcoming(), MoviesUI::updateMovieTimes(), VideoSelected::updatePlayWait(), VideoCallback(), ViewScheduleDiff::ViewScheduleDiff(), TitleDialog::viewTitle(), WeatherCallback(), WebcamSettingsBox::WebcamSettingsBox(), and TV::~TV().

int MythContext::PromptForSchemaUpgrade ( const QString &  dbver,
const QString &  current,
const QString &  backupResult 
)

Try to prevent silent, automatic database upgrades.

Returns:
-1 to use the existing schema, 0 to exit, 1 to upgrade.
The GUI prompts have no defaults, so that nothing dangerous will happen if the user hits return a few times. Hopefully this will force users to stop and think? Similarly, the shell command prompting requires an explicit "yes". Non-interactive shells default to old behaviour (upgrading)

Definition at line 3510 of file mythcontext.cpp.

Referenced by UpgradeTVDatabaseSchema().

bool MythContext::TestPopupVersion ( const QString &  name,
const QString &  libversion,
const QString &  pluginversion 
)

Definition at line 3732 of file mythcontext.cpp.

Referenced by mythplugin_init().

void MythContext::SetDisableLibraryPopup ( bool  check  ) 

Definition at line 3756 of file mythcontext.cpp.

Referenced by MythPluginManager::MythPluginManager().

void MythContext::SetPluginManager ( MythPluginManager pmanager  ) 

Definition at line 3761 of file mythcontext.cpp.

Referenced by main().

MythPluginManager * MythContext::getPluginManager ( void   ) 

Definition at line 3766 of file mythcontext.cpp.

Referenced by MythThemedMenuPrivate::handleAction().

bool MythContext::CheckProtoVersion ( MythSocket socket  ) 

Definition at line 3359 of file mythcontext.cpp.

Referenced by ConnectServer(), and RemoteEncoder::openControlSocket().

void MythContext::DisableScreensaver ( void   ) 

void MythContext::RestoreScreensaver ( void   ) 

void MythContext::ResetScreensaver ( void   ) 

Definition at line 3784 of file mythcontext.cpp.

Referenced by MythMainWindow::customEvent().

void MythContext::DoDisableScreensaver ( void   ) 

void MythContext::DoRestoreScreensaver ( void   ) 

void MythContext::DoResetScreensaver ( void   ) 

Definition at line 3808 of file mythcontext.cpp.

Referenced by MythMainWindow::customEvent().

bool MythContext::GetScreensaverEnabled ( void   ) 

Definition at line 3817 of file mythcontext.cpp.

bool MythContext::GetScreenIsAsleep ( void   ) 

Definition at line 4013 of file mythcontext.cpp.

Referenced by MythMainWindow::customEvent().

void MythContext::addPrivRequest ( MythPrivRequest::Type  t,
void *  data 
)

Definition at line 3918 of file mythcontext.cpp.

Referenced by main(), and NuppelVideoPlayer::StartPlaying().

void MythContext::waitPrivRequest (  )  const

Definition at line 3925 of file mythcontext.cpp.

Referenced by run_priv_thread().

MythPrivRequest MythContext::popPrivRequest (  ) 

Definition at line 3933 of file mythcontext.cpp.

Referenced by run_priv_thread().

void MythContext::addCurrentLocation ( QString  location  ) 

QString MythContext::removeCurrentLocation ( void   ) 

QString MythContext::getCurrentLocation ( void   ) 

void MythContext::dispatch ( MythEvent event  ) 

Dispatch an event to all listeners.

Makes a copy of the event on the heap by calling MythEvent::clone and dispatches is by calling QApplication::postEvent.

Parameters:
event a MythEvent to dispatch.

Reimplemented from MythObservable.

Definition at line 4032 of file mythcontext.cpp.

Referenced by LiveTVChain::BroadcastUpdate(), MainServer::connectionClosed(), MainServer::customEvent(), MainServer::DoDeleteInDB(), MainServer::DoDeleteThread(), JobQueue::DoFlagCommercialsThread(), MainServer::DoHandleDeleteRecording(), MainServer::DoHandleUndeleteRecording(), JobQueue::DoTranscodeThread(), JobQueue::DoUserJobThread(), TVRec::FinishedRecording(), TVRec::GetProgramRingBufferForLiveTV(), MainServer::HandleAnnounce(), MainServer::HandleMessage(), TVRec::HandlePendingRecordings(), SignalMonitor::MonitorLoop(), TVRec::NotifySchedulerOfRecording(), JobQueue::PauseJob(), TV::ProcessNetworkControlCommand(), PlaybackBox::processNetworkControlCommand(), NetworkControl::processPlay(), NetworkControl::processQuery(), MainServer::ProcessRequestWork(), readyRead(), JobQueue::RestartJob(), JobQueue::ResumeJob(), Scheduler::RunScheduler(), TVRec::RunTV(), NetworkControl::saveScreenshot(), AutoExpire::SendDeleteMessages(), PlaybackSock::SendReceiveStringList(), SendReceiveStringList(), TVRec::SetLiveRecording(), Scheduler::ShutdownServer(), ScheduledRecording::signalChange(), TVRec::StartedRecording(), TVRec::StartRecording(), JobQueue::StopJob(), TVRec::TeardownRecorder(), MHIContext::TuneTo(), TVRec::TuningFrequency(), and TVRec::TuningNewRecorder().

void MythContext::dispatchNow ( MythEvent event  ) 

Dispatch an event to all listeners.

See dispatch.

Note:
This uses QApplication::sendEvent, which is blocking. It's preferred to use dispatch instead.
Parameters:
event a MythEvent to dispatch.

Reimplemented from MythObservable.

Definition at line 4040 of file mythcontext.cpp.

Referenced by AutoExpire::ExpireEpisodesOverMax(), sendPlaybackEnd(), and sendPlaybackStart().

void MythContext::sendPlaybackStart ( void   ) 

Definition at line 4048 of file mythcontext.cpp.

Referenced by playDVD(), playVCD(), PlayVideo(), MythNews::playVideo(), and TV::StartTV().

void MythContext::sendPlaybackEnd ( void   ) 

Definition at line 4054 of file mythcontext.cpp.

Referenced by playDVD(), playVCD(), PlayVideo(), MythNews::playVideo(), and TV::StartTV().

void MythContext::SetX11Display ( const QString &  display  )  [static]

This needs to be set before MythContext is initialized so that the MythContext::Init() can detect Xinerama setups.

Definition at line 4022 of file mythcontext.cpp.

Referenced by main().

QString MythContext::GetX11Display ( void   )  [static]

void MythContext::SetPalette ( QWidget *  widget  )  [private]

Definition at line 2864 of file mythcontext.cpp.

Referenced by ThemeWidget().

void MythContext::InitializeScreenSettings ( void   )  [private]

void MythContext::ClearOldImageCache ( void   )  [private]

Definition at line 2083 of file mythcontext.cpp.

Referenced by UpdateImageCache().

void MythContext::CacheThemeImages ( void   )  [private]

Definition at line 2185 of file mythcontext.cpp.

Referenced by UpdateImageCache().

void MythContext::CacheThemeImagesDirectory ( const QString &  dirname,
const QString &  subdirname = "" 
) [private]

Definition at line 2197 of file mythcontext.cpp.

Referenced by CacheThemeImages().

void MythContext::RemoveCacheDir ( const QString &  dirname  )  [private]

Definition at line 2144 of file mythcontext.cpp.

Referenced by ClearOldImageCache().

void MythContext::connected ( MythSocket sock  )  [private, virtual]

Implements MythSocketCBs.

Definition at line 3409 of file mythcontext.cpp.

void MythContext::connectionClosed ( MythSocket sock  )  [private, virtual]

Implements MythSocketCBs.

Definition at line 3414 of file mythcontext.cpp.

void MythContext::readyRead ( MythSocket sock  )  [private, virtual]

Implements MythSocketCBs.

Definition at line 3319 of file mythcontext.cpp.

void MythContext::connectionFailed ( MythSocket sock  )  [inline, private, virtual]

Implements MythSocketCBs.

Definition at line 346 of file mythcontext.h.


Member Data Documentation

QMutex MythContext::verbose_mutex [static]

Definition at line 330 of file mythcontext.h.

Definition at line 331 of file mythcontext.h.

Referenced by GetX11Display(), and SetX11Display().

Definition at line 349 of file mythcontext.h.

Referenced by Init().

QMutex MythContext::locationLock [private]

Definition at line 351 of file mythcontext.h.

Referenced by addCurrentLocation(), getCurrentLocation(), and removeCurrentLocation().

QValueList<QString> MythContext::currentLocation [private]

Definition at line 352 of file mythcontext.h.

Referenced by addCurrentLocation(), getCurrentLocation(), and removeCurrentLocation().


The documentation for this class was generated from the following files:

Generated on Sat Dec 18 05:16:07 2010 for MythTV by  doxygen 1.5.5