MythTV
master
|
Public Member Functions | |
MythCoreContextPrivate (MythCoreContext *lparent, QString binversion, QObject *guicontext) | |
~MythCoreContextPrivate () override | |
bool | WaitForWOL (std::chrono::milliseconds timeout=std::chrono::milliseconds::max()) |
If another thread has already started WOL process, wait on them... More... | |
Public Attributes | |
MythCoreContext * | m_parent { nullptr } |
QObject * | m_guiContext { nullptr } |
QObject * | m_guiObject { nullptr } |
QString | m_appBinaryVersion |
QMutex | m_localHostLock |
Locking for m_localHostname. More... | |
QString | m_localHostname |
hostname from config.xml or gethostname() More... | |
QMutex | m_masterHostLock |
Locking for m_masterHostname. More... | |
QString | m_masterHostname |
master backend hostname More... | |
QMutex | m_scopesLock |
Locking for m_masterHostname. More... | |
QMap< QString, QString > | m_scopes |
Scope Id cache for Link-Local addresses. More... | |
QMutex | m_sockLock |
protects both m_serverSock and m_eventSock More... | |
MythSocket * | m_serverSock { nullptr } |
socket for sending MythProto requests More... | |
MythSocket * | m_eventSock { nullptr } |
socket events arrive on More... | |
QMutex | m_wolInProgressLock |
QWaitCondition | m_wolInProgressWaitCondition |
bool | m_wolInProgress { false } |
bool | m_isWOLAllowed { true } |
bool | m_backend { false } |
bool | m_frontend { false } |
MythDB * | m_database { nullptr } |
QThread * | m_uiThread { nullptr } |
MythLocale * | m_locale { nullptr } |
QString | m_language |
QString | m_audioLanguage |
MythScheduler * | m_scheduler { nullptr } |
bool | m_blockingClient { true } |
QMap< QObject *, MythCoreContext::PlaybackStartCb > | m_playbackClients |
QMutex | m_playbackLock |
bool | m_inwanting { false } |
bool | m_intvwanting { false } |
bool | m_announcedProtocol { false } |
MythPluginManager * | m_pluginmanager { nullptr } |
bool | m_isexiting { false } |
QMap< QString, QPair< int64_t, uint64_t > > | m_fileswritten |
QMutex | m_fileslock |
MythSessionManager * | m_sessionManager { nullptr } |
QList< QHostAddress > | m_approvedIps |
QList< QHostAddress > | m_deniedIps |
MythPower * | m_power { nullptr } |
Definition at line 59 of file mythcorecontext.cpp.
MythCoreContextPrivate::MythCoreContextPrivate | ( | MythCoreContext * | lparent, |
QString | binversion, | ||
QObject * | guicontext | ||
) |
Definition at line 127 of file mythcorecontext.cpp.
|
override |
Definition at line 157 of file mythcorecontext.cpp.
bool MythCoreContextPrivate::WaitForWOL | ( | std::chrono::milliseconds | timeout = std::chrono::milliseconds::max() | ) |
If another thread has already started WOL process, wait on them...
Note: Caller must be holding m_WOLInProgressLock.
Definition at line 201 of file mythcorecontext.cpp.
Referenced by MythCoreContext::ConnectCommandSocket().
MythCoreContext* MythCoreContextPrivate::m_parent { nullptr } |
Definition at line 69 of file mythcorecontext.cpp.
QObject* MythCoreContextPrivate::m_guiContext { nullptr } |
Definition at line 70 of file mythcorecontext.cpp.
Referenced by MythCoreContext::CheckProtoVersion(), MythCoreContext::ConnectCommandSocket(), MythCoreContext::ConnectToMasterServer(), MythCoreContext::GetGUIContext(), and MythCoreContext::SendReceiveStringList().
QObject* MythCoreContextPrivate::m_guiObject { nullptr } |
Definition at line 71 of file mythcorecontext.cpp.
Referenced by MythCoreContext::GetGUIObject(), MythCoreContext::HasGUI(), and MythCoreContext::SetGUIObject().
QString MythCoreContextPrivate::m_appBinaryVersion |
Definition at line 72 of file mythcorecontext.cpp.
Referenced by MythCoreContext::Init().
QMutex MythCoreContextPrivate::m_localHostLock |
Locking for m_localHostname.
Definition at line 74 of file mythcorecontext.cpp.
Referenced by MythCoreContext::GetHostName(), and MythCoreContext::SetLocalHostname().
QString MythCoreContextPrivate::m_localHostname |
hostname from config.xml or gethostname()
Definition at line 75 of file mythcorecontext.cpp.
Referenced by MythCoreContext::ConnectEventSocket(), MythCoreContext::ConnectToMasterServer(), MythCoreContext::GetBackendServerIP(), MythCoreContext::GetBackendServerIP4(), MythCoreContext::GetBackendServerIP6(), MythCoreContext::GetBackendServerPort(), MythCoreContext::GetBackendStatusPort(), MythCoreContext::GetHostName(), MythCoreContext::GetMasterHostName(), and MythCoreContext::SetLocalHostname().
QMutex MythCoreContextPrivate::m_masterHostLock |
Locking for m_masterHostname.
Definition at line 76 of file mythcorecontext.cpp.
Referenced by MythCoreContext::GetMasterHostName().
QString MythCoreContextPrivate::m_masterHostname |
master backend hostname
Definition at line 77 of file mythcorecontext.cpp.
Referenced by MythCoreContext::GetMasterHostName().
QMutex MythCoreContextPrivate::m_scopesLock |
Locking for m_masterHostname.
Definition at line 78 of file mythcorecontext.cpp.
Referenced by MythCoreContext::GetScopeForAddress(), and MythCoreContext::SetScopeForAddress().
QMap<QString, QString> MythCoreContextPrivate::m_scopes |
Scope Id cache for Link-Local addresses.
Definition at line 79 of file mythcorecontext.cpp.
Referenced by MythCoreContext::GetScopeForAddress(), and MythCoreContext::SetScopeForAddress().
QMutex MythCoreContextPrivate::m_sockLock |
protects both m_serverSock and m_eventSock
Definition at line 81 of file mythcorecontext.cpp.
Referenced by MythCoreContext::AllowShutdown(), MythCoreContext::BlockShutdown(), MythCoreContext::IsConnectedToMaster(), MythCoreContext::ResetSockets(), MythCoreContext::SafeConnectToMasterServer(), MythCoreContext::SendReceiveStringList(), and ~MythCoreContextPrivate().
MythSocket* MythCoreContextPrivate::m_serverSock { nullptr } |
socket for sending MythProto requests
Definition at line 82 of file mythcorecontext.cpp.
Referenced by MythCoreContext::AllowShutdown(), MythCoreContext::BlockShutdown(), MythCoreContext::ConnectToMasterServer(), MythCoreContext::IsConnectedToMaster(), MythCoreContext::ResetSockets(), MythCoreContext::SendReceiveStringList(), and ~MythCoreContextPrivate().
MythSocket* MythCoreContextPrivate::m_eventSock { nullptr } |
socket events arrive on
Definition at line 83 of file mythcorecontext.cpp.
Referenced by MythCoreContext::ConnectToMasterServer(), MythCoreContext::ResetSockets(), MythCoreContext::SendReceiveStringList(), and ~MythCoreContextPrivate().
QMutex MythCoreContextPrivate::m_wolInProgressLock |
Definition at line 85 of file mythcorecontext.cpp.
Referenced by MythCoreContext::ConnectCommandSocket(), and WaitForWOL().
QWaitCondition MythCoreContextPrivate::m_wolInProgressWaitCondition |
Definition at line 86 of file mythcorecontext.cpp.
Referenced by MythCoreContext::ConnectCommandSocket(), and WaitForWOL().
Definition at line 87 of file mythcorecontext.cpp.
Referenced by MythCoreContext::ConnectCommandSocket(), and WaitForWOL().
Definition at line 88 of file mythcorecontext.cpp.
Referenced by MythCoreContext::IsWOLAllowed(), and MythCoreContext::SetWOLAllowed().
Definition at line 90 of file mythcorecontext.cpp.
Referenced by MythCoreContext::IsBackend(), and MythCoreContext::SetAsBackend().
Definition at line 91 of file mythcorecontext.cpp.
Referenced by MythCoreContext::IsFrontend(), and MythCoreContext::SetAsFrontend().
MythDB* MythCoreContextPrivate::m_database { nullptr } |
Definition at line 93 of file mythcorecontext.cpp.
Referenced by MythCoreContext::ActivateSettingsCache(), MythCoreContext::ClearOverrideSettingForSession(), MythCoreContext::ClearSettingsCache(), MythCoreContext::GetDB(), MythCoreContext::GetDBManager(), MythCoreContext::GetFloatSetting(), MythCoreContext::GetFloatSettingOnHost(), MythCoreContext::GetNumSetting(), MythCoreContext::GetNumSettingOnHost(), MythCoreContext::GetResolutionSetting(), MythCoreContext::GetSetting(), MythCoreContext::GetSettingOnHost(), MythCoreContext::IsDatabaseIgnored(), MythCoreContext::OverrideSettingForSession(), MythCoreContext::SaveSetting(), MythCoreContext::SaveSettingOnHost(), MythCoreContext::SetLocalHostname(), and ~MythCoreContextPrivate().
QThread* MythCoreContextPrivate::m_uiThread { nullptr } |
Definition at line 95 of file mythcorecontext.cpp.
Referenced by MythCoreContext::IsUIThread().
MythLocale* MythCoreContextPrivate::m_locale { nullptr } |
Definition at line 97 of file mythcorecontext.cpp.
Referenced by MythCoreContext::GetLocale(), MythCoreContext::GetQLocale(), MythCoreContext::InitLocale(), MythCoreContext::ReInitLocale(), MythCoreContext::SaveLocaleDefaults(), and ~MythCoreContextPrivate().
QString MythCoreContextPrivate::m_language |
Definition at line 98 of file mythcorecontext.cpp.
Referenced by MythCoreContext::GetLanguageAndVariant(), and MythCoreContext::ResetLanguage().
QString MythCoreContextPrivate::m_audioLanguage |
Definition at line 99 of file mythcorecontext.cpp.
Referenced by MythCoreContext::GetAudioLanguageAndVariant(), and MythCoreContext::ResetAudioLanguage().
MythScheduler* MythCoreContextPrivate::m_scheduler { nullptr } |
Definition at line 101 of file mythcorecontext.cpp.
Referenced by MythCoreContext::GetScheduler(), and MythCoreContext::SetScheduler().
Definition at line 103 of file mythcorecontext.cpp.
Referenced by MythCoreContext::AllowShutdown(), MythCoreContext::BlockShutdown(), MythCoreContext::ConnectToMasterServer(), MythCoreContext::IsBlockingClient(), and MythCoreContext::SendReceiveStringList().
QMap<QObject *, MythCoreContext::PlaybackStartCb> MythCoreContextPrivate::m_playbackClients |
Definition at line 105 of file mythcorecontext.cpp.
Referenced by MythCoreContext::RegisterForPlayback(), MythCoreContext::UnregisterForPlayback(), and MythCoreContext::WantingPlayback().
QMutex MythCoreContextPrivate::m_playbackLock |
Definition at line 106 of file mythcorecontext.cpp.
Referenced by MythCoreContext::InWantingPlayback(), MythCoreContext::RegisterForPlayback(), MythCoreContext::UnregisterForPlayback(), and MythCoreContext::WantingPlayback().
Definition at line 107 of file mythcorecontext.cpp.
Referenced by MythCoreContext::InWantingPlayback(), and MythCoreContext::WantingPlayback().
Definition at line 108 of file mythcorecontext.cpp.
Referenced by MythCoreContext::InWantingPlayback(), and MythCoreContext::TVInWantingPlayback().
Definition at line 110 of file mythcorecontext.cpp.
Referenced by MythCoreContext::CheckProtoVersion().
MythPluginManager* MythCoreContextPrivate::m_pluginmanager { nullptr } |
Definition at line 112 of file mythcorecontext.cpp.
Referenced by MythCoreContext::GetPluginManager(), and MythCoreContext::SetPluginManager().
Definition at line 114 of file mythcorecontext.cpp.
Referenced by MythCoreContext::IsExiting(), and MythCoreContext::SetExiting().
QMap<QString, QPair<int64_t, uint64_t> > MythCoreContextPrivate::m_fileswritten |
Definition at line 116 of file mythcorecontext.cpp.
Referenced by MythCoreContext::IsRegisteredFileForWrite(), MythCoreContext::RegisterFileForWrite(), and MythCoreContext::UnregisterFileForWrite().
QMutex MythCoreContextPrivate::m_fileslock |
Definition at line 117 of file mythcorecontext.cpp.
Referenced by MythCoreContext::IsRegisteredFileForWrite(), MythCoreContext::RegisterFileForWrite(), and MythCoreContext::UnregisterFileForWrite().
MythSessionManager* MythCoreContextPrivate::m_sessionManager { nullptr } |
Definition at line 119 of file mythcorecontext.cpp.
Referenced by MythCoreContext::GetSessionManager(), and ~MythCoreContextPrivate().
QList<QHostAddress> MythCoreContextPrivate::m_approvedIps |
Definition at line 121 of file mythcorecontext.cpp.
Referenced by MythCoreContext::CheckSubnet().
QList<QHostAddress> MythCoreContextPrivate::m_deniedIps |
Definition at line 122 of file mythcorecontext.cpp.
Referenced by MythCoreContext::CheckSubnet().
MythPower* MythCoreContextPrivate::m_power { nullptr } |
Definition at line 124 of file mythcorecontext.cpp.
Referenced by MythCoreContext::InitPower(), and ~MythCoreContextPrivate().