MythTV  master
Public Types | Signals | Public Member Functions | Private Member Functions | Private Attributes | List of all members
MythCoreContext Class Reference

This class contains the runtime context for MythTV. More...

#include <mythcorecontext.h>

Inheritance diagram for MythCoreContext:
Inheritance graph
[legend]
Collaboration diagram for MythCoreContext:
Collaboration graph
[legend]

Public Types

enum  ResolveType { ResolveAny = -1, ResolveIPv4 = 0, ResolveIPv6 = 1 }
 

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 *guiContext)
 
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)
 
MythSocketConnectCommandSocket (const QString &hostname, int port, const QString &announcement, bool *proto_mismatch=nullptr, int maxConnTry=-1, int setup_timeout=-1)
 
MythSocketConnectEventSocket (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 (const QString &host=QString(), int port=0, QString path=QString(), const 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 SetAsBackend (bool backend)
 
bool IsBackend (void) const
 is this process a backend process More...
 
void SetAsFrontend (bool frontend)
 
bool IsFrontend (void) const
 is this process a frontend process More...
 
bool IsFrontendOnly (void)
 is there a frontend, but no backend, running on this host More...
 
bool IsMasterHost (void)
 is this the same host as the master More...
 
bool IsMasterHost (const QString &host)
 is specified host the master More...
 
bool IsMasterBackend (void)
 is this the actual MBE process More...
 
bool BackendIsRunning (void)
 a backend process is running on this host More...
 
bool IsThisBackend (const QString &addr)
 is this address mapped to this backend host More...
 
bool IsThisHost (const QString &addr)
 is this address mapped to this host More...
 
bool IsThisHost (const QString &addr, const QString &host)
 
void BlockShutdown (void)
 
void AllowShutdown (void)
 
bool IsBlockingClient (void) const
 is this client blocking shutdown More...
 
void SetWOLAllowed (bool allow)
 
bool IsWOLAllowed () const
 
bool SendReceiveStringList (QStringList &strlist, bool quickTimeout=false, bool block=true)
 Send a message to the backend and wait for a response. More...
 
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)
 
QObject * GetGUIContext (void)
 
bool HasGUI (void) const
 
bool IsUIThread (void)
 
MythDBGetDB (void)
 
MDBManagerGetDBManager (void)
 
MythSchedulerGetScheduler (void)
 
bool IsDatabaseIgnored (void) const
 /brief Returns true if database is being ignored. More...
 
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)
 
void SaveBoolSetting (const QString &key, bool newValue)
 
bool GetBoolSetting (const QString &key, bool defaultval=false)
 
int GetNumSetting (const QString &key, int defaultval=0)
 
int GetBoolSetting (const QString &key, int defaultval)=delete
 
bool GetNumSetting (const QString &key, bool defaultvalue)=delete
 
double GetFloatSetting (const QString &key, double defaultval=0.0)
 
void GetResolutionSetting (const QString &type, int &width, int &height, double &forced_aspect, double &refresh_rate, 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="")
 
bool GetBoolSettingOnHost (const QString &key, const QString &host, bool defaultval=0)
 
int GetNumSettingOnHost (const QString &key, const QString &host, int defaultval=0)
 
int GetBoolSettingOnHost (const QString &key, const QString &host, int defaultval)=delete
 
bool GetNumSettingOnHost (const QString &key, const QString &host, bool defaultval=0)=delete
 
double GetFloatSettingOnHost (const QString &key, const QString &host, double defaultval=0.0)
 
QString GetBackendServerIP (void)
 Returns the IP address of the locally defined backend IP. More...
 
QString GetBackendServerIP (const QString &host)
 Returns the IP address of backend "host" If an IPv6 address has been defined, will use it whenever possible, unless the IPv6 address is a localhost address, in which case the IPv4 address will be used. More...
 
QString GetBackendServerIP4 (void)
 Returns the IPv4 address defined for the current host see GetBackendServerIP4(host) More...
 
QString GetBackendServerIP4 (const QString &host)
 Returns the IPv4 address defined for the backend "host". More...
 
QString GetBackendServerIP6 (void)
 Returns the IPv6 address defined for the current host see GetBackendServerIP6(host) More...
 
QString GetBackendServerIP6 (const QString &host)
 Returns the IPv6 address defined for the backend "host". More...
 
QString GetMasterServerIP (void)
 Returns the Master Backend IP address If the address is an IPv6 address, the scope Id is removed. More...
 
int GetMasterServerPort (void)
 Returns the Master Backend control port If no master server port has been defined in the database, return the default 6543. More...
 
int GetMasterServerStatusPort (void)
 Returns the Master Backend status port If no master server status port has been defined in the database, return the default 6544. More...
 
int GetBackendServerPort (void)
 Returns the locally defined backend control port. More...
 
int GetBackendServerPort (const QString &host)
 Returns the backend "hosts"'s control port. More...
 
int GetBackendStatusPort (void)
 Returns the locally defined backend status port. More...
 
int GetBackendStatusPort (const QString &host)
 Returns the backend "hosts"'s status port. More...
 
bool GetScopeForAddress (QHostAddress &addr) const
 Return the cached scope Id for the given address. More...
 
void SetScopeForAddress (const QHostAddress &addr)
 Record the scope Id of the given IP address. More...
 
void SetScopeForAddress (const QHostAddress &addr, int scope)
 Record the scope Id of the given IP address. More...
 
QString resolveSettingAddress (const QString &name, const QString &host=QString(), ResolveType type=ResolveAny, bool keepscope=false)
 Retrieve IP setting "name" for "host". More...
 
QString resolveAddress (const QString &host, ResolveType=ResolveAny, bool keepscope=false) const
 if host is an IP address, it will be returned or resolved otherwise. More...
 
bool CheckSubnet (const QAbstractSocket *socket)
 Check if a socket is connected to an approved peer. More...
 
bool CheckSubnet (const QHostAddress &peer)
 Check if aa ip address is approved. More...
 
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)
 
void InitLocale (void)
 
void ReInitLocale (void)
 
MythLocaleGetLocale (void) const
 
QLocale GetQLocale (void)
 
void SaveLocaleDefaults (void)
 
QString GetLanguage (void)
 Returns two character ISO-639 language descriptor for UI language. More...
 
QString GetLanguageAndVariant (void)
 Returns the user-set language and variant. More...
 
void ResetLanguage (void)
 
void ResetSockets (void)
 
void RegisterForPlayback (QObject *sender, const char *method)
 Register sender for TVPlaybackAboutToStart signal. More...
 
void UnregisterForPlayback (QObject *sender)
 Unregister sender from being called when TVPlaybackAboutToStart signal is emitted. More...
 
void WantingPlayback (QObject *sender)
 All the objects that have registered using MythCoreContext::RegisterForPlayback but sender will be called. More...
 
bool InWantingPlayback (void)
 Returns true if a client has requested playback. More...
 
void TVInWantingPlayback (bool b)
 Let the TV class tell us if we was interrupted following a call to WantingPlayback(). More...
 
MythSessionManagerGetSessionManager (void)
 
bool TestPluginVersion (const QString &name, const QString &libversion, const QString &pluginversion)
 
void SetPluginManager (MythPluginManager *pmanager)
 
MythPluginManagerGetPluginManager (void)
 
void SetExiting (bool exiting=true)
 
bool IsExiting (void)
 
void RegisterFileForWrite (const QString &file, uint64_t size=0LL)
 
void UnregisterFileForWrite (const QString &file)
 
bool IsRegisteredFileForWrite (const QString &file)
 
void WaitUntilSignals (const char *signal1,...)
 Wait until either of the provided signals have been received. More...
 
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. More...
 
void removeListener (QObject *listener)
 Remove a listener to the observable. More...
 
void dispatch (const MythEvent &event)
 Dispatch an event to all listeners. More...
 
bool hasListeners (void)
 
- Public Member Functions inherited from MythSocketCBs
virtual ~MythSocketCBs ()=default
 
virtual void error (MythSocket *, int)
 

Private Member Functions

void connected (MythSocket *sock) override
 
void connectionFailed (MythSocket *sock) override
 
void connectionClosed (MythSocket *sock) override
 
void readyRead (MythSocket *sock) override
 

Private Attributes

MythCoreContextPrivated {nullptr}
 

Additional Inherited Members

- Protected Attributes inherited from MythObservable
QMutex * m_lock {nullptr}
 
QSet< QObject * > m_listeners
 

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 52 of file mythcorecontext.h.

Member Enumeration Documentation

◆ ResolveType

Enumerator
ResolveAny 
ResolveIPv4 
ResolveIPv6 

Definition at line 190 of file mythcorecontext.h.

Constructor & Destructor Documentation

◆ MythCoreContext()

MythCoreContext::MythCoreContext ( const QString &  binversion,
QObject *  guiContext 
)

Definition at line 222 of file mythcorecontext.cpp.

◆ ~MythCoreContext()

MythCoreContext::~MythCoreContext ( )
virtual

Definition at line 286 of file mythcorecontext.cpp.

Member Function Documentation

◆ Init()

bool MythCoreContext::Init ( void  )

Definition at line 229 of file mythcorecontext.cpp.

Referenced by MythContext::MythContext().

◆ SetLocalHostname()

void MythCoreContext::SetLocalHostname ( const QString &  hostname)

