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) |
DatabaseParams | GetDatabaseParams (void) |
bool | SaveDatabaseParams (const DatabaseParams ¶ms) |
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 1537 of file mythcontext.cpp.
|
virtual |
Definition at line 1650 of file mythcontext.cpp.
bool MythContext::Init | ( | bool | gui = true , |
bool | promptForBackend = false , |
||
bool | disableAutoDiscovery = false , |
||
bool | ignoreDB = false |
||
) |
Definition at line 1562 of file mythcontext.cpp.
Referenced by main().
DatabaseParams MythContext::GetDatabaseParams | ( | void | ) |
Definition at line 1675 of file mythcontext.cpp.
Referenced by doUpgradeMusicDatabaseSchema(), getDBParamters(), InitializeDatabase(), DatabaseSettings::Load(), MythContextPrivate::PromptForDatabaseParams(), DatabaseSettings::Save(), UpgradeArchiveDatabaseSchema(), and UpgradeGameDatabaseSchema().
bool MythContext::SaveDatabaseParams | ( | const DatabaseParams & | params | ) |
Definition at line 1680 of file mythcontext.cpp.
Referenced by MythContextPrivate::PromptForDatabaseParams(), and DatabaseSettings::Save().
bool MythContext::saveSettingsCache | ( | void | ) |
Definition at line 1685 of file mythcontext.cpp.
Referenced by Init().
void MythContext::SetDisableEventPopup | ( | bool | check | ) |
Definition at line 1670 of file mythcontext.cpp.
Referenced by ExitPrompter::Confirm(), ExitPrompter::HandleExit(), and Init().
|
private |
Definition at line 62 of file mythcontext.h.
Referenced by GetDatabaseParams(), Init(), MythContext(), SaveDatabaseParams(), saveSettingsCache(), SetDisableEventPopup(), and ~MythContext().
|
private |
Definition at line 63 of file mythcontext.h.
Referenced by Init(), and MythContext().