MythTV
master
|
Startup context for MythTV. More...
#include <mythcontext.h>
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) |
bool | SaveDatabaseParams (const DatabaseParams ¶ms, bool force=false) |
bool | saveSettingsCache (void) |
void | SetDisableEventPopup (bool check) |
Private Attributes | |
MythContextPrivate * | d {nullptr} |
QString | m_appBinaryVersion |
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 43 of file mythcontext.h.
Definition at line 1568 of file mythcontext.cpp.
|
virtual |
Definition at line 1684 of file mythcontext.cpp.
bool MythContext::Init | ( | bool | gui = true , |
bool | promptForBackend = false , |
||
bool | disableAutoDiscovery = false , |
||
bool | ignoreDB = false |
||
) |
Definition at line 1594 of file mythcontext.cpp.
Referenced by main(), and main_local().
bool MythContext::SaveDatabaseParams | ( | const DatabaseParams & | params, |
bool | force = false |
||
) |
Definition at line 1709 of file mythcontext.cpp.
Referenced by DatabaseSettings::Save(), V2Myth::SetConnectionInfo(), and V2Config::SetDatabaseCredentials().
bool MythContext::saveSettingsCache | ( | void | ) |
Definition at line 1714 of file mythcontext.cpp.
Referenced by Init().
void MythContext::SetDisableEventPopup | ( | bool | check | ) |
Definition at line 1704 of file mythcontext.cpp.
Referenced by ExitPrompter::Confirm(), ExitPrompter::HandleExit(), and Init().
|
private |
Definition at line 61 of file mythcontext.h.
Referenced by Init(), MythContext(), SaveDatabaseParams(), saveSettingsCache(), SetDisableEventPopup(), and ~MythContext().
|
private |
Definition at line 62 of file mythcontext.h.
Referenced by Init(), and MythContext().