Definition at line 1689 of file mythcorecontext.cpp.

Referenced by MythContextPrivate::LoadDatabaseSettings().

◆ SetServerSocket()

void MythCoreContext::SetServerSocket ( MythSocket serverSock)

◆ SetEventSocket()

void MythCoreContext::SetEventSocket ( MythSocket eventSock)

◆ SetScheduler()

void MythCoreContext::SetScheduler ( MythScheduler sched)

Definition at line 1816 of file mythcorecontext.cpp.

Referenced by cleanup(), and run_backend().

◆ SafeConnectToMasterServer()

bool MythCoreContext::SafeConnectToMasterServer ( bool  blockingClient = true,
bool  openEventSocket = true 
)

◆ ConnectToMasterServer()

bool MythCoreContext::ConnectToMasterServer ( bool  blockingClient = true,
bool  openEventSocket = true 
)

◆ ConnectCommandSocket()

MythSocket * MythCoreContext::ConnectCommandSocket ( const QString &  hostname,
int  port,
const QString &  announcement,
bool proto_mismatch = nullptr,
int  maxConnTry = -1,
int  setup_timeout = -1 
)

◆ ConnectEventSocket()

MythSocket * MythCoreContext::ConnectEventSocket ( const QString &  hostname,
int  port 
)

Definition at line 533 of file mythcorecontext.cpp.

Referenced by ConnectToMasterServer().

◆ SetupCommandSocket()

bool MythCoreContext::SetupCommandSocket ( MythSocket serverSock,
const QString &  announcement,
uint  timeout_in_ms,
bool proto_mismatch 
)

Definition at line 292 of file mythcorecontext.cpp.

Referenced by ConnectCommandSocket().

◆ CheckProtoVersion()

bool MythCoreContext::CheckProtoVersion ( MythSocket socket,
uint  timeout_ms = kMythSocketLongTimeout,
bool  error_dialog_desired = false 
)

◆ GenMythURL()

QString MythCoreContext::GenMythURL ( const QString &  host = QString(),
int  port = 0,
QString  path = QString(),
const QString &  storageGroup = QString() 
)

◆ GetMasterHostPrefix()

QString MythCoreContext::GetMasterHostPrefix ( const QString &  storageGroup = QString(),
const QString &  path = QString() 
)

◆ GetMasterHostName()

QString MythCoreContext::GetMasterHostName ( void  )

◆ GetHostName()

QString MythCoreContext::GetHostName ( void  )

Definition at line 826 of file mythcorecontext.cpp.

Referenced by MusicFileScanner::AddFileToDB(), Content::AddLiveStream(), Content::AddRecordingLiveStream(), HTTPLiveStream::AddStream(), Content::AddVideoLiveStream(), ControlRequestHandler::AnnounceSocket(), MainServer::BackendQueryDiskSpace(), Playlist::changed(), StorageGroup::CheckAllStorageGroupDirs(), ChannelBase::CheckChannel(), checkImageStoragePaths(), checkStoragePaths(), CleanupMyOldInUsePrograms(), CleanupTask::CleanupOldRecordings(), clearAllKeys(), connect_to_master(), MythControls::Create(), PlaybackSettings::CreateNewPlaybackProfileSlot(), MythSessionManager::CreateUserSession(), CurrentPlaybackProfile(), StorageGroupEditor::customEvent(), GalleryThumbView::customEvent(), MythSystemEventHandler::customEvent(), BrowserApi::customEvent(), MythWebView::customEvent(), NetworkControl::customEvent(), MainServer::customEvent(), HouseKeeper::customEvent(), MusicPlayer::customEvent(), CaptureCardEditor::DeleteAllCaptureCardsOnHost(), ProgramInfo::DiscoverRecordingDirectory(), InfoList::Display(), StorageGroupEditor::DoDeleteSlot(), StorageGroupDirSetting::DoDeleteSlot(), MainServer::DoHandleDeleteRecording(), MainServer::DoHandleStopRecording(), StatusBox::doMachineStatus(), doUpgradeTVDatabaseSchema(), Content::DownloadFile(), RemoteFile::Exists(), ExpertSettingsEditor::ExpertSettingsEditor(), AutoExpire::ExpireRecordings(), ExtractImage(), Scheduler::FillRecordingDir(), CaptureCard::fillSelections(), HttpStatus::FillStatusXML(), findAllDBSearchGrabbers(), findAllDBTreeGrabbersByHost(), RemoteFile::FindFileList(), SourceManager::findScripts(), SourceManager::findScriptsDB(), findSearchGrabberByCommand(), findSearchGrabberInDB(), findTreeGrabberByCommand(), findTreeGrabberInDB(), get_cardtype(), MainServer::GetActiveBackends(), MetaIOFLACVorbis::getAlbumArtList(), DBUtil::GetBackupDirectory(), getDBParamters(), Dvr::GetEncoderList(), Content::GetHash(), Myth::GetHostName(), CardUtil::GetInputIDs(), MusicMetadata::getLocalFilename(), BrowserApi::GetMetadata(), Scheduler::GetNextLiveTVDir(), ProgramInfo::GetPlaybackURL(), Content::GetPreviewImage(), TVRec::GetProgramRingBufferForLiveTV(), Content::GetRecording(), LogViewer::getSetting(), Myth::GetSetting(), Frontend::GetStatus(), CardUtil::GetVideoDevices(), VideoSelector::getVideoListFromDB(), BrowserApi::GetVolume(), StorageGroupDirStorage::GetWhereClause(), handle_command(), MainServer::HandleAddChildInput(), FileServerHandler::HandleAnnounce(), MainServer::HandleAnnounce(), MainServer::HandleCheckRecordingActive(), FileServerHandler::HandleDownloadFile(), MainServer::HandleDownloadFile(), FileServerHandler::HandleFileQuery(), MainServer::HandleFillProgramInfo(), MainServer::HandleGenPreviewPixmap(), FileServerHandler::HandleGetFileList(), MainServer::HandleIsActiveBackendQuery(), MainServer::HandleLockTuner(), MainServer::HandleMusicFindAlbumArt(), MainServer::HandleMusicTagAddImage(), MainServer::HandleMusicTagChangeImage(), MainServer::HandlePixmapGetIfModified(), MainServer::HandlePixmapLastModified(), MainServer::HandleQueryCheckFile(), FileServerHandler::HandleQueryFileExists(), MainServer::HandleQueryFileExists(), FileServerHandler::HandleQueryFileHash(), MainServer::HandleQueryFileHash(), MainServer::HandleQueryFindFile(), BaseRequestHandler::HandleQueryHostname(), MainServer::HandleQueryHostname(), MainServer::HandleQueryRecordings(), MainServer::HandleScanMusic(), MainServer::HandleSGFileQuery(), MainServer::HandleSGGetFileList(), HardwareProfile::HardwareProfile(), helloID(), CaptureCard::Hostname::Hostname(), HTTPLiveStream::HTTPLiveStream(), MediaServer::Init(), MythUIHelperPrivate::Init(), init_jobs(), VideoOutput::InitDisplayMeasurements(), Frontend::InitialiseActions(), JobQueue::InJobRunWindow(), insertGrabberInDB(), IsFrontendOnly(), CardUtil::IsInputTypePresent(), IsMasterHost(), IsThisHost(), BackendSettings::Load(), StorageGroupEditor::Load(), StorageGroupListEditor::Load(), InputSelector::Load(), VideoSourceSelector::Load(), DiSEqCDevTree::Load(), CaptureCardEditor::Load(), CardInputEditor::Load(), VideoSetupWizard::loadData(), ScreenSetup::loadData(), SourceSetup::loadData(), LoadFromRecorded(), main(), MainServer::MainServer(), Dvr::ManageJobQueue(), ProgramInfo::MarkAsInUse(), BackendSettings::masterBackendChanged(), MythPlayer::MythPlayer(), ImageAdapterLocal::Notify(), BrowserApi::Pause(), BrowserApi::Play(), PlaybackProfileConfig::PlaybackProfileConfig(), PlaybackSock::PlaybackSock(), BrowserApi::PlayFile(), BrowserApi::PlayTrack(), BrowserApi::PlayURL(), VideoSetupWizard::playVideoTest(), DatabaseLogger::prepare(), WeatherSource::ProbeScript(), NetworkControl::processPlay(), HttpConfig::ProcessRequest(), FileServerHandler::QueryFileSystems(), HouseKeeperTask::QueryLast(), MetaIOID3::readAlbumArt(), RebuildSeekTable(), MainServer::reconnectTimeout(), JobQueue::RecoverQueue(), MythRAOPDevice::RegisterForBonjour(), RemoteGetFileList(), RemoteSendReceiveStringList(), removeGrabberFromDB(), SystemEventThread::run(), MythDownloadManager::run(), PreviewGenerator::Run(), NAMThread::run(), ReadMetaThread::run(), PreviewGenerator::RunReal(), VideoSetupWizard::save(), PlaybackProfileConfig::Save(), CaptureCard::Save(), ScreenSetup::saveData(), MusicFileScanner::ScanArtwork(), MusicFileScanner::ScanMusic(), ScanMusic(), ScanVideoDirectory(), MusicFileScanner::SearchDirs(), SendMythSystemPlayEvent(), SendSystemEvent(), SendSystemEvent(), PlayerContext::SetTVChain(), RemoteEncoder::Setup(), Weather::SetupScreens(), SourceManager::setupSources(), setupTVs(), BrowserApi::SetVolume(), CaptureCardEditor::ShowDeleteAllCaptureCardsDialogOnHost(), TV::ShowOSDPromptDeleteRecording(), TVRec::SpawnLiveTV(), MythAirplayServer::Start(), HouseKeeper::Start(), RecordingInfo::StartedRecording(), startTVNormal(), StatusBox::StatusBox(), BrowserApi::Stop(), DiSEqCDevTree::Store(), ThemeChooser::ThemeChooser(), MusicFileScanner::UpdateFileInDB(), HouseKeeperTask::UpdateLastRun(), VideoDisplayProfile::VideoDisplayProfile(), Scheduler::WakeUpSlave(), and WasAutomaticStart().

