MythTV
master
|
Startup context for MythTV. More...
#include <libmyth/mythcontext.h>
Classes | |
class | Impl |
Public Types | |
using | CleanupFunction = void(*)() |
Public Member Functions | |
MythContext (QString binversion, bool needsBackend=false) | |
virtual | ~MythContext () |
bool | Init (bool gui=true, bool promptForBackend=false, bool disableAutoDiscovery=false, bool ignoreDB=false) |
void | setCleanup (CleanupFunction cleanup) |
bool | saveSettingsCache () |
void | SetDisableEventPopup (bool check) |
Private Attributes | |
Impl * | m_impl {nullptr} |
PIMPL idiom. More... | |
QString | m_appBinaryVersion |
CleanupFunction | m_cleanup {nullptr} |
This is used to destroy global state before main() returns. More... | |
Startup context for MythTV.
This class has methods used during startup for setting up database connections, checking for correct database version, locating the backend. After startup, context information is handled by MythCoreContext.
Definition at line 19 of file mythcontext.h.
using MythContext::CleanupFunction = void (*)() |
Definition at line 30 of file mythcontext.h.
Definition at line 1539 of file mythcontext.cpp.
|
virtual |
Definition at line 1665 of file mythcontext.cpp.
bool MythContext::Init | ( | bool | gui = true , |
bool | promptForBackend = false , |
||
bool | disableAutoDiscovery = false , |
||
bool | ignoreDB = false |
||
) |
Definition at line 1566 of file mythcontext.cpp.
|
inline |
Definition at line 31 of file mythcontext.h.
bool MythContext::saveSettingsCache | ( | ) |
Definition at line 1703 of file mythcontext.cpp.
Referenced by Init().
void MythContext::SetDisableEventPopup | ( | bool | check | ) |
Definition at line 1698 of file mythcontext.cpp.
Referenced by Init().
|
private |
PIMPL idiom.
Definition at line 41 of file mythcontext.h.
Referenced by Init(), MythContext(), saveSettingsCache(), SetDisableEventPopup(), and ~MythContext().
|
private |
Definition at line 42 of file mythcontext.h.
Referenced by Init(), and MythContext().
|
private |
This is used to destroy global state before main() returns.
It is called first before anything else is done in ~MythContext() if it is not nullptr.
Definition at line 47 of file mythcontext.h.
Referenced by ~MythContext().