MythTV  master
Public Member Functions | Public Attributes | List of all members
MythCoreContextPrivate Class Reference
Inheritance diagram for MythCoreContextPrivate:
[legend]
Collaboration diagram for MythCoreContextPrivate:
[legend]

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

MythCoreContextm_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...
 
MythSocketm_serverSock { nullptr }
 socket for sending MythProto requests More...
 
MythSocketm_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 }
 
MythDBm_database { nullptr }
 
QThread * m_uiThread { nullptr }
 
MythLocalem_locale { nullptr }
 
QString m_language
 
QString m_audioLanguage
 
MythSchedulerm_scheduler { nullptr }
 
bool m_blockingClient { true }
 
QMap< QObject *, MythCoreContext::PlaybackStartCbm_playbackClients
 
QMutex m_playbackLock
 
bool m_inwanting { false }
 
bool m_intvwanting { false }
 
bool m_announcedProtocol { false }
 
MythPluginManagerm_pluginmanager { nullptr }
 
bool m_isexiting { false }
 
QMap< QString, QPair< int64_t, uint64_t > > m_fileswritten
 
QMutex m_fileslock
 
MythSessionManagerm_sessionManager { nullptr }
 
QList< QHostAddress > m_approvedIps
 
QList< QHostAddress > m_deniedIps
 
MythPowerm_power { nullptr }
 

Detailed Description

Definition at line 59 of file mythcorecontext.cpp.

Constructor & Destructor Documentation

◆ MythCoreContextPrivate()

MythCoreContextPrivate::MythCoreContextPrivate ( MythCoreContext lparent,
QString  binversion,
QObject *  guicontext 
)

Definition at line 127 of file mythcorecontext.cpp.

◆ ~MythCoreContextPrivate()

MythCoreContextPrivate::~MythCoreContextPrivate ( )
override

Definition at line 157 of file mythcorecontext.cpp.

Member Function Documentation

◆ WaitForWOL()

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().

Member Data Documentation

◆ m_parent

MythCoreContext* MythCoreContextPrivate::m_parent { nullptr }

Definition at line 69 of file mythcorecontext.cpp.

◆ m_guiContext

QObject* MythCoreContextPrivate::m_guiContext { nullptr }

◆ m_guiObject

QObject* MythCoreContextPrivate::m_guiObject { nullptr }

◆ m_appBinaryVersion

QString MythCoreContextPrivate::m_appBinaryVersion

Definition at line 72 of file mythcorecontext.cpp.

Referenced by MythCoreContext::Init().

◆ m_localHostLock

QMutex MythCoreContextPrivate::m_localHostLock

Locking for m_localHostname.

Definition at line 74 of file mythcorecontext.cpp.

Referenced by MythCoreContext::GetHostName(), and MythCoreContext::SetLocalHostname().

◆ m_localHostname

QString MythCoreContextPrivate::m_localHostname

◆ m_masterHostLock

QMutex MythCoreContextPrivate::m_masterHostLock

Locking for m_masterHostname.

Definition at line 76 of file mythcorecontext.cpp.

Referenced by MythCoreContext::GetMasterHostName().

◆ m_masterHostname

QString MythCoreContextPrivate::m_masterHostname

master backend hostname

Definition at line 77 of file mythcorecontext.cpp.

Referenced by MythCoreContext::GetMasterHostName().

◆ m_scopesLock

QMutex MythCoreContextPrivate::m_scopesLock

Locking for m_masterHostname.

Definition at line 78 of file mythcorecontext.cpp.

Referenced by MythCoreContext::GetScopeForAddress(), and MythCoreContext::SetScopeForAddress().

◆ m_scopes

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().

◆ m_sockLock

QMutex MythCoreContextPrivate::m_sockLock

◆ m_serverSock

MythSocket* MythCoreContextPrivate::m_serverSock { nullptr }

◆ m_eventSock

MythSocket* MythCoreContextPrivate::m_eventSock { nullptr }

◆ m_wolInProgressLock

QMutex MythCoreContextPrivate::m_wolInProgressLock

Definition at line 85 of file mythcorecontext.cpp.

Referenced by MythCoreContext::ConnectCommandSocket(), and WaitForWOL().

◆ m_wolInProgressWaitCondition

QWaitCondition MythCoreContextPrivate::m_wolInProgressWaitCondition

Definition at line 86 of file mythcorecontext.cpp.

Referenced by MythCoreContext::ConnectCommandSocket(), and WaitForWOL().

◆ m_wolInProgress

bool MythCoreContextPrivate::m_wolInProgress { false }

Definition at line 87 of file mythcorecontext.cpp.

Referenced by MythCoreContext::ConnectCommandSocket(), and WaitForWOL().

◆ m_isWOLAllowed

bool MythCoreContextPrivate::m_isWOLAllowed { true }

◆ m_backend

bool MythCoreContextPrivate::m_backend { false }

◆ m_frontend

bool MythCoreContextPrivate::m_frontend { false }

◆ m_database

MythDB* MythCoreContextPrivate::m_database { nullptr }

◆ m_uiThread

QThread* MythCoreContextPrivate::m_uiThread { nullptr }

Definition at line 95 of file mythcorecontext.cpp.

Referenced by MythCoreContext::IsUIThread().

◆ m_locale

MythLocale* MythCoreContextPrivate::m_locale { nullptr }

◆ m_language

QString MythCoreContextPrivate::m_language

◆ m_audioLanguage

QString MythCoreContextPrivate::m_audioLanguage

◆ m_scheduler

MythScheduler* MythCoreContextPrivate::m_scheduler { nullptr }

◆ m_blockingClient

bool MythCoreContextPrivate::m_blockingClient { true }

◆ m_playbackClients

QMap<QObject *, MythCoreContext::PlaybackStartCb> MythCoreContextPrivate::m_playbackClients

◆ m_playbackLock

QMutex MythCoreContextPrivate::m_playbackLock

◆ m_inwanting

bool MythCoreContextPrivate::m_inwanting { false }

◆ m_intvwanting

bool MythCoreContextPrivate::m_intvwanting { false }

◆ m_announcedProtocol

bool MythCoreContextPrivate::m_announcedProtocol { false }

Definition at line 110 of file mythcorecontext.cpp.

Referenced by MythCoreContext::CheckProtoVersion().

◆ m_pluginmanager

MythPluginManager* MythCoreContextPrivate::m_pluginmanager { nullptr }

◆ m_isexiting

bool MythCoreContextPrivate::m_isexiting { false }

Definition at line 114 of file mythcorecontext.cpp.

Referenced by MythCoreContext::IsExiting(), and MythCoreContext::SetExiting().

◆ m_fileswritten

QMap<QString, QPair<int64_t, uint64_t> > MythCoreContextPrivate::m_fileswritten

◆ m_fileslock

QMutex MythCoreContextPrivate::m_fileslock

◆ m_sessionManager

MythSessionManager* MythCoreContextPrivate::m_sessionManager { nullptr }

◆ m_approvedIps

QList<QHostAddress> MythCoreContextPrivate::m_approvedIps

Definition at line 121 of file mythcorecontext.cpp.

Referenced by MythCoreContext::CheckSubnet().

◆ m_deniedIps

QList<QHostAddress> MythCoreContextPrivate::m_deniedIps

Definition at line 122 of file mythcorecontext.cpp.

Referenced by MythCoreContext::CheckSubnet().

◆ m_power

MythPower* MythCoreContextPrivate::m_power { nullptr }

Definition at line 124 of file mythcorecontext.cpp.

Referenced by MythCoreContext::InitPower(), and ~MythCoreContextPrivate().


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