◆ GetFilePrefix()

QString MythCoreContext::GetFilePrefix ( void  )

Definition at line 832 of file mythcorecontext.cpp.

Referenced by AutoExpire::ExpireEpisodesOverMax().

◆ IsConnectedToMaster()

bool MythCoreContext::IsConnectedToMaster ( void  )

◆ SetAsBackend()

void MythCoreContext::SetAsBackend ( bool  backend)

Definition at line 627 of file mythcorecontext.cpp.

Referenced by main().

◆ IsBackend()

bool MythCoreContext::IsBackend ( void  ) const

◆ SetAsFrontend()

void MythCoreContext::SetAsFrontend ( bool  frontend)

Definition at line 637 of file mythcorecontext.cpp.

Referenced by main().

◆ IsFrontend()

bool MythCoreContext::IsFrontend ( void  ) const

is this process a frontend process

Definition at line 642 of file mythcorecontext.cpp.

Referenced by ConnectToMasterServer(), and MythContextPrivate::Init().

◆ IsFrontendOnly()

bool MythCoreContext::IsFrontendOnly ( void  )

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

Definition at line 733 of file mythcorecontext.cpp.

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

◆ IsMasterHost() [1/2]

bool MythCoreContext::IsMasterHost ( void  )

◆ IsMasterHost() [2/2]

bool MythCoreContext::IsMasterHost ( const QString &  host)

is specified host the master

Definition at line 653 of file mythcorecontext.cpp.

◆ IsMasterBackend()

bool MythCoreContext::IsMasterBackend ( void  )

◆ BackendIsRunning()

bool MythCoreContext::BackendIsRunning ( void  )

a backend process is running on this host

Definition at line 688 of file mythcorecontext.cpp.

Referenced by StartPrompter::handleStart(), RawSettingsEditor::Save(), and WasAutomaticStart().

◆ IsThisBackend()

bool MythCoreContext::IsThisBackend ( const QString &  addr)

is this address mapped to this backend host

Definition at line 704 of file mythcorecontext.cpp.

Referenced by RemoteFile::Exists(), and RemoteFile::FindFileList().

◆ IsThisHost() [1/2]

bool MythCoreContext::IsThisHost ( const QString &  addr)

◆ IsThisHost() [2/2]

bool MythCoreContext::IsThisHost ( const QString &  addr,
const QString &  host 
)

Definition at line 714 of file mythcorecontext.cpp.

◆ BlockShutdown()

void MythCoreContext::BlockShutdown ( void  )

Definition at line 584 of file mythcorecontext.cpp.

Referenced by MythMainWindow::ExitStandby(), and JobQueue::ProcessQueue().

◆ AllowShutdown()

void MythCoreContext::AllowShutdown ( void  )

◆ IsBlockingClient()

bool MythCoreContext::IsBlockingClient ( void  ) const

is this client blocking shutdown

Definition at line 612 of file mythcorecontext.cpp.

Referenced by JobQueue::ProcessQueue(), and Reconnect::run().

◆ SetWOLAllowed()

void MythCoreContext::SetWOLAllowed ( bool  allow)

◆ IsWOLAllowed()

bool MythCoreContext::IsWOLAllowed ( ) const

◆ SendReceiveStringList()

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

Send a message to the backend and wait for a response.

Parameters
strlistA QStringList used for both sending commands to the backend and receiving responses from the backend.
quickTimeoutIf true, the short timeout is used while waiting for a response. If false (the default) then the long timeout is used.
blockIf true (the default) and the request sent to the backend times out, this function will attempt to reconnect and reissue the request. If false, this function will not attempt to reconnect to the backend.
See also
kShortTimeout
kLongTimeout

Definition at line 1336 of file mythcorecontext.cpp.

Referenced by MainGeneralSettings::applyChange(), ImageManagerFe::ChangeOrientation(), ImageManagerFe::ClearStorageGroup(), LyricsView::createFindLyricsMenu(), ImageManagerFe::CreateImages(), EditAlbumartDialog::customEvent(), RemoteFile::DeleteFile(), ImageManagerFe::DeleteFiles(), EditAlbumartDialog::doRemoveImageFromTag(), StatusBox::doTunerStatus(), downloadRemoteFile(), exec_program_tv_cb(), RemoteFile::FindFileList(), LyricsData::findLyrics(), MusicMetadata::getAlbumArtFile(), GetMasterHostName(), MythUIFileBrowser::GetRemoteFileList(), handle_command(), ImageManagerFe::HideFiles(), ImageManagerFe::IgnoreDirs(), IsFrontendOnly(), RemoteFile::LastModified(), ProgramInfo::LoadFromScheduler(), ImageManagerFe::MakeDir(), ImageManagerFe::MoveDbImages(), RemoteFile::MoveFile(), mythdir_opendir(), RawSendEvent(), RemoteCancelNextRecording(), RemoteCheckFile(), RemoteCheckForRecording(), RemoteDeleteRecording(), RemoteFillProgramInfo(), RemoteGetActiveBackends(), RemoteGetExistingRecorder(), RemoteGetFileList(), RemoteGetFlags(), FileSystemInfo::RemoteGetInfo(), RemoteGetLoad(), RemoteGetMemStats(), RemoteGetPreviewIfModified(), RemoteGetPreviewLastModified(), RemoteGetRecordingList(), RemoteGetRecordingMask(), RemoteGetRecordingStatus(), RemoteGetState(), RemoteGetUptime(), VideoDialog::RemoteImageCheck(), RemoteIsBusy(), PreviewGenerator::RemotePreviewRun(), RemoteRecordings(), RemoteRecordPending(), RemoteRequestFreeInputInfo(), RemoteSendReceiveStringList(), RemoteStopLiveTV(), RemoteStopRecording(), RemoteUndeleteRecording(), ImageManagerFe::RenameFile(), SendStringListThread::run(), AlbumArtScannerThread::run(), CopyImageThread::run(), SendAsyncMessage::run(), LyricsData::save(), ImageManagerFe::ScanImagesAction(), ImageManagerFe::ScanQuery(), ScanVideos(), ScheduledRecording::SendReschedule(), ImageManagerFe::SetCover(), and StatusBox::StatusBox().

◆ SendMessage()

void MythCoreContext::SendMessage ( const QString &  message)

◆ SendEvent()

void MythCoreContext::SendEvent ( const MythEvent event)

◆ SendSystemEvent()

void MythCoreContext::SendSystemEvent ( const QString &  msg)

◆ SendHostSystemEvent()

void MythCoreContext::SendHostSystemEvent ( const QString &  msg,
const QString &  hostname,
const QString &  args 
)

Definition at line 1515 of file mythcorecontext.cpp.

◆ SetGUIObject()

void MythCoreContext::SetGUIObject ( QObject *  gui)

◆ GetGUIObject()

QObject * MythCoreContext::GetGUIObject ( void  )

◆ GetGUIContext()

QObject * MythCoreContext::GetGUIContext ( void  )

Definition at line 1711 of file mythcorecontext.cpp.

Referenced by MythSocket::Validate().

◆ HasGUI()

bool MythCoreContext::HasGUI ( void  ) const

◆ IsUIThread()

bool MythCoreContext::IsUIThread ( void  )

◆ GetDB()

MythDB * MythCoreContext::GetDB ( void  )

◆ GetDBManager()

MDBManager * MythCoreContext::GetDBManager ( void  )

Definition at line 853 of file mythcorecontext.cpp.

Referenced by MythContextPrivate::ResetDatabase().

◆ GetScheduler()

MythScheduler * MythCoreContext::GetScheduler ( void  )

◆ IsDatabaseIgnored()

bool MythCoreContext::IsDatabaseIgnored ( void  ) const

/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 864 of file mythcorecontext.cpp.

Referenced by MythDVDPlayer::GetBookmark(), MythBDPlayer::GetBookmark(), MythPlayer::GetBookmark(), PlayerContext::GetFilters(), DeleteMap::IsSaved(), DeleteMap::LoadAutoSaveMap(), DeleteMap::LoadMap(), MythPlayer::OpenFile(), ProgramInfo::ProgramInfo(), ProgramInfo::QueryTotalDuration(), DeleteMap::SaveMap(), and PlayerContext::SetPlayingInfo().

◆ GetDatabaseParams()

DatabaseParams MythCoreContext::GetDatabaseParams ( void  )
inline

◆ SaveSetting() [1/2]

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

