|
MythTV
0.27pre
|
This class contains the runtime context for MythTV. More...
#include <mythcorecontext.h>


Signals | |
| void | TVPlaybackStarted (void) |
| void | TVPlaybackStopped (void) |
| void | TVPlaybackSought (qint64 position) |
| void | TVPlaybackPaused (void) |
| void | TVPlaybackUnpaused (void) |
| void | TVPlaybackAborted (void) |
| void | TVPlaybackAboutToStart (void) |
| void | TVPlaybackPlaying (void) |
Public Member Functions | |
| MythCoreContext (const QString &binversion, QObject *eventHandler) | |
| virtual | ~MythCoreContext () |
| bool | Init (void) |
| void | SetLocalHostname (const QString &hostname) |
| void | SetServerSocket (MythSocket *serverSock) |
| void | SetEventSocket (MythSocket *eventSock) |
| void | SetScheduler (MythScheduler *sched) |
| bool | SafeConnectToMasterServer (bool blockingClient=true, bool openEventSocket=true) |
| bool | ConnectToMasterServer (bool blockingClient=true, bool openEventSocket=true) |
| MythSocket * | ConnectCommandSocket (const QString &hostname, int port, const QString &announcement, bool *proto_mismatch=NULL, bool gui=true, int maxConnTry=-1, int setup_timeout=-1) |
| MythSocket * | ConnectEventSocket (const QString &hostname, int port) |
| bool | SetupCommandSocket (MythSocket *serverSock, const QString &announcement, uint timeout_in_ms, bool &proto_mismatch) |
| bool | CheckProtoVersion (MythSocket *socket, uint timeout_ms=kMythSocketLongTimeout, bool error_dialog_desired=false) |
| QString | GenMythURL (QString host=QString(), QString port=QString(), QString path=QString(), QString storageGroup=QString()) |
| QString | GenMythURL (QString host=QString(), int port=0, QString path=QString(), QString storageGroup=QString()) |
| QString | GetMasterHostPrefix (const QString &storageGroup=QString(), const QString &path=QString()) |
| QString | GetMasterHostName (void) |
| QString | GetHostName (void) |
| QString | GetFilePrefix (void) |
| bool | IsConnectedToMaster (void) |
| void | SetBackend (bool backend) |
| bool | IsBackend (void) const |
| 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 | IsMasterHost (const QString &host) |
| bool | IsMasterBackend (void) |
| is this the actual MBE process | |
| bool | BackendIsRunning (void) |
| a backend process is running on this host | |
| bool | IsThisHost (const QString &addr) |
| bool | IsThisHost (const QString &addr, const QString &host) |
| void | BlockShutdown (void) |
| void | AllowShutdown (void) |
| bool | IsBlockingClient (void) const |
| is this client blocking shutdown | |
| bool | SendReceiveStringList (QStringList &strlist, bool quicTimeout=false, bool block=true) |
| void | SendMessage (const QString &message) |
| void | SendEvent (const MythEvent &event) |
| void | SendSystemEvent (const QString &msg) |
| void | SendHostSystemEvent (const QString &msg, const QString &hostname, const QString &args) |
| void | SetGUIObject (QObject *gui) |
| QObject * | GetGUIObject (void) |
| bool | HasGUI (void) const |
| bool | IsUIThread (void) |
| MythDB * | GetDB (void) |
| MDBManager * | GetDBManager (void) |
| MythScheduler * | GetScheduler (void) |
| bool | IsDatabaseIgnored (void) const |
| /brief Returns true if database is being ignored. | |
| DatabaseParams | GetDatabaseParams (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, double &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) |
| QString | GetBackendServerIP (void) |
| QString | GetBackendServerIP (const QString &host) |
| void | ClearSettingsCache (const QString &myKey=QString("")) |
| void | ActivateSettingsCache (bool activate=true) |
| void | OverrideSettingForSession (const QString &key, const QString &value) |
| void | ClearOverrideSettingForSession (const QString &key) |
| void | dispatch (const MythEvent &event) |
| Dispatch an event to all listeners. | |
| void | dispatchNow (const MythEvent &event) |
| Dispatch an event to all listeners. | |
| void | InitLocale (void) |
| void | ReInitLocale (void) |
| MythLocale * | GetLocale (void) const |
| const QLocale | GetQLocale (void) |
| void | SaveLocaleDefaults (void) |
| QString | GetLanguage (void) |
| Returns two character ISO-639 language descriptor for UI language. | |
| QString | GetLanguageAndVariant (void) |
| Returns the user-set language and variant. | |
| void | ResetLanguage (void) |
| void | RegisterForPlayback (QObject *sender, const char *method) |
| Register sender for TVPlaybackAboutToStart signal. | |
| void | UnregisterForPlayback (QObject *sender) |
| Unregister sender from being called when TVPlaybackAboutToStart signal is emitted. | |
| void | WantingPlayback (QObject *sender) |
| All the objects that have registered using MythCoreContext::RegisterForPlayback but sender will be called. | |
| bool | TestPluginVersion (const QString &name, const QString &libversion, const QString &pluginversion) |
| void | SetPluginManager (MythPluginManager *pmanager) |
| MythPluginManager * | GetPluginManager (void) |
| void | WaitUntilSignals (const char *signal1,...) |
| Wait until either of the provided signals have been received. | |
| void | emitTVPlaybackStarted (void) |
| void | emitTVPlaybackStopped (void) |
| void | emitTVPlaybackSought (qint64 position) |
| void | emitTVPlaybackPaused (void) |
| void | emitTVPlaybackUnpaused (void) |
| void | emitTVPlaybackAborted (void) |
| void | emitTVPlaybackPlaying (void) |
Public Member Functions inherited from MythObservable | |
| MythObservable () | |
| virtual | ~MythObservable () |
| void | addListener (QObject *listener) |
| Add a listener to the observable. | |
| void | removeListener (QObject *listener) |
| Remove a listener to the observable. | |
| bool | hasListeners (void) |
Public Member Functions inherited from MythSocketCBs | |
| virtual | ~MythSocketCBs () |
| virtual void | connected (MythSocket *)=0 |
| virtual void | error (MythSocket *, int) |
| virtual void | readyRead (MythSocket *)=0 |
| virtual void | connectionFailed (MythSocket *)=0 |
| virtual void | connectionClosed (MythSocket *)=0 |
Private Member Functions | |
| void | connected (MythSocket *sock) |
| void | connectionFailed (MythSocket *sock) |
| void | connectionClosed (MythSocket *sock) |
| void | readyRead (MythSocket *sock) |
Private Attributes | |
| MythCoreContextPrivate * | d |
Additional Inherited Members | |
Protected Attributes inherited from MythObservable | |
| QMutex * | m_lock |
| QSet< QObject * > | m_listeners |
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 50 of file mythcorecontext.h.
| MythCoreContext::MythCoreContext | ( | const QString & | binversion, |
| QObject * | eventHandler | ||
| ) |
Definition at line 187 of file mythcorecontext.cpp.
|
virtual |
Definition at line 252 of file mythcorecontext.cpp.
Definition at line 194 of file mythcorecontext.cpp.
Referenced by MythContext::MythContext().
| void MythCoreContext::SetLocalHostname | ( | const QString & | hostname | ) |
Definition at line 1237 of file mythcorecontext.cpp.
Referenced by MythContextPrivate::LoadDatabaseSettings().
| void MythCoreContext::SetServerSocket | ( | MythSocket * | serverSock | ) |
| void MythCoreContext::SetEventSocket | ( | MythSocket * | eventSock | ) |
| void MythCoreContext::SetScheduler | ( | MythScheduler * | sched | ) |
Definition at line 1348 of file mythcorecontext.cpp.
Referenced by cleanup(), and run_backend().
| bool MythCoreContext::SafeConnectToMasterServer | ( | bool | blockingClient = true, |
| bool | openEventSocket = true |
||
| ) |
Definition at line 298 of file mythcorecontext.cpp.
Referenced by IdleScreen::CheckConnectionToServer(), WelcomeDialog::checkConnectionToServer(), and Reconnect::run().
| bool MythCoreContext::ConnectToMasterServer | ( | bool | blockingClient = true, |
| bool | openEventSocket = true |
||
| ) |
Definition at line 312 of file mythcorecontext.cpp.
Referenced by StartPrompter::backendRunningPrompt(), LCDProcClient::checkConnections(), ClearSettingsCache(), FlagCommercials(), GetMasterHostPrefix(), handle_command(), isRecording(), main(), RawSendEvent(), Reschedule(), SafeConnectToMasterServer(), ScanVideos(), SendReceiveStringList(), setScheduledWakeupTime(), and LCDProcClient::updateRecordingList().
| MythSocket * MythCoreContext::ConnectCommandSocket | ( | const QString & | hostname, |
| int | port, | ||
| const QString & | announcement, | ||
| bool * | proto_mismatch = NULL, |
||
| bool | gui = true, |
||
| int | maxConnTry = -1, |
||
| int | setup_timeout = -1 |
||
| ) |
Definition at line 377 of file mythcorecontext.cpp.
Referenced by ConnectToMasterServer(), RemoteGetFileList(), and RemoteEncoder::Setup().
| MythSocket * MythCoreContext::ConnectEventSocket | ( | const QString & | hostname, |
| int | port | ||
| ) |
Definition at line 492 of file mythcorecontext.cpp.
Referenced by ConnectToMasterServer().
| bool MythCoreContext::SetupCommandSocket | ( | MythSocket * | serverSock, |
| const QString & | announcement, | ||
| uint | timeout_in_ms, | ||
| bool & | proto_mismatch | ||
| ) |
Definition at line 258 of file mythcorecontext.cpp.
Referenced by ConnectCommandSocket().
| bool MythCoreContext::CheckProtoVersion | ( | MythSocket * | socket, |
| uint | timeout_ms = kMythSocketLongTimeout, |
||
| bool | error_dialog_desired = false |
||
| ) |
Definition at line 1174 of file mythcorecontext.cpp.
Referenced by connect_to_master(), RemoteFile::openSocket(), and SetupCommandSocket().
| QString MythCoreContext::GenMythURL | ( | QString | host = QString(), |
| QString | port = QString(), |
||
| QString | path = QString(), |
||
| QString | storageGroup = QString() |
||
| ) |
Definition at line 665 of file mythcorecontext.cpp.
Referenced by Content::AddLiveStream(), ThemeUpdateChecker::checkForUpdate(), MainServer::DeleteRecordedFiles(), MusicMetadata::Filename(), findIcon(), AlbumArtImages::findImages(), generate_file_url(), generate_myth_url(), StorageGroup::getGroupDirs(), GetMasterHostPrefix(), ProgramInfo::GetPlaybackURL(), getStorageGroupURL(), MainServer::HandleFillProgramInfo(), MainServer::HandleQueryRecordings(), MainServer::HandleSGFileQuery(), NativeArchive::importRecording(), HttpConfig::ProcessRequest(), VideoScannerThread::SetDirs(), MythUIFileBrowser::SetPath(), TVRec::SpawnLiveTV(), ThemeUpdateChecker::ThemeUpdateChecker(), and transUnlink().
| QString MythCoreContext::GenMythURL | ( | QString | host = QString(), |
| int | port = 0, |
||
| QString | path = QString(), |
||
| QString | storageGroup = QString() |
||
| ) |
Definition at line 670 of file mythcorecontext.cpp.
| QString MythCoreContext::GetMasterHostPrefix | ( | const QString & | storageGroup = QString(), |
| const QString & | path = QString() |
||
| ) |
Definition at line 710 of file mythcorecontext.cpp.
Referenced by FileServerHandler::HandleDownloadFile(), MainServer::HandleDownloadFile(), OSD::SetText(), GuideGrid::updateChannels(), and GuideGrid::updateInfo().
| QString MythCoreContext::GetMasterHostName | ( | void | ) |
Definition at line 743 of file mythcorecontext.cpp.
Referenced by LookerUpper::customEvent(), MetadataOptions::customEvent(), OutboundRequestHandler::DoConnectToMaster(), NetSearch::doDownloadAndPlay(), NetTree::doDownloadAndPlay(), HttpStatus::FillStatusXML(), MetadataOptions::FindNetArt(), MetadataOptions::HandleDownloadedImages(), MetadataFactory::Lookup(), MetadataOptions::OnImageSearchListSelection(), MetadataOptions::PerformQuery(), PlaybackBox::PlaybackBox(), MythFrontendStatus::ProcessRequest(), MetadataOptions::SelectLocalBanner(), MetadataOptions::SelectLocalCoverart(), MetadataOptions::SelectLocalFanart(), VideoScannerThread::SetDirs(), VideoSetupWizard::testHDVideo(), and VideoSetupWizard::testSDVideo().
| QString MythCoreContext::GetHostName | ( | void | ) |
Definition at line 777 of file mythcorecontext.cpp.
Referenced by Content::AddLiveStream(), Content::AddRecordingLiveStream(), HTTPLiveStream::AddStream(), Content::AddVideoLiveStream(), ControlRequestHandler::AnnounceSocket(), MainServer::BackendQueryDiskSpace(), BackendSettings::BackendSettings(), PlaybackProfileConfigs::btnPress(), Playlist::changed(), StorageGroup::CheckAllStorageGroupDirs(), ChannelBase::CheckChannel(), checkImageStoragePaths(), checkStoragePaths(), CleanupMyOldInUsePrograms(), CleanupTask::CleanupOldRecordings(), clearAllKeys(), MythControls::Create(), MythSystemEventHandler::customEvent(), BrowserApi::customEvent(), MainServer::customEvent(), NetworkControl::customEvent(), MythWebView::customEvent(), HouseKeeper::customEvent(), MusicPlayer::customEvent(), MainServer::DeleteRecordedFiles(), ProgramInfo::DiscoverRecordingDirectory(), StorageGroupEditor::doDelete(), StorageGroupListEditor::doDelete(), MainServer::DoHandleDeleteRecording(), MainServer::DoHandleStopRecording(), Content::DownloadFile(), CaptureCardEditor::edit(), ExpertSettingsEditor::ExpertSettingsEditor(), AutoExpire::ExpireRecordings(), Scheduler::FillRecordingDir(), CaptureCard::fillSelections(), HttpStatus::FillStatusXML(), findAllDBSearchGrabbers(), findAllDBTreeGrabbersByHost(), SourceManager::findScripts(), SourceManager::findScriptsDB(), findSearchGrabberByCommand(), findSearchGrabberInDB(), findTreeGrabberByCommand(), findTreeGrabberInDB(), get_cardtype(), MainServer::GetActiveBackends(), DBUtil::GetBackupDirectory(), CardUtil::GetCardIDs(), getDBParamters(), Dvr::GetEncoderList(), Content::GetHash(), Myth::GetHostName(), BrowserApi::GetMetadata(), MetadataDownload::getMXMLPath(), Scheduler::GetNextLiveTVDir(), MetadataDownload::getNFOPath(), ProgramInfo::GetPlaybackURL(), Content::GetPreviewImage(), TVRec::GetProgramRingBufferForLiveTV(), Content::GetRecording(), LogViewer::getSetting(), CardUtil::GetVideoDevices(), BrowserApi::GetVolume(), handle_command(), FileServerHandler::HandleAnnounce(), MainServer::HandleAnnounce(), MainServer::HandleCheckRecordingActive(), FileServerHandler::HandleDownloadFile(), MainServer::HandleDownloadFile(), FileServerHandler::HandleFileQuery(), MainServer::HandleFillProgramInfo(), MainServer::HandleGenPreviewPixmap(), FileServerHandler::HandleGetFileList(), MainServer::HandleGetFreeRecorder(), MainServer::HandleIsActiveBackendQuery(), MainServer::HandleLockTuner(), MainServer::HandlePixmapGetIfModified(), MainServer::HandlePixmapLastModified(), MainServer::HandleQueryCheckFile(), FileServerHandler::HandleQueryFileExists(), MainServer::HandleQueryFileExists(), FileServerHandler::HandleQueryFileHash(), MainServer::HandleQueryFileHash(), BaseRequestHandler::HandleQueryHostname(), MainServer::HandleQueryHostname(), MainServer::HandleQueryRecordings(), MainServer::HandleSGFileQuery(), MainServer::HandleSGGetFileList(), HardwareProfile::HardwareProfile(), helloID(), HostnameSetting::HostnameSetting(), HTTPLiveStream::HTTPLiveStream(), MediaServer::Init(), MythUIHelperPrivate::Init(), init_jobs(), VideoOutput::InitDisplayMeasurements(), Frontend::InitialiseActions(), insertGrabberInDB(), CardUtil::IsCardTypePresent(), IsFrontendOnly(), IsMasterHost(), IsThisHost(), StorageGroupEditor::Load(), InputSelector::Load(), StorageGroupListEditor::Load(), VideoSourceSelector::Load(), CaptureCardEditor::Load(), CardInputEditor::Load(), RecordingProfile::loadByType(), VideoSetupWizard::loadData(), ScreenSetup::loadData(), SourceSetup::loadData(), LoadFromRecorded(), main(), MainServer::MainServer(), ProgramInfo::MarkAsInUse(), MythPlayer::MythPlayer(), StorageGroupEditor::open(), BrowserApi::Pause(), BrowserApi::Play(), PlaybackProfileConfig::PlaybackProfileConfig(), PlaybackProfileConfigs::PlaybackProfileConfigs(), PlaybackSock::PlaybackSock(), BrowserApi::PlayFile(), BrowserApi::PlayTrack(), BrowserApi::PlayURL(), VideoSetupWizard::playVideoTest(), DatabaseLogger::prepare(), WeatherSource::ProbeScript(), NetworkControl::processPlay(), HttpConfig::ProcessRequest(), MythFrontendStatus::ProcessRequest(), FileServerHandler::QueryFileSystems(), HouseKeeperTask::QueryLastRun(), RebuildSeekTable(), MainServer::reconnectTimeout(), JobQueue::RecoverQueue(), MythRAOPDevice::RegisterForBonjour(), RemoteGetFileList(), removeGrabberFromDB(), MythDownloadManager::run(), SystemEventThread::run(), PreviewGenerator::Run(), MetadataImageDownload::run(), PreviewGenerator::RunReal(), VideoSetupWizard::save(), ScreenSetup::saveData(), ScanVideoDirectory(), SendMythSystemPlayEvent(), sendPlaybackEnd(), sendPlaybackStart(), SendSystemEvent(), SendSystemEvent(), PlayerContext::SetTVChain(), RemoteEncoder::Setup(), Weather::SetupScreens(), SourceManager::setupSources(), setupTVs(), BrowserApi::SetVolume(), TV::ShowOSDPromptDeleteRecording(), MythAirplayServer::Start(), HouseKeeper::Start(), RecordingInfo::StartedRecording(), StatusBox::StatusBox(), BrowserApi::Stop(), MythContextPrivate::TestDBconnection(), ThemeChooser::ThemeChooser(), HouseKeeperTask::UpdateLastRun(), VideoDisplayProfile::VideoDisplayProfile(), and Scheduler::WakeUpSlave().
| QString MythCoreContext::GetFilePrefix | ( | void | ) |
Definition at line 785 of file mythcorecontext.cpp.
Referenced by AutoExpire::ExpireEpisodesOverMax().
Definition at line 537 of file mythcorecontext.cpp.
Referenced by StartPrompter::backendRunningPrompt(), LCDProcClient::checkConnections(), IdleScreen::CheckConnectionToServer(), WelcomeDialog::checkConnectionToServer(), isRecording(), setScheduledWakeupTime(), WelcomeDialog::updateRecordingList(), LCDProcClient::updateRecordingList(), WelcomeDialog::updateScheduledList(), and WelcomeDialog::updateScreen().
Definition at line 592 of file mythcorecontext.cpp.
Referenced by main().
is this process a backend process
Definition at line 597 of file mythcorecontext.cpp.
Referenced by ConnectToMasterServer(), ProgramInfo::DiscoverRecordingDirectory(), IsMasterBackend(), RemoteGetFlags(), RemoteGetState(), RemoteIsBusy(), RemoteRecordPending(), RemoteStopLiveTV(), RemoteStopRecording(), SendEvent(), SendMessage(), and ScheduledRecording::SendReschedule().
is there a frontend, but no backend, running on this host
Definition at line 647 of file mythcorecontext.cpp.
Referenced by IdleScreen::customEvent(), WelcomeDialog::customEvent(), ExitPrompter::handleExit(), and WelcomeDialog::shutdownNow().
is this the same host as the master
Definition at line 602 of file mythcorecontext.cpp.
Referenced by checkStoragePaths(), StorageGroupListEditor::doDelete(), GetMasterHostPrefix(), StartPrompter::handleStart(), IsMasterBackend(), StorageGroupListEditor::Load(), ExitPrompter::masterPromptExit(), run_backend(), RawSettingsEditor::Save(), ScanVideoDirectory(), StorageGroupEditor::StorageGroupEditor(), StorageGroupListEditor::StorageGroupListEditor(), and VideoMetadata::VideoFileHash().
| bool MythCoreContext::IsMasterHost | ( | const QString & | host | ) |
Definition at line 608 of file mythcorecontext.cpp.
is this the actual MBE process
Definition at line 613 of file mythcorecontext.cpp.
Referenced by ConnectToMasterServer(), MessageHandler::customEvent(), HttpStatus::FillStatusXML(), GetMasterHostName(), RemoteGetFileList(), and run_backend().
a backend process is running on this host
Definition at line 618 of file mythcorecontext.cpp.
Referenced by StartPrompter::handleStart(), and RawSettingsEditor::Save().
| bool MythCoreContext::IsThisHost | ( | const QString & | addr | ) |
Definition at line 634 of file mythcorecontext.cpp.
Referenced by MainServer::GetMediaServerByHostname(), MetadataDownload::getMXMLPath(), MetadataDownload::getNFOPath(), MainServer::GetSlaveByHostname(), FileServerHandler::HandleFileQuery(), FileServerHandler::HandleGetFileList(), IsMasterHost(), and MetadataImageDownload::run().
| bool MythCoreContext::IsThisHost | ( | const QString & | addr, |
| const QString & | host | ||
| ) |
Definition at line 639 of file mythcorecontext.cpp.
Definition at line 543 of file mythcorecontext.cpp.
Referenced by MythMainWindow::ExitStandby(), and JobQueue::ProcessQueue().
Definition at line 565 of file mythcorecontext.cpp.
Referenced by MythMainWindow::EnterStandby(), and JobQueue::ProcessQueue().
is this client blocking shutdown
Definition at line 587 of file mythcorecontext.cpp.
Referenced by JobQueue::ProcessQueue().
| bool MythCoreContext::SendReceiveStringList | ( | QStringList & | strlist, |
| bool | quicTimeout = false, |
||
| bool | block = true |
||
| ) |
Definition at line 947 of file mythcorecontext.cpp.
Referenced by RemoteFile::DeleteFile(), StatusBox::doTunerStatus(), downloadRemoteFile(), exec_program_tv_cb(), RemoteFile::Exists(), RemoteFile::GetFileHash(), GetMasterHostName(), MythUIFileBrowser::GetRemoteFileList(), handle_command(), IsFrontendOnly(), RemoteFile::LastModified(), ProgramInfo::LoadFromScheduler(), mythdir_opendir(), RawSendEvent(), RemoteCancelNextRecording(), RemoteCheckFile(), RemoteCheckForRecording(), RemoteDeleteRecording(), RemoteFillProgramInfo(), RemoteGetActiveBackends(), RemoteGetExistingRecorder(), RemoteGetFileList(), RemoteGetFlags(), RemoteGetFreeRecorderCount(), FileSystemInfo::RemoteGetInfo(), RemoteGetLoad(), RemoteGetMemStats(), RemoteGetPreviewIfModified(), RemoteGetPreviewLastModified(), RemoteGetRecordingList(), RemoteGetRecordingMask(), RemoteGetRecordingStatus(), RemoteGetState(), RemoteGetUptime(), VideoDialog::RemoteImageCheck(), RemoteIsBusy(), PreviewGenerator::RemotePreviewRun(), RemoteRecordings(), RemoteRecordPending(), RemoteRequestBusyInputID(), RemoteRequestFreeInputList(), RemoteRequestFreeRecorderFromList(), RemoteRequestFreeRecorderList(), RemoteRequestNextFreeRecorder(), RemoteRequestRecorder(), RemoteStopLiveTV(), RemoteStopRecording(), RemoteUndeleteRecording(), SendAsyncMessage::run(), ScanVideos(), ScheduledRecording::SendReschedule(), StatusBox::StatusBox(), and TVMenuCallback().
| void MythCoreContext::SendMessage | ( | const QString & | message | ) |
Definition at line 1079 of file mythcorecontext.cpp.
Referenced by ClearSettingsCache(), commDetectorGotNewCommercialBreakList(), MythSystemEventHandler::customEvent(), TV::customEvent(), DoFlagCommercials(), MythPlayer::EventLoop(), handle_command(), handleSIGUSR1(), TV::HandleStateChange(), WelcomeDialog::keyPressEvent(), main(), SystemEventThread::run(), ProgramInfoUpdater::run(), VideoScannerThread::run(), RawSettingsEditor::Save(), SendSystemEvent(), TVMenuCallback(), and unlockShutdown().
Definition at line 1092 of file mythcorecontext.cpp.
Referenced by MainServer::DoDeleteInDB(), VideoScannerThread::run(), and HouseKeeperTask::UpdateLastRun().
| void MythCoreContext::SendSystemEvent | ( | const QString & | msg | ) |
Definition at line 1106 of file mythcorecontext.cpp.
Referenced by MainServer::connectionClosed(), ThemeChooser::customEvent(), NetworkControl::deleteClient(), MainServer::DoHandleDeleteRecording(), BaseRequestHandler::HandleAnnounce(), MainServer::HandleAnnounce(), Scheduler::HandleReschedule(), MythScreenType::keyPressEvent(), main(), MythScreenType::MythScreenType(), NetworkControl::newConnection(), run_backend(), SendHostSystemEvent(), SendMythSystemPlayEvent(), SendMythSystemRecEvent(), TV::StartTV(), and MythScreenType::~MythScreenType().
| void MythCoreContext::SendHostSystemEvent | ( | const QString & | msg, |
| const QString & | hostname, | ||
| const QString & | args | ||
| ) |
Definition at line 1115 of file mythcorecontext.cpp.
| void MythCoreContext::SetGUIObject | ( | QObject * | gui | ) |
Definition at line 1244 of file mythcorecontext.cpp.
Referenced by MythMainWindow::destroyMainWindow(), and MythMainWindow::getMainWindow().
| QObject * MythCoreContext::GetGUIObject | ( | void | ) |
Definition at line 1254 of file mythcorecontext.cpp.
Referenced by MythSystemLegacy::HandlePostRun(), MythSystemLegacy::HandlePreRun(), and MythSocket::Validate().
Definition at line 1249 of file mythcorecontext.cpp.
Referenced by VideoScanner::doScan(), GameScanner::doScan(), MetadataFactory::OnVideoResult(), MythSystemLegacy::ProcessFlags(), SendReceiveStringList(), VideoMetadataImp::SetTitle(), and VideoScannerThread::VideoScannerThread().
Definition at line 942 of file mythcorecontext.cpp.
Referenced by TVBrowseHelper::BrowseChannel(), TVBrowseHelper::BrowseDispInfo(), TVBrowseHelper::BrowseEnd(), TVBrowseHelper::BrowseStart(), VideoOutputOpenGL::Init(), VideoOutputOpenGLVAAPI::InputChanged(), VideoOutputOpenGL::InputChanged(), TVBrowseHelper::IsBrowsing(), MythSystemLegacy::ProcessFlags(), VideoOutputOpenGL::ProcessFrame(), MDBManager::PurgeIdleConnections(), SendReceiveStringList(), MythMainWindow::SetDrawEnabled(), and MythDB::WriteDelayedSettings().
| MythDB * MythCoreContext::GetDB | ( | void | ) |
Definition at line 1259 of file mythcorecontext.cpp.
Referenced by MythContextPrivate::EnableDBerrors(), MythContextPrivate::Init(), MythContextPrivate::LoadDatabaseSettings(), MythContextPrivate::ResetDatabase(), MythContextPrivate::SaveDatabaseParams(), MythContextPrivate::SilenceDBerrors(), and MythContextPrivate::UPnPconnect().
| MDBManager * MythCoreContext::GetDBManager | ( | void | ) |
Definition at line 806 of file mythcorecontext.cpp.
Referenced by MythContextPrivate::ResetDatabase().
| MythScheduler * MythCoreContext::GetScheduler | ( | void | ) |
Definition at line 1353 of file mythcorecontext.cpp.
Referenced by cleanup(), Dvr::GetFilteredRecordedList(), and ProgramInfo::LoadFromScheduler().
/brief Returns true if database is being ignored.
This was created for some command line only programs which still need MythTV libraries, such as channel scanners, channel change programs, and the off-line commercial flagger.
Definition at line 817 of file mythcorecontext.cpp.
Referenced by MythDVDPlayer::GetBookmark(), MythPlayer::GetBookmark(), PlayerContext::GetFilters(), DeleteMap::IsSaved(), DeleteMap::LoadAutoSaveMap(), DeleteMap::LoadMap(), MythPlayer::OpenFile(), ProgramInfo::ProgramInfo(), ProgramInfo::QueryTotalDuration(), DeleteMap::SaveMap(), PlayerContext::SetPlayingInfo(), and VideoOutput::VideoOutput().
|
inline |
Definition at line 131 of file mythcorecontext.h.
Referenced by DBUtil::CountClients(), DBUtil::CreateTemporaryDBConf(), DBUtil::DoBackup(), doUpgradeTVDatabaseSchema(), and Myth::GetConnectionInfo().
Definition at line 822 of file mythcorecontext.cpp.
Referenced by MythPlayer::AdjustAudioTimecodeOffset(), AirPlayHardwareId(), ThemeUpdateChecker::checkForUpdate(), ThemeChooser::customEvent(), EditAlbumartDialog::customEvent(), MusicPlayer::customEvent(), MusicPlayer::decoderHandlerReady(), HardwareProfile::DeleteProfile(), doBurnDVD(), ParentalLevelChangeCheckerPrivate::DoCheck(), doNativeArchive(), doUpgradeMusicDatabaseSchema(), getTempDirectory(), handleCDMedia(), ProgramRecPriority::keyPressEvent(), MythTranslation::load(), ThemeChooser::Load(), main(), mythplugin_init(), ParentalLevelChangeCheckerPrivate::OnPasswordEntered(), MythPlayer::OpenFile(), PlaybackBox::PlaybackBox(), ThemeChooser::refreshDownloadableThemes(), MythBurn::runScript(), AudioSetupWizard::save(), LanguageSelection::Save(), RawSettingsEditor::Save(), ThemeChooser::saveAndReload(), VideoFilterSettings::saveAsDefault(), DVDThemeSelector::saveConfiguration(), SelectDestination::saveConfiguration(), MusicPlayer::savePosition(), VideoDialog::SavePosition(), VideoColourSpace::SaveValue(), PlaybackBox::saveViewChanges(), VolumeBase::SetCurrentVolume(), PlaybackBox::setGroupFilter(), AudioOutputBase::SetSWVolume(), SubtitleScreen::SetZoom(), ScreenWizard::slotResetSettings(), VisualizationSettings::slotSave(), RatingSettings::slotSave(), ImportSettings::slotSave(), GeneralSettings::slotSave(), MetadataSettings::slotSave(), PlayerSettings::slotSave(), GrabberSettings::slotSave(), BrowserConfig::slotSave(), ScreenWizard::slotSaveSettings(), HardwareProfile::SubmitProfile(), VideoDialog::SwitchLayout(), NetTree::switchView(), ThemeUpdateChecker::ThemeUpdateChecker(), VideoDialog::ToggleBrowseMode(), VideoDialog::ToggleFlatView(), MythPlayer::ToggleNightMode(), NetTree::toggleRSSUpdates(), NetTree::toggleTreeUpdates(), TV::UpdateChannelList(), ArchiveFileSelector::~ArchiveFileSelector(), ChannelRecPriority::~ChannelRecPriority(), GLSingleView::~GLSingleView(), GuideGrid::~GuideGrid(), ImportMusicDialog::~ImportMusicDialog(), LogViewer::~LogViewer(), MainVisual::~MainVisual(), MusicPlayer::~MusicPlayer(), ProgDetails::~ProgDetails(), SingleView::~SingleView(), StatusBox::~StatusBox(), VideoDialogPrivate::~VideoDialogPrivate(), ViewScheduled::~ViewScheduled(), ZMEvents::~ZMEvents(), and ZMLivePlayer::~ZMLivePlayer().
| void MythCoreContext::SaveSetting | ( | const QString & | key, |
| const QString & | newValue | ||
| ) |
Definition at line 827 of file mythcorecontext.cpp.
| QString MythCoreContext::GetSetting | ( | const QString & | key, |
| const QString & | defaultval = "" |
||
| ) |
Definition at line 839 of file mythcorecontext.cpp.
Referenced by FileScanner::AddFileToDB(), UPnpCDSMusic::AddItem(), UPnpCDSVideo::AddItem(), UPNPScanner::AddServer(), AirPlayHardwareId(), VideoPlayerCommandPrivate::AltPlayerFor(), ArchiveFileSelector::ArchiveFileSelector(), AudioDeviceComboBox::AudioDeviceComboBox(), AudioConfigSettings::AudioRescan(), StartPrompter::backendRunningPrompt(), DBUtil::BackupDB(), GameUI::BuildTree(), burnISOImage(), DiSEqCDevRotor::CalculateAzimuth(), LogViewer::cancelClicked(), Myth::ChangePassword(), ThemeUpdateChecker::checkForUpdate(), AudioConfigSettings::CheckPassthrough(), Scheduler::CheckShutdownServer(), checkStoragePaths(), ClassicLogoDetector::ClassicLogoDetector(), SchemaUpgradeWizard::Compare(), RecordingProfile::CompleteLoad(), connect_to_master(), ConnectCommandSocket(), ConnectToMasterServer(), ImportSettings::Create(), GeneralSettings::Create(), ProgDetails::Create(), PlayerSettings::Create(), ManualSchedule::Create(), GameUI::Create(), BrowserConfig::Create(), ImportMusicDialog::Create(), Playlist::CreateCDMP3(), createISOImage(), PlaybackBox::createJobMenu(), PlayerContext::CreatePlayer(), PlaybackBox::createPlaylistJobMenu(), IdleScreen::customEvent(), WelcomeDialog::customEvent(), MythSystemEventHandler::customEvent(), MusicPlayer::customEvent(), DecodeVBIFormat(), MediaMonitor::defaultDevice(), DBUtil::DoBackup(), BurnMenu::doBurn(), ParentalLevelChangeCheckerPrivate::DoCheck(), MythFillDatabaseTask::DoCheckRun(), OutboundRequestHandler::DoConnectToMaster(), NativeArchive::doImportArchive(), StatusBox::doListingsStatus(), ThemeUpdateTask::DoRun(), MythFillDatabaseTask::DoRun(), doUpgradeMusicDatabaseSchema(), doUpgradeTVDatabaseSchema(), doUpgradeVideoDatabaseSchema(), ScheduleCommon::EditRecording(), NativeArchive::exportRecording(), NativeArchive::exportVideo(), MusicMetadata::Filename(), filenameFromMetadata(), Scheduler::FillRecordingDir(), HttpStatus::FillStatusXML(), EditMetadataDialog::FindBanner(), EditRomInfoDialog::FindBoxart(), EditMetadataDialog::FindCoverArt(), EditRomInfoDialog::FindFanart(), EditMetadataDialog::FindFanart(), StorageGroup::FindFileDir(), findIcon(), EditRomInfoDialog::FindScreenshot(), EditMetadataDialog::FindScreenshot(), EditMetadataDialog::FindTrailer(), ImportNative::finishedPressed(), FromProgramQuery(), GalleryFilterDialog::GalleryFilterDialog(), HardwareProfile::GetAdminPasswordFromFile(), Content::GetAlbumArt(), Video::GetBluray(), Myth::GetConnectionInfo(), ZMEvents::getDateList(), MythBurn::getDefaultProfile(), getFileDetails(), GetFilePrefix(), ChannelInfo::GetFormatted(), MetadataDownload::GetGameGrabber(), JobQueue::GetJobCommand(), JobQueue::GetJobDescription(), GetLanguageAndVariant(), getLocalWritePath(), GetMasterHostPrefix(), MetadataDownload::GetMovieGrabber(), Content::GetMusic(), getMusicDirectory(), GetMythXMLURL(), ProgramInfo::GetPlaybackURL(), HardwareProfile::GetProfileURL(), MythFEXML::GetScreenShot(), MetadataDownload::GetTelevisionGrabber(), getTempDirectory(), ThumbGenerator::getThumbcacheDir(), GetVideoDirsByHost(), GLSingleView::GLSingleView(), GuiVidModeResolution(), ExitPrompter::halt(), MythBurn::handleAddFile(), MainServer::HandleFillProgramInfo(), MainServer::HandleGetFreeRecorder(), MainServer::HandleGetNextFreeRecorder(), MainServer::HandleGetRecorderFromNum(), MainServer::HandleGetRecorderNum(), MainServer::HandleGoToSleep(), MainServer::HandleQueryRecordings(), MythAirplayServer::HandleResponse(), Scheduler::HandleRunSchedulerStartup(), MainServer::HandleSGFileQuery(), MainServer::HandleSGGetFileList(), HardwareProfile::HardwareProfile(), NativeArchive::importRecording(), NativeArchive::importVideo(), StorageGroup::Init(), MythTranslationPrivate::Init(), GrabberSettings::Init(), AudioSetupWizard::Init(), V4LChannel::Init(), ThemeChooser::Init(), LCDProcClient::init(), TVRec::Init(), InitializeDatabase(), V4LChannel::InitializeInputs(), ChannelBase::InitializeInputs(), EditPowerSearchPopup::initLists(), JobQueue::InJobRunWindow(), DBUtil::IsBackupInProgress(), UPnpCDSTv::IsBrowseRequestForUs(), UPnpCDSVideo::IsBrowseRequestForUs(), IsMasterHost(), ISO639_fill_selections(), iso639_get_language_list(), UPnpCDSTv::IsSearchRequestForUs(), UPnpCDSVideo::IsSearchRequestForUs(), JobAllowUserJob(), JobQueue::JobText(), WelcomeDialog::keyPressEvent(), MusicCommon::keyPressEvent(), MythTranslation::LanguageChanged(), LanguageSelection::LanguageSelection(), ThemeChooser::Load(), RawSettingsEditor::Load(), PostProcMixin::Load(), TransFreqTableSelector::Load(), DVDThemeSelector::loadConfiguration(), SelectDestination::loadConfiguration(), ExportNative::loadConfiguration(), MythBurn::loadConfiguration(), VideoDialog::loadData(), MythBurn::loadEncoderProfiles(), LCDProcClient::loadSettings(), MusicPlayer::loadSettings(), TextSubtitleParser::LoadSubtitles(), XMLParse::LoadTheme(), main(), MainServer::MainServer(), MediaMonitor::MediaMonitor(), MetaIO::MetaIO(), MusicPlayer::MusicPlayer(), MythLanguage(), MythPlayer::MythPlayer(), mythplugin_init(), CECAdapterPriv::Open(), MythRAOPConnection::OpenAudioDevice(), AudioOutputCA::OpenDevice(), BDRingBuffer::OpenFile(), AudioOutputALSA::OpenMixer(), MusicPlayer::openOutputDevice(), ParentalLevelChangeCheckerPrivate::ParentalLevelChangeCheckerPrivate(), PlaybackBox::PlaybackBox(), playDisc(), VideoPlayerCommandPrivate::PlayerFor(), MythFrontendStatus::ProcessRequest(), MythRAOPConnection::ProcessRequest(), Myth::ProfileUpdated(), ProgramInfo::ProgramInfo(), LanguageSelection::prompt(), DBUtil::QueryDBMSVersion(), ExitPrompter::reboot(), AudioOutputBase::Reconfigure(), MainServer::reconnectTimeout(), RecordingInfo::RecordingInfo(), reloadTheme(), FileScanner::RemoveFileFromDB(), GalleryUtil::Rename(), GalleryUtil::RenameDirectory(), CDRipperThread::ripTrack(), run(), CDRipperThread::run(), run_backend(), WelcomeDialog::runMythFillDatabase(), runTestDVD(), TransFreqTableSelector::Save(), ThemeChooser::saveAndReload(), ImportCoverArtDialog::scanDirectory(), EditMetadataCommon::scanForImages(), AvFormatDecoder::ScanStreams(), ServerPool::SelectDefaultListen(), MusicMetadata::setArtistAndTrackFormats(), VolumeBase::SetCurrentVolume(), ZMLivePlayer::setMonitorLayout(), MpegRecorder::SetOptionsFromProfile(), ImportRecorder::SetOptionsFromProfile(), DTVRecorder::SetOptionsFromProfile(), ASIRecorder::SetOptionsFromProfile(), NuppelVideoRecorder::SetOptionsFromProfile(), HTTPLiveStream::SetOutputVars(), StartingChannel::SetSourceID(), setting_to_localtime(), LCDProcClient::SetupLCD(), ZMClient::setupZMClient(), AudioOutputPulseAudio::SetVolumeChannel(), ProgFinder::showGuide(), VideoDialog::ShowHomepage(), ViewScheduleDiff::showStatus(), NetSearch::showWebVideo(), NetTree::showWebVideo(), shutdown(), WelcomeDialog::shutdownNow(), Scheduler::ShutdownServer(), SingleView::SingleView(), BookmarkManager::slotBookmarkClicked(), GeneralSetupWizard::slotDelete(), BookmarkManager::slotShowMarked(), GeneralSetupWizard::slotView(), TVRec::SpawnLiveTV(), UPNPScanner::Start(), BurnMenu::start(), AudioConfigSettings::StartAudioTest(), EditAlbumartDialog::startCopyImageToTag(), startDatabaseTree(), WelcomeDialog::startFrontend(), startGuide(), StartPrompter::stopBackend(), ThemeUpdateChecker::ThemeUpdateChecker(), ProgramInfo::ToMap(), MythDate::toString(), Transcode::TranscodeFile(), AudioConfigSettings::UpdateCapabilities(), GameHandler::UpdateGameDB(), PlaybackBox::UpdateUILists(), UpgradeArchiveDatabaseSchema(), UpgradeBrowserDatabaseSchema(), UpgradeGalleryDatabaseSchema(), UpgradeGameDatabaseSchema(), UpgradeNewsDatabaseSchema(), VideoDialogPrivate::VideoDialogPrivate(), VolumeBase::VolumeBase(), AudioOutputOSS::VolumeInit(), AudioOutputJACK::VolumeInit(), Scheduler::WasStartedAutomatically(), WelcomeDialog::WelcomeDialog(), and ZMConsole::ZMConsole().
| bool MythCoreContext::SaveSettingOnHost | ( | const QString & | key, |
| const QString & | newValue, | ||
| const QString & | host | ||
| ) |
Definition at line 832 of file mythcorecontext.cpp.
Referenced by DBUtil::BackupDB(), Myth::ChangePassword(), HardwareProfile::Disable(), doUpgradeTVDatabaseSchema(), HardwareProfile::Enable(), VideoDisplayProfile::GetDefaultProfileName(), DataDirectProcessor::GrabNextSuggestedTime(), MainServer::HandleSetSetting(), main(), Myth::PutSetting(), VideoDisplayProfile::SetDefaultProfileName(), GrabberSettings::slotSave(), ThemeChooser::toggleThemeUpdateNotifications(), and UpdateDBVersionNumber().
Definition at line 845 of file mythcorecontext.cpp.
Referenced by Scheduler::AddNewRecords(), JobQueue::AllowedToRun(), AudioConfigSettings::AudioAdvanced(), AudioConfigSettings::AudioConfigSettings(), AudioOutputALSA::AudioOutputALSA(), AudioOutputBase::AudioOutputBase(), AudioPlayer::AudioPlayer(), AudioTest::AudioTest(), DBUtil::BackupDB(), VoqvFullscreen::BeginPort(), BlankFrameDetector::BlankFrameDetector(), BorderDetector::BorderDetector(), burnISOImage(), AutoExpire::CalcParams(), AudioOutputBase::CanPassthrough(), CECAdapter::CECAdapter(), ChannelRecPriority::ChannelRecPriority(), WelcomeDialog::checkAutoStart(), AudioConfigSettings::CheckPassthrough(), Scheduler::CheckShutdownServer(), ClassicCommDetector::ClassicCommDetector(), ClassicLogoDetector::ClassicLogoDetector(), CleanupTask::CleanupProgramListings(), CommBreakMap::CommBreakMap(), CompleteJob(), connect_to_master(), ConnectCommandSocket(), AudioOutputPulseAudio::ConnectPlaybackStream(), LCDProcClient::connectToHost(), ConnectToMasterServer(), RatingSettings::Create(), VisualizationSettings::Create(), ImportSettings::Create(), PlayerSettings::Create(), GeneralSettings::Create(), MetadataSettings::Create(), AudioSetupWizard::Create(), ManualSchedule::Create(), ZMEvents::Create(), BrowserConfig::Create(), VideoDialog::Create(), Ripper::Create(), Playlist::CreateCDMP3(), MusicCommon::CreateCommon(), PlayerContext::CreatePlayer(), VideoDialog::CreatePlayMenu(), IdleScreen::customEvent(), WelcomeDialog::customEvent(), MainServer::customEvent(), MusicPlayer::customEvent(), MusicPlayer::decoderHandlerReady(), DeleteThread::DeleteThread(), DetectLetterbox::DetectLetterbox(), ParentalLevelChangeCheckerPrivate::DoCheck(), HardwareProfileTask::DoCheckRun(), MythFillDatabaseTask::DoCheckRun(), OutboundRequestHandler::DoConnectToMaster(), MainServer::DoDeleteThread(), MainServer::DoHandleUndeleteRecording(), PlaybackBox::doJobQueueJob(), PlaybackBox::doPlaylistJobQueueJob(), MainServer::DoTruncateThread(), doUpgradeTVDatabaseSchema(), Ripper::ejectCD(), MythUDPListener::Enable(), SubtitleScreen::EnableSubtitles(), VoqvFullscreen::EndPort(), MythMainWindow::ExitStandby(), AutoExpire::ExpireEpisodesOverMax(), MusicMetadata::Filename(), filenameFromMetadata(), AutoExpire::FillDBOrdered(), AutoExpire::FillExpireList(), TV::FillOSDMenuJumpRec(), Scheduler::FillRecordingDir(), PlayerSettings::fillRegionList(), HttpStatus::FillStatusXML(), findIcon(), FlagCommercials(), AutoExpire::GetAllExpiring(), JobQueue::GetJobsInQueue(), GetMasterHostPrefix(), AudioOutputSettings::GetMaxHDRate(), ProgramInfo::GetPlaybackURL(), TVRec::GetProgramRingBufferForLiveTV(), ThumbGenerator::getThumbcacheDir(), AudioOutputSettings::GetUsers(), GLSingleView::GLSingleView(), PrePostRollFlagger::go(), ClassicCommDetector::go(), GrabberManager::GrabberManager(), handleCDMedia(), MainServer::HandleDeleteFile(), handleDVDMedia(), ExitPrompter::handleExit(), handleMedia(), MythAirplayServer::HandleResponse(), TV::HandleStateChange(), HardwareProfile::HardwareProfile(), HistogramAnalyzer::HistogramAnalyzer(), HttpStatus::HttpStatus(), MythMainWindow::IdleTimeout(), ImageView::ImageView(), VideoOutputQuartz::Init(), GrabberSettings::Init(), StatusBox::Init(), AudioSetupWizard::Init(), MythRAOPConnection::Init(), PlaybackBox::Init(), TVRec::Init(), MythRemoteLineEdit::Init(), TV::Init(), ZMLivePlayer::initMonitorLayout(), AudioOutputBase::InitSettings(), AvFormatDecoder::InitVideoCodec(), RecordingQuality::IsDamaged(), JobQueue::JobQueue(), LinuxFirewireDevice::LinuxFirewireDevice(), ThemeChooser::Load(), SelectDestination::loadConfiguration(), LoadFromRecorded(), MusicPlayer::loadPlaylist(), MusicPlayer::loadSettings(), PreviewGenerator::LocalPreviewRun(), LogViewer::LogViewer(), main(), MainServer::MainServer(), MainVisual::MainVisual(), TV::MenuItemDisplayPlayback(), MusicCommon::MusicCommon(), MythComboBox::MythComboBox(), MythLineEdit::MythLineEdit(), MythMainWindow::MythMainWindow(), MythPlayer::MythPlayer(), mythplugin_init(), MythPopupBox::MythPopupBox(), nearestName(), NetTree::NetTree(), CECAdapterPriv::Open(), MythRAOPConnection::OpenAudioDevice(), AudioOutputALSA::OpenDevice(), AudioOutputCA::OpenDevice(), BDRingBuffer::OpenFile(), AudioOutputALSA::OpenMixer(), MusicPlayer::openOutputDevice(), PlaybackBox::PlaybackBox(), VideoDialog::playVideoWithTrailers(), NetworkControl::processQuery(), JobQueue::ProcessQueue(), MythRAOPConnection::ProcessRequest(), ProgramRecPriority::ProgramRecPriority(), Scheduler::PutInactiveSlavesToSleep(), JobQueue::QueueJobs(), JobQueue::QueueRecordingJobs(), MetaIO::readMetadata(), AudioOutputBase::Reconfigure(), MainServer::reconnectTimeout(), JobQueue::RecoverQueue(), MythRAOPDevice::RegisterForBonjour(), RemoteUndeleteRecording(), MusicPlayer::restorePosition(), Ripper::RipComplete(), RSSManager::RSSManager(), CDRipperThread::run(), Scheduler::run(), GrabberDownloadThread::run(), run_backend(), AutoExpire::RunExpirer(), RunNetTree(), GuideGrid::RunProgramGuide(), RunVideoScreen(), PreviewGenerator::SavePreview(), SceneChangeDetector::SceneChangeDetector(), Scheduler::SchedLiveTV(), Scheduler::SchedNewRecords(), SchemaUpgradeWizard::SchemaUpgradeWizard(), ServerPool::SelectDefaultListen(), SendReceiveStringList(), PlaybackBox::setGroupFilter(), MythFillDatabaseTask::SetHourWindowFromDB(), PlayerContext::SetInitialTVState(), setScheduledWakeupTime(), DeviceReadBuffer::Setup(), LCDProcClient::SetupLCD(), ZMClient::setupZMClient(), VideoOutWindow::SetVideoScalingAllowed(), ThemeChooser::showPopupMenu(), WelcomeDialog::shutdownNow(), Scheduler::ShutdownServer(), SingleView::SingleView(), startAppearWiz(), AudioConfigSettings::StartAudioTest(), StatusBox::StatusBox(), TemplateFinder::TemplateFinder(), TemplateMatcher::TemplateMatcher(), MythPlayer::ToggleNightMode(), ThemeChooser::toggleThemeUpdateNotifications(), Transcode::TranscodeFile(), AudioConfigSettings::UpdateCapabilities(), TV::UpdateOSDProgInfo(), TV::UpdateOSDStatus(), PlaybackBox::UpdateUILists(), MythFillDatabaseTask::UseSuggestedTime(), VideoColourSpace::VideoColourSpace(), VideoDialogPrivate::VideoDialogPrivate(), VideoFilterSettings::VideoFilterSettings(), VideoListImp::VideoListImp(), VideoDialog::VideoMenu(), VideoOutput::VideoOutput(), VideoOutputOpenGL::VideoOutputOpenGL(), VideoOutputVDPAU::VideoOutputVDPAU(), VideoOutputXv::VideoOutputXv(), VideoOutWindow::VideoOutWindow(), VideoScannerThread::VideoScannerThread(), VolumeBase::VolumeBase(), AudioOutputOSS::VolumeInit(), AudioOutputJACK::VolumeInit(), WelcomeDialog::WelcomeDialog(), and GuideGrid::~GuideGrid().
| double MythCoreContext::GetFloatSetting | ( | const QString & | key, |
| double | defaultval = 0.0 |
||
| ) |
Definition at line 850 of file mythcorecontext.cpp.
| void MythCoreContext::GetResolutionSetting | ( | const QString & | type, |
| int & | width, | ||
| int & | height, | ||
| double & | forced_aspect, | ||
| double & | refreshrate, | ||
| int | index = -1 |
||
| ) |
Definition at line 790 of file mythcorecontext.cpp.
Referenced by GuiVidModeResolution(), TV::Init(), and VideoOutput::ResizeForVideo().
| void MythCoreContext::GetResolutionSetting | ( | const QString & | type, |
| int & | width, | ||
| int & | height, | ||
| int | index = -1 |
||
| ) |
Definition at line 800 of file mythcorecontext.cpp.
| QString MythCoreContext::GetSettingOnHost | ( | const QString & | key, |
| const QString & | host, | ||
| const QString & | defaultval = "" |
||
| ) |
Definition at line 855 of file mythcorecontext.cpp.
Referenced by UPnpCDSMusic::AddItem(), UPnpCDSTv::AddItem(), UPnpCDSVideo::AddItem(), UPNPScanner::AddServer(), MainServer::DeleteRecordedFiles(), HttpStatus::FillStatusXML(), generate_file_url(), generate_myth_url(), GetBackendServerIP(), VideoDisplayProfile::GetDefaultProfileName(), ProgramInfo::GetPlaybackURL(), getStorageGroupURL(), MainServer::HandleGetFreeRecorder(), MainServer::HandleGetNextFreeRecorder(), MainServer::HandleGetRecorderFromNum(), MainServer::HandleGetRecorderNum(), MainServer::HandleQueryRecordings(), MainServer::HandleSettingQuery(), IsThisHost(), MythFrontendStatus::ProcessRequest(), Scheduler::PutInactiveSlavesToSleep(), EncoderLink::SetSocket(), UPNPScanner::Start(), transUnlink(), Scheduler::WakeUpSlave(), and Scheduler::WakeUpSlaves().
| int MythCoreContext::GetNumSettingOnHost | ( | const QString & | key, |
| const QString & | host, | ||
| int | defaultval = 0 |
||
| ) |
Definition at line 862 of file mythcorecontext.cpp.
Referenced by GetMythXMLURL(), and RemoteGetFileList().
| double MythCoreContext::GetFloatSettingOnHost | ( | const QString & | key, |
| const QString & | host, | ||
| double | defaultval = 0.0 |
||
| ) |
Definition at line 869 of file mythcorecontext.cpp.
Referenced by VideoOutput::InitDisplayMeasurements(), and MythPlayer::MythPlayer().
| QString MythCoreContext::GetBackendServerIP | ( | void | ) |
Definition at line 895 of file mythcorecontext.cpp.
Referenced by MythSocket::ConnectToHost(), MainServer::DeleteRecordedFiles(), generate_file_url(), generate_myth_url(), ProgramInfo::GetPlaybackURL(), MainServer::HandleFillProgramInfo(), MainServer::HandleGetFreeRecorder(), MainServer::HandleGetNextFreeRecorder(), MainServer::HandleGetRecorderFromNum(), MainServer::HandleGetRecorderNum(), MainServer::HandleQueryRecordings(), MainServer::reconnectTimeout(), RemoteGetFileList(), TVRec::SpawnLiveTV(), and transUnlink().
| QString MythCoreContext::GetBackendServerIP | ( | const QString & | host | ) |
Definition at line 900 of file mythcorecontext.cpp.
| void MythCoreContext::ClearSettingsCache | ( | const QString & | myKey = QString("") | ) |
Definition at line 767 of file mythcorecontext.cpp.
Referenced by Myth::ChangePassword(), MythPlugin::config(), MainServer::customEvent(), readyRead(), MythContextPrivate::ResetDatabase(), and startAppearWiz().
Definition at line 772 of file mythcorecontext.cpp.
Referenced by handleSIGUSR1(), MythContext::Init(), mythplugin_init(), TVMenuCallback(), UpgradeMusicDatabaseSchema(), and UpgradeTVDatabaseSchema().
| void MythCoreContext::OverrideSettingForSession | ( | const QString & | key, |
| const QString & | value | ||
| ) |
Definition at line 931 of file mythcorecontext.cpp.
Referenced by MythCommandLineParser::ApplySettingsOverride(), StartPrompter::leaveBackendRunning(), main(), resetTheme(), StartPrompter::stopBackend(), and MythContextPrivate::TempMainWindow().
| void MythCoreContext::ClearOverrideSettingForSession | ( | const QString & | key | ) |
Definition at line 937 of file mythcorecontext.cpp.
Referenced by MythContextPrivate::EndTempWindow().
Dispatch an event to all listeners.
Makes a copy of the event on the heap by calling MythEvent::clone() and dispatches is by calling QCoreApplication::postEvent().
| event | MythEvent to dispatch. |
Reimplemented from MythObservable.
Definition at line 1223 of file mythcorecontext.cpp.
Referenced by LiveTVChain::BroadcastUpdate(), MainServer::connectionClosed(), connectionClosed(), MainServer::customEvent(), MythWebView::customEvent(), MusicPlayer::customEvent(), MythMainWindow::ExitToMainMenu(), AutoExpire::ExpireEpisodesOverMax(), TVRec::FinishedRecording(), BrowserApi::GetMetadata(), TVRec::GetProgramRingBufferForLiveTV(), BrowserApi::GetVolume(), MainServer::HandleAnnounce(), Scheduler::HandleIdleShutdown(), MessageHandler::HandleInbound(), MainServer::HandleMessage(), MessageHandler::HandleOutbound(), TVRec::HandlePendingRecordings(), Scheduler::HandleRecordingStatusChange(), TVRec::NotifySchedulerOfRecording(), TV::OSDDialogEvent(), BrowserApi::Pause(), JobQueue::PauseJob(), BrowserApi::Play(), BrowserApi::PlayFile(), Frontend::PlayRecording(), BrowserApi::PlayTrack(), BrowserApi::PlayURL(), PlaybackBox::processNetworkControlCommand(), TV::ProcessNetworkControlCommand(), NetworkControl::processPlay(), NetworkControl::processQuery(), MainServer::ProcessRequestWork(), readyRead(), Dvr::RemoveRecorded(), JobQueue::RestartJob(), JobQueue::ResumeJob(), Reconnect::run(), Scheduler::run(), SignalMonitor::run(), TVRec::run(), AutoExpire::SendDeleteMessages(), SendEvent(), SendMessage(), SendReceiveStringList(), ScheduledRecording::SendReschedule(), MainServer::SendSlaveDisconnectedEvent(), TVRec::SetLiveRecording(), BrowserApi::SetVolume(), Scheduler::ShutdownServer(), VisualizationSettings::slotSave(), RatingSettings::slotSave(), GeneralSettings::slotSave(), ImportSettings::slotSave(), TVRec::StartRecording(), TV::StartTV(), BrowserApi::Stop(), JobQueue::StopJob(), MHIContext::TuneTo(), TVRec::TuningFrequency(), TVRec::TuningNewRecorder(), TVRec::TuningSignalCheck(), and Scheduler::UpdateRecStatus().
Dispatch an event to all listeners.
This sends an event using the current thread, this is almost always unsafe.
| event | a MythEvent to dispatch. |
Reimplemented from MythObservable.
Definition at line 1230 of file mythcorecontext.cpp.
Referenced by sendPlaybackEnd(), and sendPlaybackStart().
Definition at line 1298 of file mythcorecontext.cpp.
Referenced by GetQLocale(), MythContextPrivate::Init(), and SaveLocaleDefaults().
Definition at line 1309 of file mythcorecontext.cpp.
Referenced by reloadTheme(), and resetTheme().
| MythLocale * MythCoreContext::GetLocale | ( | void | ) | const |
Definition at line 1264 of file mythcorecontext.cpp.
Referenced by AddCertifications(), MetadataDownload::handleGame(), MetadataDownload::handleMovie(), MetadataDownload::handleRecordingGeneric(), MetadataDownload::handleTelevision(), MetadataDownload::handleVideoUndetermined(), LanguageSelection::Load(), BDRingBuffer::OpenFile(), ScanCountry::ScanCountry(), and ScanNetwork::ScanNetwork().
| const QLocale MythCoreContext::GetQLocale | ( | void | ) |
Definition at line 1322 of file mythcorecontext.cpp.
Referenced by MythUIClock::GetTimeText(), MythDateFormatCB(), MythShortDateFormat(), MythTimeFormat(), MythUIClock::ParseElement(), MusicMetadata::toMap(), ProgramInfo::ToMap(), MythDate::toString(), and PlaybackBox::UpdateUsageUI().
Definition at line 1330 of file mythcorecontext.cpp.
Referenced by MythContextPrivate::Init().
| QString MythCoreContext::GetLanguage | ( | void | ) |
Returns two character ISO-639 language descriptor for UI language.
Definition at line 1273 of file mythcorecontext.cpp.
Referenced by AvFormatDecoder::AutoSelectAudioTrack(), MetadataDownload::handleGame(), MetadataDownload::handleMovie(), MetadataDownload::handleRecordingGeneric(), MetadataDownload::handleTelevision(), MetadataDownload::handleVideoUndetermined(), ISO639_fill_selections(), iso639_get_language_list(), MythUIText::ParseElement(), MythThemedMenu::parseThemeButton(), RunProgramFinder(), and VirtualKeyboardQt::VirtualKeyboardQt().
| QString MythCoreContext::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 1285 of file mythcorecontext.cpp.
Referenced by MythUIVirtualKeyboard::Create(), GetLanguage(), MythUIText::ParseElement(), and MythThemedMenu::parseThemeButton().
Definition at line 1293 of file mythcorecontext.cpp.
Referenced by MythUIHelper::LoadQtConfig().
| void MythCoreContext::RegisterForPlayback | ( | QObject * | sender, |
| const char * | method | ||
| ) |
Register sender for TVPlaybackAboutToStart signal.
Method will be called upon the signal being emitted. sender must call MythCoreContext::UnregisterForPlayback upon deletion
Definition at line 1398 of file mythcorecontext.cpp.
Referenced by TV::InitFromDB(), and MythRAOPDevice::newConnection().
| void MythCoreContext::UnregisterForPlayback | ( | QObject * | sender | ) |
Unregister sender from being called when TVPlaybackAboutToStart signal is emitted.
Definition at line 1416 of file mythcorecontext.cpp.
Referenced by TV::~TV().
| void MythCoreContext::WantingPlayback | ( | QObject * | sender | ) |
All the objects that have registered using MythCoreContext::RegisterForPlayback but sender will be called.
The object's registered method will be called in a blocking fashion, each of them being called one after the other
Definition at line 1436 of file mythcorecontext.cpp.
Referenced by MythRAOPConnection::ProcessRequest(), and TV::StartTV().
| bool MythCoreContext::TestPluginVersion | ( | const QString & | name, |
| const QString & | libversion, | ||
| const QString & | pluginversion | ||
| ) |
Definition at line 1457 of file mythcorecontext.cpp.
Referenced by mythplugin_init().
| void MythCoreContext::SetPluginManager | ( | MythPluginManager * | pmanager | ) |
Definition at line 1471 of file mythcorecontext.cpp.
Referenced by main().
| MythPluginManager * MythCoreContext::GetPluginManager | ( | void | ) |
Definition at line 1485 of file mythcorecontext.cpp.
Referenced by configplugin_cb(), MythThemedMenu::findDepends(), and plugin_cb().
| void MythCoreContext::WaitUntilSignals | ( | const char * | signal1, |
| ... | |||
| ) |
Wait until either of the provided signals have been received.
signal1 being declared as SIGNAL(SignalName(args,..))
Definition at line 1363 of file mythcorecontext.cpp.
Referenced by MythAirplayServer::PausePlayback(), MythAirplayServer::SeekPosition(), MythAirplayServer::StartPlayback(), MythAirplayServer::StopPlayback(), and MythAirplayServer::UnpausePlayback().
Definition at line 189 of file mythcorecontext.h.
Referenced by TV::StartTV().
Definition at line 190 of file mythcorecontext.h.
Referenced by TV::StartTV().
|
inline |
Definition at line 191 of file mythcorecontext.h.
Referenced by TV::DoSeekAbsolute().
Definition at line 192 of file mythcorecontext.h.
Referenced by TV::DoTogglePause().
Definition at line 193 of file mythcorecontext.h.
Referenced by TV::DoPlay(), and TV::DoTogglePause().
Definition at line 194 of file mythcorecontext.h.
Referenced by TV::StartTV().
Definition at line 195 of file mythcorecontext.h.
Referenced by TV::DoPlay().
|
signal |
Referenced by RegisterForPlayback(), UnregisterForPlayback(), and WantingPlayback().
|
inlineprivate |
Definition at line 210 of file mythcorecontext.h.
|
inlineprivate |
Definition at line 211 of file mythcorecontext.h.
|
private |
Definition at line 1164 of file mythcorecontext.cpp.
|
private |
Definition at line 1123 of file mythcorecontext.cpp.
|
private |
Definition at line 208 of file mythcorecontext.h.
Referenced by ActivateSettingsCache(), AllowShutdown(), BlockShutdown(), CheckProtoVersion(), ClearOverrideSettingForSession(), ClearSettingsCache(), ConnectCommandSocket(), ConnectEventSocket(), ConnectToMasterServer(), GetBackendServerIP(), GetDB(), GetDBManager(), GetFloatSetting(), GetFloatSettingOnHost(), GetGUIObject(), GetHostName(), GetLanguageAndVariant(), GetLocale(), GetMasterHostName(), GetMasterHostPrefix(), GetNumSetting(), GetNumSettingOnHost(), GetPluginManager(), GetQLocale(), GetResolutionSetting(), GetScheduler(), GetSetting(), GetSettingOnHost(), HasGUI(), Init(), InitLocale(), IsBackend(), IsBlockingClient(), IsConnectedToMaster(), IsDatabaseIgnored(), IsUIThread(), MythCoreContext(), OverrideSettingForSession(), RegisterForPlayback(), ReInitLocale(), ResetLanguage(), SafeConnectToMasterServer(), SaveLocaleDefaults(), SaveSetting(), SaveSettingOnHost(), SendReceiveStringList(), SetBackend(), SetGUIObject(), SetLocalHostname(), SetPluginManager(), SetScheduler(), UnregisterForPlayback(), WantingPlayback(), and ~MythCoreContext().
1.8.1.2