Definition at line 869 of file mythcorecontext.cpp.

Referenced by AirPlayHardwareId(), ThemeUpdateChecker::checkForUpdate(), GalleryThumbView::customEvent(), ThemeChooser::customEvent(), EditAlbumartDialog::customEvent(), MusicPlayer::decoderHandlerReady(), HardwareProfile::DeleteProfile(), doBurnDVD(), ParentalLevelChangeCheckerPrivate::DoCheck(), doNativeArchive(), doUpgradeMusicDatabaseSchema(), getTempDirectory(), handleMedia(), TV::HandleOSDClosed(), ProgramRecPriority::keyPressEvent(), ThemeChooser::LoadVersion(), main(), mythplugin_init(), ParentalLevelChangeCheckerPrivate::OnPasswordEntered(), MythPlayer::OpenFile(), PlaybackBox::PlaybackBox(), PlaylistEditorView::PlaylistEditorView(), ThemeChooser::refreshDownloadableThemes(), GallerySlideView::RepeatOn(), GalleryThumbView::RepeatOn(), MythBurn::runScript(), AudioSetupWizard::save(), RawSettingsEditor::Save(), ThemeChooser::saveAndReload(), GalleryFilter::saveAsDefault(), VideoFilterSettings::saveAsDefault(), VideoOutWindow::SaveBottomLine(), DVDThemeSelector::saveConfiguration(), SelectDestination::saveConfiguration(), GlobalSetup::saveData(), ZMClient::saveNotificationMonitors(), MusicPlayer::savePosition(), VideoDialog::SavePosition(), PlaylistEditorView::saveTreePosition(), VideoColourSpace::SaveValue(), PlaybackBox::saveViewChanges(), GalleryThumbView::SelectZoomWidget(), PlaybackBox::setGroupFilter(), ImportMusicDialog::setSaveHost(), Ripper::setSaveHost(), AudioOutputBase::SetSWVolume(), MythFontProperties::SetZoom(), MythUIWebBrowser::SetZoom(), SubtitleScreen::SetZoom(), GalleryThumbView::ShowType(), 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(), TV::UpdateChannelList(), MusicFileScanner::updateLastRunEnd(), MusicFileScanner::updateLastRunStart(), MusicFileScanner::updateLastRunStatus(), ArchiveFileSelector::~ArchiveFileSelector(), ChannelRecPriority::~ChannelRecPriority(), GLSingleView::~GLSingleView(), GuideGrid::~GuideGrid(), ImportMusicDialog::~ImportMusicDialog(), LogViewer::~LogViewer(), MainVisual::~MainVisual(), MusicPlayer::~MusicPlayer(), PrevRecordedList::~PrevRecordedList(), SingleView::~SingleView(), StatusBox::~StatusBox(), VideoDialogPrivate::~VideoDialogPrivate(), ZMEvents::~ZMEvents(), and ZMLivePlayer::~ZMLivePlayer().

◆ SaveSetting() [2/2]

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

Definition at line 874 of file mythcorecontext.cpp.

◆ GetSetting()

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

Definition at line 886 of file mythcorecontext.cpp.

Referenced by HTTPRequest::AddCORSHeaders(), MusicFileScanner::AddFileToDB(), AirPlayHardwareId(), VideoPlayerCommandPrivate::AltPlayerFor(), ArchiveFileSelector::ArchiveFileSelector(), AudioDeviceComboBox::AudioDeviceComboBox(), StartPrompter::backendRunningPrompt(), DBUtil::BackupDB(), GameUI::BuildTree(), burnISOImage(), DiSEqCDevRotor::CalculateAzimuth(), LogViewer::cancelClicked(), CDRipperThread::CDRipperThread(), ThemeUpdateChecker::checkForUpdate(), Scheduler::CheckShutdownServer(), ClassicLogoDetector::ClassicLogoDetector(), MythContextPrivate::clearSettingsCacheOverride(), SchemaUpgradeWizard::Compare(), ConnectCommandSocket(), ImageScanThread< ImageDbSg >::CountFiles(), ImportSettings::Create(), GeneralSettings::Create(), PlayerSettings::Create(), ManualSchedule::Create(), BrowserConfig::Create(), ImportMusicDialog::Create(), PlaylistEditorView::Create(), createISOImage(), PlaybackBox::createJobMenu(), PlayerContext::CreatePlayer(), PlaybackBox::createPlaylistJobMenu(), IdleScreen::customEvent(), WelcomeDialog::customEvent(), GalleryThumbView::customEvent(), MythSystemEventHandler::customEvent(), MusicCommon::customEvent(), MediaMonitor::defaultDevice(), DBUtil::DoBackup(), BurnMenu::doBurn(), ParentalLevelChangeCheckerPrivate::DoCheck(), RadioStreamUpdateTask::DoCheckRun(), MythFillDatabaseTask::DoCheckRun(), ZMClient::doGetMonitorList(), NativeArchive::doImportArchive(), StatusBox::doListingsStatus(), StatusBox::doMachineStatus(), MythFillDatabaseTask::DoRun(), doUpgradeMusicDatabaseSchema(), doUpgradeTVDatabaseSchema(), doUpgradeVideoDatabaseSchema(), ScheduleCommon::EditRecording(), MythMainWindow::EnterStandby(), NativeArchive::exportRecording(), NativeArchive::exportVideo(), filenameFromMetadata(), Scheduler::FillRecordingDir(), HttpStatus::FillStatusXML(), EditMetadataDialog::FindBanner(), EditRomInfoDialog::FindBoxart(), EditMetadataDialog::FindCoverArt(), EditRomInfoDialog::FindFanart(), EditMetadataDialog::FindFanart(), StorageGroup::FindFileDir(), EditRomInfoDialog::FindScreenshot(), EditMetadataDialog::FindScreenshot(), EditMetadataDialog::FindTrailer(), ImportNative::finishedPressed(), GalleryFilter::GalleryFilter(), GalleryFilterDialog::GalleryFilterDialog(), HardwareProfile::GetAdminPasswordFromFile(), Video::GetBluray(), Myth::GetConnectionInfo(), ZMEvents::getDateList(), MythBurn::getDefaultProfile(), getFileDetails(), GetFilePrefix(), ChannelInfo::GetFormatted(), ImageManagerFe::getInstance(), JobQueue::GetJobCommand(), JobQueue::GetJobDescription(), GetLanguageAndVariant(), getLocalWritePath(), GetMasterServerIP(), GetMasterServerPort(), HardwareProfile::GetProfileURL(), MythDisplay::GetScreen(), MythFEXML::GetScreenShot(), getTempDirectory(), ThumbGenerator::getThumbcacheDir(), MetaGrabberScript::GetType(), GetVideoDirsByHost(), GLSingleView::GLSingleView(), GuiVidModeResolution(), ExitPrompter::halt(), MythBurn::handleAddFile(), MainServer::HandleGoToSleep(), Scheduler::HandleIdleShutdown(), MainServer::HandleMusicFindAlbumArt(), MythAirplayServer::HandleResponse(), Scheduler::HandleRunSchedulerStartup(), HardwareProfile::HardwareProfile(), NvdecContext::HwDecoderInit(), Vaapi2Context::HwDecoderInit(), IconView::IconView(), GalleryThumbView::Import(), ImportMusicDialog::ImportMusicDialog(), NativeArchive::importVideo(), StorageGroup::Init(), MythTranslationPrivate::Init(), GrabberSettings::Init(), AudioSetupWizard::Init(), ThemeChooser::Init(), V4LChannel::Init(), LCDProcClient::init(), TVRec::Init(), MythPlayer::InitAVSync(), InitializeDatabase(), ChannelBase::InitializeInput(), V4LChannel::InitializeInputs(), EditPowerSearchPopup::initLists(), JobQueue::InJobRunWindow(), MusicFileScanner::IsArtFile(), DBUtil::IsBackupInProgress(), IsMasterHost(), ISO639_fill_selections(), iso639_get_language_list(), MusicFileScanner::IsRunning(), JobAllowUserJob(), JobQueue::JobText(), WelcomeDialog::keyPressEvent(), MusicCommon::keyPressEvent(), MythTranslation::LanguageChanged(), LanguageSelection::LanguageSelection(), AudioConfigSettings::Load(), RawSettingsEditor::Load(), TransFreqTableSelector::Load(), PostProcMixin::Load(), DVDThemeSelector::loadConfiguration(), SelectDestination::loadConfiguration(), ExportNative::loadConfiguration(), MythBurn::loadConfiguration(), VideoDialog::loadData(), MythBurn::loadEncoderProfiles(), LoadFromProgram(), LCDProcClient::loadSettings(), MythContextPrivate::loadSettingsCacheOverride(), HttpServer::LoadSSLConfig(), TextSubtitleParser::LoadSubtitles(), ThemeUpdateTask::LoadVersion(), ThemeChooser::LoadVersion(), main(), Dvr::ManageJobQueue(), MediaMonitor::MediaMonitor(), GalleryThumbView::MenuAction(), MetaIO::MetaIO(), MusicPlayer::MusicPlayer(), MythLanguage(), MythPlayer::MythPlayer(), mythplugin_init(), MythSortHelper::MythSortHelper(), CECAdapterPriv::Open(), MythRAOPConnection::OpenAudioDevice(), AudioOutputCA::OpenDevice(), BDRingBuffer::OpenFile(), DVDRingBuffer::OpenFile(), AudioOutputALSA::OpenMixer(), AudioOutputOMX::OpenMixer(), MusicPlayer::openOutputDevice(), ParentalLevelChangeCheckerPrivate::ParentalLevelChangeCheckerPrivate(), PlaybackBox::PlaybackBox(), playDisc(), VideoPlayerCommandPrivate::PlayerFor(), HttpStatus::PrintMachineInfo(), MythRAOPConnection::ProcessRequest(), Myth::ProfileUpdated(), ProgramInfo::ProgramInfo(), LanguageSelection::prompt(), DBUtil::QueryDBMSVersion(), ExitPrompter::reboot(), AudioOutputBase::Reconfigure(), RecordingInfo::RecordingInfo(), IconView::ReloadSettings(), reloadTheme(), MusicFileScanner::RemoveFileFromDB(), GalleryUtil::Rename(), GalleryUtil::RenameDirectory(), NetStream::Request(), resolveSettingAddress(), Ripper::Ripper(), CDRipperThread::ripTrack(), run(), CDRipperThread::run(), WelcomeDialog::runMythFillDatabase(), runTestDVD(), TransFreqTableSelector::Save(), ThemeChooser::saveAndReload(), MythContextPrivate::saveSettingsCache(), ImportCoverArtDialog::scanDirectory(), AvFormatDecoder::ScanStreams(), MusicFileScanner::SearchDirs(), MusicMetadata::setArtistAndTrackFormats(), ZMLivePlayer::setMonitorLayout(), MpegRecorder::SetOptionsFromProfile(), ImportRecorder::SetOptionsFromProfile(), DTVRecorder::SetOptionsFromProfile(), V4L2encRecorder::SetOptionsFromProfile(), ASIRecorder::SetOptionsFromProfile(), NuppelVideoRecorder::SetOptionsFromProfile(), HTTPLiveStream::SetOutputVars(), StartingChannel::SetSourceID(), setting_to_localtime(), LCDProcClient::SetupLCD(), ZMClient::setupZMClient(), AudioOutputPulseAudio::SetVolumeChannel(), ProgFinder::ShowGuide(), VideoDialog::ShowHomepage(), GalleryThumbView::ShowSettings(), ViewScheduleDiff::showStatus(), NetBase::ShowWebVideo(), shutdown(), WelcomeDialog::shutdownNow(), Scheduler::ShutdownServer(), SingleView::SingleView(), BookmarkManager::slotBookmarkClicked(), GeneralSetupWizard::slotDelete(), BookmarkManager::slotShowMarked(), GeneralSetupWizard::slotView(), MythDisplay::SpanAllScreens(), BurnMenu::start(), EditAlbumartDialog::startCopyImageToTag(), startDatabaseTree(), DVDRingBuffer::StartFromBeginning(), WelcomeDialog::startFrontend(), startGuide(), StartPrompter::stopBackend(), MythContextPrivate::TestDBconnection(), ProgramInfo::ToMap(), MythDate::toString(), Transcode::TranscodeFile(), GameHandler::UpdateGameDB(), MusicMetadata::updateStreamList(), PlaybackBox::UpdateUILists(), UpgradeArchiveDatabaseSchema(), UpgradeBrowserDatabaseSchema(), UpgradeGalleryDatabaseSchema(), UpgradeGameDatabaseSchema(), UpgradeNewsDatabaseSchema(), VideoDialogPrivate::VideoDialogPrivate(), VolumeBase::VolumeBase(), AudioOutputOSS::VolumeInit(), AudioOutputJACK::VolumeInit(), WasAutomaticStart(), Scheduler::WasStartedAutomatically(), and ZMConsole::ZMConsole().

◆ SaveSettingOnHost()

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

◆ SaveBoolSetting()

void MythCoreContext::SaveBoolSetting ( const QString &  key,
bool  newValue 
)
inline

◆ GetBoolSetting() [1/2]

bool MythCoreContext::GetBoolSetting ( const QString &  key,
bool  defaultval = false 
)

Definition at line 892 of file mythcorecontext.cpp.

Referenced by JobQueue::AllowedToRun(), AudioOutputALSA::AudioOutputALSA(), AudioOutputBase::AudioOutputBase(), AudioPlayer::AudioPlayer(), MythPlayer::AVSync(), DBUtil::BackupDB(), ServerPool::bind(), GameUI::BuildTree(), AudioOutputBase::CanPassthrough(), CECAdapter::CECAdapter(), WelcomeDialog::checkAutoStart(), Scheduler::CheckShutdownServer(), CheckSubnet(), ClassicCommDetector::ClassicCommDetector(), CompleteJob(), LCDProcClient::connectToHost(), GameUI::Create(), VideoDialog::Create(), PlaybackBox::Create(), PlayerContext::CreatePlayer(), VideoDialog::CreatePlayMenu(), MainServer::customEvent(), TV::customEvent(), ServerPool::DefaultBroadcast(), ThemeUpdateTask::DoCheckRun(), ArtworkTask::DoCheckRun(), MythFillDatabaseTask::DoCheckRun(), MainServer::DoDeleteThread(), PlaybackBox::doJobQueueJob(), PlaybackBox::doPlaylistJobQueueJob(), MainServer::DoTruncateThread(), doUpgradeTVDatabaseSchema(), Ripper::ejectCD(), AutoExpire::ExpireEpisodesOverMax(), filenameFromMetadata(), AutoExpire::FillDBOrdered(), TV::FillOSDMenuJumpRec(), HttpStatus::FillStatusXML(), ImageManagerFe::getInstance(), JobQueue::GetJobsInQueue(), AudioOutputSettings::GetMaxHDRate(), MythPlayer::GetPlaybackData(), ProgramInfo::GetPlaybackURL(), ThumbGenerator::getThumbcacheDir(), AudioOutputSettings::GetUsers(), PrePostRollFlagger::go(), ClassicCommDetector::go(), MainServer::HandleDeleteFile(), handleGalleryMedia(), Scheduler::HandleIdleShutdown(), handleMedia(), MythAirplayServer::HandleResponse(), TV::HandleStateChange(), IconView::IconView(), ImageView::ImageView(), MythMainWindow::Init(), MythRAOPConnection::Init(), MusicCommon::init(), PlaybackBox::Init(), MythUIWebBrowser::Init(), TVRec::Init(), TV::Init(), MPEG2fixup::InitAV(), UPnp::Initialize(), AudioOutputBase::InitSettings(), LinuxFirewireDevice::LinuxFirewireDevice(), ServerPool::listen(), LogViewer::LogViewer(), main(), MainServer::MainServer(), TV::MenuItemDisplayPlayback(), GallerySlideView::MenuMain(), GalleryThumbView::MenuSlideshow(), MusicCommon::MusicCommon(), MythPlayer::MythPlayer(), mythplugin_init(), MythSortHelper::MythSortHelper(), NetTree::NetTree(), MythRAOPConnection::OpenAudioDevice(), AvFormatDecoder::OpenFile(), OpenGLVideo::OpenGLVideo(), MusicPlayer::openOutputDevice(), PlaybackBox::Play(), PlaybackBox::PlaybackBox(), MythPlayer::PrebufferEnoughFrames(), MythRAOPConnection::ProcessRequest(), ProgramRecPriority::ProgramRecPriority(), JobQueue::QueueJobs(), JobQueue::QueueRecordingJobs(), AudioOutputBase::Reconfigure(), JobQueue::RecoverQueue(), MythRAOPDevice::RegisterForBonjour(), IconView::ReloadSettings(), Ripper::RipComplete(), CDRipperThread::run(), Scheduler::run(), ServerPool::SelectDefaultListen(), MythRAOPConnection::SendNotification(), PlaybackBox::setGroupFilter(), GallerySlideView::ShowNextSlide(), ThemeChooser::showPopupMenu(), Scheduler::ShutdownServer(), GallerySlideView::SlideAvailable(), MediaMonitor::StartMonitoring(), MHInteractionChannel::status(), ThemeChooser::toggleThemeUpdateNotifications(), AudioConfigSettings::UpdateCapabilities(), TV::UpdateOSDProgInfo(), TV::UpdateOSDStatus(), MythFillDatabaseTask::UseSuggestedTime(), VideoDialogPrivate::VideoDialogPrivate(), VideoListImp::VideoListImp(), VideoDialog::VideoMenu(), VideoOutputOMX::VideoOutputOMX(), VideoOutputOpenGL::VideoOutputOpenGL(), VideoOutputVDPAU::VideoOutputVDPAU(), VideoOutputXv::VideoOutputXv(), VideoOutWindow::VideoOutWindow(), VideoScannerThread::VideoScannerThread(), VolumeBase::VolumeBase(), and GuideGrid::~GuideGrid().

◆ GetNumSetting() [1/2]

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

Definition at line 898 of file mythcorecontext.cpp.

Referenced by HTTPRequest::AddCORSHeaders(), Scheduler::AddNewRecords(), AudioOutputBase::AudioOutputBase(), AudioTest::AudioTest(), AvFormatDecoder::AvFormatDecoder(), BlankFrameDetector::BlankFrameDetector(), BorderDetector::BorderDetector(), HTTPRequest::BuildResponseHeader(), burnISOImage(), AutoExpire::CalcParams(), ChannelRecPriority::ChannelRecPriority(), ClassicCommDetector::ClassicCommDetector(), ClassicLogoDetector::ClassicLogoDetector(), CleanupTask::CleanupProgramListings(), CommBreakMap::CommBreakMap(), ConnectCommandSocket(), AudioOutputPulseAudio::ConnectPlaybackStream(), RatingSettings::Create(), VisualizationSettings::Create(), ImportSettings::Create(), PlayerSettings::Create(), GeneralSettings::Create(), MetadataSettings::Create(), AudioSetupWizard::Create(), ManualSchedule::Create(), GalleryThumbView::Create(), ZMEvents::Create(), BrowserConfig::Create(), VideoDialog::Create(), ZMLivePlayer::Create(), Ripper::Create(), PlayerContext::CreatePlayer(), IdleScreen::customEvent(), WelcomeDialog::customEvent(), MainServer::customEvent(), MythMainWindow::customEvent(), MusicPlayer::decoderHandlerReady(), DeleteThread::DeleteThread(), DetectLetterbox::DetectLetterbox(), ParentalLevelChangeCheckerPrivate::DoCheck(), HardwareProfileTask::DoCheckRun(), MainServer::DoHandleUndeleteRecording(), doUpgradeTVDatabaseSchema(), DTVRecorder::DTVRecorder(), MythUDPListener::Enable(), SubtitleScreen::EnableSubtitles(), MythMainWindow::ExitStandby(), AutoExpire::FillDBOrdered(), AutoExpire::FillExpireList(), Scheduler::FillRecordingDir(), PlayerSettings::fillRegionList(), FlagCommercials(), GalleryFilter::GalleryFilter(), GallerySlideView::GallerySlideView(), AutoExpire::GetAllExpiring(), GetBoolSetting(), ImageManagerFe::getInstance(), PreviewGeneratorQueue::GetPreviewImage(), TVRec::GetProgramRingBufferForLiveTV(), HttpServer::GetSocketTimeout(), AudioOutputSettings::GetUsers(), GLSingleView::GLSingleView(), ClassicCommDetector::go(), Goom::Goom(), GrabberManager::GrabberManager(), handleDVDMedia(), ExitPrompter::handleExit(), TV::HandleStateChange(), HardwareProfile::HardwareProfile(), HistogramAnalyzer::HistogramAnalyzer(), HttpStatus::HttpStatus(), IconView::IconView(), MythMainWindow::IdleTimeout(), ImageView::ImageView(), GrabberSettings::Init(), AudioSetupWizard::Init(), StatusBox::Init(), PrivateDecoderOMX::Init(), VideoOutputOMX::Init(), PlaybackBox::Init(), MythUIWebBrowser::Init(), TVRec::Init(), ClassicCommDetector::Init(), MythPlayer::InitAVSync(), TV::InitKeys(), RecordingQuality::IsDamaged(), IsMasterHost(), JobQueue::JobQueue(), LinuxFirewireDevice::LinuxFirewireDevice(), SelectDestination::loadConfiguration(), GlobalSetup::loadData(), LoadFromOldRecorded(), LoadFromRecorded(), MusicPlayer::loadPlaylist(), MusicPlayer::loadSettings(), ThemeChooser::LoadVersion(), PreviewGenerator::LocalPreviewRun(), LogViewer::LogViewer(), main(), MainVisual::MainVisual(), GalleryThumbView::MenuShow(), GalleryThumbView::MenuSlideshow(), MythMainWindow::MythMainWindow(), MythPainter::MythPainter(), MythPlayer::MythPlayer(), nearestName(), NetTree::NetTree(), CECAdapterPriv::Open(), AudioOutputALSA::OpenDevice(), AudioOutputCA::OpenDevice(), BDRingBuffer::OpenFile(), AudioOutputALSA::OpenMixer(), AudioOutputOMX::OpenMixer(), MusicPlayer::openOutputDevice(), PlaybackBox::PlaybackBox(), VideoDialog::playVideoWithTrailers(), ProgDetails::PowerPriorities(), PrevRecordedList::PrevRecordedList(), NetworkControl::processQuery(), JobQueue::ProcessQueue(), ProgramRecPriority::ProgramRecPriority(), Scheduler::PutInactiveSlavesToSleep(), JobQueue::QueueJobs(), MetaIO::readMetadata(), AudioOutputBase::Reconfigure(), MHIContext::Reinit(), IconView::ReloadSettings(), RemoteUndeleteRecording(), MusicPlayer::restorePosition(), RSSManager::RSSManager(), Scheduler::run(), GrabberDownloadThread::run(), run_backend(), AutoExpire::RunExpirer(), RunNetTree(), GuideGrid::RunProgramGuide(), RunVideoScreen(), SceneChangeDetector::SceneChangeDetector(), Scheduler::SchedLiveTV(), Scheduler::SchedNewRecords(), SchemaUpgradeWizard::SchemaUpgradeWizard(), SendReceiveStringList(), MythFillDatabaseTask::SetHourWindowFromDB(), PlayerContext::SetInitialTVState(), setScheduledWakeupTime(), DeviceReadBuffer::Setup(), LCDProcClient::SetupLCD(), ZMClient::setupZMClient(), VideoOutWindow::SetVideoScalingAllowed(), GalleryThumbView::ShowSettings(), shutdown(), WelcomeDialog::shutdownNow(), Scheduler::ShutdownServer(), SingleView::SingleView(), GallerySlideView::Start(), startAppearWiz(), StatusBox::StatusBox(), TemplateFinder::TemplateFinder(), TemplateMatcher::TemplateMatcher(), MythContextPrivate::TestDBconnection(), VideoOutWindow::ToggleMoveBottomLine(), MythPlayer::ToggleNightMode(), Transcode::TranscodeFile(), GalleryThumbView::UpdateImageItem(), UpdateRadioStreams(), PlaybackBox::UpdateUILists(), VideoColourSpace::VideoColourSpace(), VideoDialogPrivate::VideoDialogPrivate(), VideoFilterSettings::VideoFilterSettings(), VideoOutput::VideoOutput(), VideoOutWindow::VideoOutWindow(), AudioOutputOSS::VolumeInit(), AudioOutputJACK::VolumeInit(), WasAutomaticStart(), Scheduler::WasStartedAutomatically(), WelcomeDialog::WelcomeDialog(), and MythFontProperties::Zoom().

◆ GetBoolSetting() [2/2]

int MythCoreContext::GetBoolSetting ( const QString &  key,
int  defaultval 
)
delete

◆ GetNumSetting() [2/2]

bool MythCoreContext::GetNumSetting ( const QString &  key,
bool  defaultvalue 
)
delete

◆ GetFloatSetting()

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

Definition at line 903 of file mythcorecontext.cpp.

Referenced by MythUIWebBrowser::Init(), and MythPlayer::MythPlayer().

◆ GetResolutionSetting() [1/2]

void MythCoreContext::GetResolutionSetting ( const QString &  type,
int &  width,
int &  height,
double &  forced_aspect,
double &  refresh_rate,
int  index = -1 
)

◆ GetResolutionSetting() [2/2]

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

Definition at line 847 of file mythcorecontext.cpp.

◆ GetSettingOnHost()

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

◆ GetBoolSettingOnHost() [1/2]

bool MythCoreContext::GetBoolSettingOnHost ( const QString &  key,
const QString &  host,
bool  defaultval = 0 
)

Definition at line 915 of file mythcorecontext.cpp.

Referenced by Dvr::ManageJobQueue().

◆ GetNumSettingOnHost() [1/2]

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

◆ GetBoolSettingOnHost() [2/2]

int MythCoreContext::GetBoolSettingOnHost ( const QString &  key,
const QString &  host,
int  defaultval 
)
delete

◆ GetNumSettingOnHost() [2/2]

bool MythCoreContext::GetNumSettingOnHost ( const QString &  key,
const QString &  host,
bool  defaultval = 0 
)
delete

◆ GetFloatSettingOnHost()

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

◆ GetBackendServerIP() [1/2]

QString MythCoreContext::GetBackendServerIP ( void  )

◆ GetBackendServerIP() [2/2]

QString MythCoreContext::GetBackendServerIP ( const QString &  host)

Returns the IP address of backend "host" If an IPv6 address has been defined, will use it whenever possible, unless the IPv6 address is a localhost address, in which case the IPv4 address will be used.

Will return an empty string if neither an IPv4 nor an IPv6 address has been defined. The address returned is free of scope Id if IPv6

Definition at line 994 of file mythcorecontext.cpp.

◆ GetBackendServerIP4() [1/2]

QString MythCoreContext::GetBackendServerIP4 ( void  )

Returns the IPv4 address defined for the current host see GetBackendServerIP4(host)

Definition at line 1003 of file mythcorecontext.cpp.

Referenced by IsMasterHost().

◆ GetBackendServerIP4() [2/2]

QString MythCoreContext::GetBackendServerIP4 ( const QString &  host)

Returns the IPv4 address defined for the backend "host".

Parameters
hostThe name of the host to lookup
Returns
An empty string if the defined IP is invalid

Definition at line 1013 of file mythcorecontext.cpp.

◆ GetBackendServerIP6() [1/2]

QString MythCoreContext::GetBackendServerIP6 ( void  )

Returns the IPv6 address defined for the current host see GetBackendServerIP6(host)

Definition at line 1022 of file mythcorecontext.cpp.

Referenced by IsMasterHost().

◆ GetBackendServerIP6() [2/2]

QString MythCoreContext::GetBackendServerIP6 ( const QString &  host)

Returns the IPv6 address defined for the backend "host".

returns an empty string if the defined IP is invalid. The IP address returned doesn't contain a scope Id

Definition at line 1032 of file mythcorecontext.cpp.

◆ GetMasterServerIP()

QString MythCoreContext::GetMasterServerIP ( void  )

Returns the Master Backend IP address If the address is an IPv6 address, the scope Id is removed.

If no master server address has been defined in the database, return localhost

Definition at line 942 of file mythcorecontext.cpp.

Referenced by HTTPRequest::AddCORSHeaders(), UPNPScanner::AddServer(), connect_to_master(), ConnectToMasterServer(), OutboundRequestHandler::DoConnectToMaster(), HttpStatus::FillStatusXML(), GetMythXMLURL(), MainServer::reconnectTimeout(), HTTPLiveStream::SetOutputVars(), and UPNPScanner::Start().

◆ GetMasterServerPort()

int MythCoreContext::GetMasterServerPort ( void  )

◆ GetMasterServerStatusPort()

int MythCoreContext::GetMasterServerStatusPort ( void  )

Returns the Master Backend status port If no master server status port has been defined in the database, return the default 6544.

Definition at line 969 of file mythcorecontext.cpp.

Referenced by HTTPRequest::AddCORSHeaders(), UPNPScanner::AddServer(), HttpStatus::FillStatusXML(), GetMythXMLURL(), HTTPLiveStream::SetOutputVars(), and UPNPScanner::Start().

◆ GetBackendServerPort() [1/2]

int MythCoreContext::GetBackendServerPort ( void  )

◆ GetBackendServerPort() [2/2]

int MythCoreContext::GetBackendServerPort ( const QString &  host)

Returns the backend "hosts"'s control port.

Definition at line 1048 of file mythcorecontext.cpp.

◆ GetBackendStatusPort() [1/2]

int MythCoreContext::GetBackendStatusPort ( void  )

◆ GetBackendStatusPort() [2/2]

int MythCoreContext::GetBackendStatusPort ( const QString &  host)

Returns the backend "hosts"'s status port.

Definition at line 1064 of file mythcorecontext.cpp.

◆ GetScopeForAddress()

bool MythCoreContext::GetScopeForAddress ( QHostAddress &  addr) const

Return the cached scope Id for the given address.

If unknown returns false, else returns true and set scope Id to given address

Definition at line 1073 of file mythcorecontext.cpp.

Referenced by PortChecker::checkPort().

◆ SetScopeForAddress() [1/2]

void MythCoreContext::SetScopeForAddress ( const QHostAddress &  addr)

Record the scope Id of the given IP address.

Parameters
addrA QHostAddress that contains both the host address and the scope to record.

Definition at line 1093 of file mythcorecontext.cpp.

Referenced by PortChecker::checkPort().

◆ SetScopeForAddress() [2/2]

void MythCoreContext::SetScopeForAddress ( const QHostAddress &  addr,
int  scope 
)

Record the scope Id of the given IP address.

Parameters
addrA QHostAddress containing the host address to record.
scopeThe scope value to record.

Definition at line 1107 of file mythcorecontext.cpp.

◆ resolveSettingAddress()

QString MythCoreContext::resolveSettingAddress ( const QString &  name,
const QString &  host = QString(),
ResolveType  type = ResolveAny,
bool  keepscope = false 
)

Retrieve IP setting "name" for "host".

If host is empty retrieve for local machine. The value returned for the given setting name, will be returned if it's an IP address or resolved otherwise. If the setting's value is null, an empty string will be returned, or if the name can't be resolved, localhost will be returned. If type == 0 an IPv4 will be returned If type == 1 an IPv6 will be returned If type < 0, either IPv4 or IPv6 will be returned with a priority given to IPv6 If keepscope boolean is clear (default), the scopeId will be removed

Definition at line 1127 of file mythcorecontext.cpp.

Referenced by GetBackendServerIP(), GetBackendServerIP4(), GetBackendServerIP6(), GetMasterServerIP(), IsMasterHost(), MainServer::MainServer(), and ServerPool::SelectDefaultListen().

◆ resolveAddress()

QString MythCoreContext::resolveAddress ( const QString &  host,
ResolveType  type = ResolveAny,
bool  keepscope = false 
) const

if host is an IP address, it will be returned or resolved otherwise.

If host is empty, an empty string will be returned, if host can't be resolved, localhost will be returned. If type == 0 an IPv4 will be returned or 127.0.0.1 If type == 1 an IPv6 will be returned or ::1 If type < 0 (default), either IPv4 or IPv6 will be returned with a priority given to IPv6 If keepscope boolean is clear (default), the scopeId will be removed

Definition at line 1156 of file mythcorecontext.cpp.

Referenced by IsMasterHost(), IsThisHost(), ping(), resolveSettingAddress(), and BackendSettings::Save().

◆ CheckSubnet() [1/2]

bool MythCoreContext::CheckSubnet ( const QAbstractSocket *  socket)

Check if a socket is connected to an approved peer.

There is a setting called AllowConnFromAll. If it is true, then no check needs to be done. If false, check that the connection comes from a subnet to which I am connected.

Parameters
socketin Socket to check.
Returns
true if the connection is allowed, false if not.

Definition at line 1231 of file mythcorecontext.cpp.

Referenced by MythSocket::MythSocket(), ServerPool::newTcpConnection(), ServerPool::newUdpDatagram(), HttpWorker::run(), and WebSocketWorker::SetupSocket().

◆ CheckSubnet() [2/2]

bool MythCoreContext::CheckSubnet ( const QHostAddress &  peer)

Check if aa ip address is approved.

There is a setting called AllowConnFromAll. If it is true, then no check needs to be done. If false, check that the connection comes from a subnet to which I am connected.

Parameters
peerin Host Address to check.
Returns
true if the connection is allowed, false if not.

Definition at line 1248 of file mythcorecontext.cpp.

◆ ClearSettingsCache()

void MythCoreContext::ClearSettingsCache ( const QString &  myKey = QString(""))

◆ ActivateSettingsCache()

void MythCoreContext::ActivateSettingsCache ( bool  activate = true)

◆ OverrideSettingForSession()

void MythCoreContext::OverrideSettingForSession ( const QString &  key,
const QString &  value 
)

◆ ClearOverrideSettingForSession()

void MythCoreContext::ClearOverrideSettingForSession ( const QString &  key)

◆ dispatch()

void MythCoreContext::dispatch ( const MythEvent event)

Definition at line 1682 of file mythcorecontext.cpp.

Referenced by LiveTVChain::BroadcastUpdate(), MainServer::connectionClosed(), connectionClosed(), MythWebView::customEvent(), MainServer::customEvent(), MusicPlayer::customEvent(), Dvr::DeleteRecording(), 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::HandleRecording(), 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(), RegisterFileForWrite(), ResetSockets(), JobQueue::RestartJob(), JobQueue::ResumeJob(), AlarmNotifyThread::run(), Reconnect::run(), Scheduler::run(), SignalMonitor::run(), TVRec::run(), SettingsHelper::RunEpilog(), AutoExpire::SendDeleteMessages(), SendEvent(), SendMessage(), PlaybackSock::SendReceiveStringList(), SendReceiveStringList(), ScheduledRecording::SendReschedule(), MainServer::SendSlaveDisconnectedEvent(), TVRec::SetLiveRecording(), RecorderBase::SetRecordingStatus(), BrowserApi::SetVolume(), Scheduler::ShutdownServer(), VisualizationSettings::slotSave(), RatingSettings::slotSave(), ImportSettings::slotSave(), GeneralSettings::slotSave(), TVRec::StartRecording(), TV::StartTV(), BrowserApi::Stop(), JobQueue::StopJob(), Dvr::StopRecording(), MHIContext::TuneTo(), TVRec::TuningFrequency(), TVRec::TuningNewRecorder(), TVRec::TuningSignalCheck(), Dvr::UnDeleteRecording(), UnregisterFileForWrite(), and Scheduler::UpdateRecStatus().

◆ InitLocale()

void MythCoreContext::InitLocale ( void  )

Definition at line 1766 of file mythcorecontext.cpp.

Referenced by GetQLocale(), MythContextPrivate::Init(), and SaveLocaleDefaults().

◆ ReInitLocale()

void MythCoreContext::ReInitLocale ( void  )

Definition at line 1777 of file mythcorecontext.cpp.

Referenced by reloadTheme(), and resetTheme().

◆ GetLocale()

MythLocale * MythCoreContext::GetLocale ( void  ) const

◆ GetQLocale()

QLocale MythCoreContext::GetQLocale ( void  )

◆ SaveLocaleDefaults()

void MythCoreContext::SaveLocaleDefaults ( void  )

Definition at line 1798 of file mythcorecontext.cpp.

Referenced by MythContextPrivate::Init().

◆ GetLanguage()

QString MythCoreContext::GetLanguage ( void  )

◆ GetLanguageAndVariant()

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 1742 of file mythcorecontext.cpp.

Referenced by HTTPRequest::BuildResponseHeader(), MythUIVirtualKeyboard::Create(), GetLanguage(), MythUIText::ParseElement(), and MythThemedMenu::parseThemeButton().

◆ ResetLanguage()

void MythCoreContext::ResetLanguage ( void  )

Definition at line 1750 of file mythcorecontext.cpp.

Referenced by MythUIHelper::LoadQtConfig().

◆ ResetSockets()

void MythCoreContext::ResetSockets ( void  )

Definition at line 1755 of file mythcorecontext.cpp.

Referenced by MonitorThread::run().

◆ RegisterForPlayback()

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 1866 of file mythcorecontext.cpp.

Referenced by TV::InitFromDB(), MusicPlayer::MusicPlayer(), and MythRAOPDevice::newConnection().

◆ UnregisterForPlayback()

void MythCoreContext::UnregisterForPlayback ( QObject *  sender)

Unregister sender from being called when TVPlaybackAboutToStart signal is emitted.

Definition at line 1887 of file mythcorecontext.cpp.

Referenced by MusicPlayer::~MusicPlayer(), and TV::~TV().

◆ WantingPlayback()

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 1907 of file mythcorecontext.cpp.

Referenced by VideoPlayerCommand::Play(), MusicPlayer::play(), MythRAOPConnection::ProcessRequest(), and TV::StartTV().

◆ InWantingPlayback()

bool MythCoreContext::InWantingPlayback ( void  )

Returns true if a client has requested playback.

this can be used when one of the TVPlayback* is emitted to find out if you can assume playback has stopped

Definition at line 1986 of file mythcorecontext.cpp.

Referenced by MusicPlayer::StartPlayback().

◆ TVInWantingPlayback()

void MythCoreContext::TVInWantingPlayback ( bool  b)

Let the TV class tell us if we was interrupted following a call to WantingPlayback().

TV playback will later issue a TVPlaybackStopped() signal which we want to be able to filter

Definition at line 1974 of file mythcorecontext.cpp.

Referenced by TV::Playback(), TV::StartTV(), and TV::StopPlayback().

◆ GetSessionManager()

MythSessionManager * MythCoreContext::GetSessionManager ( void  )

◆ TestPluginVersion()

bool MythCoreContext::TestPluginVersion ( const QString &  name,
const QString &  libversion,
const QString &  pluginversion 
)

Definition at line 2010 of file mythcorecontext.cpp.

Referenced by mythplugin_init().

◆ SetPluginManager()

void MythCoreContext::SetPluginManager ( MythPluginManager pmanager)

Definition at line 2024 of file mythcorecontext.cpp.

Referenced by main().

◆ GetPluginManager()

MythPluginManager * MythCoreContext::GetPluginManager ( void  )

Definition at line 2038 of file mythcorecontext.cpp.

Referenced by configplugin_cb(), MythThemedMenu::findDepends(), and plugin_cb().

◆ SetExiting()

void MythCoreContext::SetExiting ( bool  exiting = true)

Definition at line 2043 of file mythcorecontext.cpp.

Referenced by cleanup(), and main().

◆ IsExiting()

bool MythCoreContext::IsExiting ( void  )

Definition at line 2048 of file mythcorecontext.cpp.

Referenced by ConnectToMasterServer(), and MythSocket::DisconnectFromHost().

◆ RegisterFileForWrite()

void MythCoreContext::RegisterFileForWrite ( const QString &  file,
uint64_t  size = 0LL 
)

◆ UnregisterFileForWrite()

void MythCoreContext::UnregisterFileForWrite ( const QString &  file)

◆ IsRegisteredFileForWrite()

bool MythCoreContext::IsRegisteredFileForWrite ( const QString &  file)

◆ WaitUntilSignals()

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 1831 of file mythcorecontext.cpp.

Referenced by MythAirplayServer::PausePlayback(), MythAirplayServer::SeekPosition(), MythAirplayServer::StartPlayback(), MythAirplayServer::StopPlayback(), and MythAirplayServer::UnpausePlayback().

◆ emitTVPlaybackStarted()

void MythCoreContext::emitTVPlaybackStarted ( void  )
inline

Definition at line 243 of file mythcorecontext.h.

Referenced by playDisc(), and TV::StartTV().

◆ emitTVPlaybackStopped()

void MythCoreContext::emitTVPlaybackStopped ( void  )
inline

◆ emitTVPlaybackSought()

void MythCoreContext::emitTVPlaybackSought ( qint64  position)
inline

Definition at line 245 of file mythcorecontext.h.

Referenced by TV::DoSeekAbsolute().

◆ emitTVPlaybackPaused()

void MythCoreContext::emitTVPlaybackPaused ( void  )
inline

Definition at line 246 of file mythcorecontext.h.

Referenced by TV::DoTogglePause().

◆ emitTVPlaybackUnpaused()

void MythCoreContext::emitTVPlaybackUnpaused ( void  )
inline

Definition at line 247 of file mythcorecontext.h.

Referenced by TV::DoPlay(), and TV::DoTogglePause().

◆ emitTVPlaybackAborted()

void MythCoreContext::emitTVPlaybackAborted ( void  )
inline

Definition at line 248 of file mythcorecontext.h.

Referenced by TV::StartTV().

◆ emitTVPlaybackPlaying()

void MythCoreContext::emitTVPlaybackPlaying ( void  )
inline

Definition at line 249 of file mythcorecontext.h.

Referenced by TV::DoPlay().

◆ TVPlaybackStarted

void MythCoreContext::TVPlaybackStarted ( void  )
signal

◆ TVPlaybackStopped

void MythCoreContext::TVPlaybackStopped ( void  )
signal

◆ TVPlaybackSought

void MythCoreContext::TVPlaybackSought ( qint64  position)
signal

◆ TVPlaybackPaused

void MythCoreContext::TVPlaybackPaused ( void  )
signal

◆ TVPlaybackUnpaused

void MythCoreContext::TVPlaybackUnpaused ( void  )
signal

◆ TVPlaybackAborted

void MythCoreContext::TVPlaybackAborted ( void  )
signal

◆ TVPlaybackAboutToStart

void MythCoreContext::TVPlaybackAboutToStart ( void  )
signal

◆ TVPlaybackPlaying

void MythCoreContext::TVPlaybackPlaying ( void  )
signal

◆ connected()

void MythCoreContext::connected ( MythSocket sock)
inlineoverrideprivatevirtual

Implements MythSocketCBs.

Definition at line 268 of file mythcorecontext.h.

◆ connectionFailed()

void MythCoreContext::connectionFailed ( MythSocket sock)
inlineoverrideprivatevirtual

Implements MythSocketCBs.

Definition at line 269 of file mythcorecontext.h.

◆ connectionClosed()

void MythCoreContext::connectionClosed ( MythSocket sock)
overrideprivatevirtual

Implements MythSocketCBs.

Definition at line 1615 of file mythcorecontext.cpp.

◆ readyRead()

void MythCoreContext::readyRead ( MythSocket sock)
overrideprivatevirtual

Implements MythSocketCBs.

Definition at line 1523 of file mythcorecontext.cpp.

Member Data Documentation

◆ d

MythCoreContextPrivate* MythCoreContext::d {nullptr}
private

Definition at line 266 of file mythcorecontext.h.

Referenced by ActivateSettingsCache(), AllowShutdown(), BlockShutdown(), CheckProtoVersion(), CheckSubnet(), ClearOverrideSettingForSession(), ClearSettingsCache(), ConnectCommandSocket(), ConnectEventSocket(), ConnectToMasterServer(), GetBackendServerIP(), GetBackendServerIP4(), GetBackendServerIP6(), GetBackendServerPort(), GetBackendStatusPort(), GetDB(), GetDBManager(), GetFloatSetting(), GetFloatSettingOnHost(), GetGUIContext(), GetGUIObject(), GetHostName(), GetLanguageAndVariant(), GetLocale(), GetMasterHostName(), GetNumSetting(), GetNumSettingOnHost(), GetPluginManager(), GetQLocale(), GetResolutionSetting(), GetScheduler(), GetScopeForAddress(), GetSessionManager(), GetSetting(), GetSettingOnHost(), HasGUI(), Init(), InitLocale(), InWantingPlayback(), IsBackend(), IsBlockingClient(), IsConnectedToMaster(), IsDatabaseIgnored(), IsExiting(), IsFrontend(), IsRegisteredFileForWrite(), IsUIThread(), IsWOLAllowed(), MythCoreContext(), OverrideSettingForSession(), RegisterFileForWrite(), RegisterForPlayback(), ReInitLocale(), ResetLanguage(), ResetSockets(), SafeConnectToMasterServer(), SaveLocaleDefaults(), SaveSetting(), SaveSettingOnHost(), SendReceiveStringList(), SetAsBackend(), SetAsFrontend(), SetExiting(), SetGUIObject(), SetLocalHostname(), SetPluginManager(), SetScheduler(), SetScopeForAddress(), SetWOLAllowed(), TVInWantingPlayback(), UnregisterFileForWrite(), UnregisterForPlayback(), WantingPlayback(), and ~MythCoreContext().


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