MythTV
master
|
Startup context for MythTV. More...
#include <mythcontext.h>
Public Types | |
enum | WebOnlyStartup { kWebOnlyNone = 0, kWebOnlyDBSetup = 1, kWebOnlyDBTimezone = 2, kWebOnlyWebOnlyParm = 3, kWebOnlyIPAddress = 4, kWebOnlySchemaUpdate = 5 } |
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) |
void | setWebOnly (WebOnlyStartup w) |
WebOnlyStartup | getWebOnly (void) |
Private Attributes | |
MythContextPrivate * | d {nullptr} |
QString | m_appBinaryVersion |
WebOnlyStartup | m_webOnly {kWebOnlyNone} |
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.
Enumerator | |
---|---|
kWebOnlyNone | |
kWebOnlyDBSetup | |
kWebOnlyDBTimezone | |
kWebOnlyWebOnlyParm | |
kWebOnlyIPAddress | |
kWebOnlySchemaUpdate |
Definition at line 59 of file mythcontext.h.
Definition at line 1577 of file mythcontext.cpp.
|
virtual |
Definition at line 1702 of file mythcontext.cpp.
bool MythContext::Init | ( | bool | gui = true , |
bool | promptForBackend = false , |
||
bool | disableAutoDiscovery = false , |
||
bool | ignoreDB = false |
||
) |
Definition at line 1603 of file mythcontext.cpp.
Referenced by main(), and main_local().
bool MythContext::SaveDatabaseParams | ( | const DatabaseParams & | params, |
bool | force = false |
||
) |
Definition at line 1727 of file mythcontext.cpp.
Referenced by MythContextPrivate::PromptForDatabaseParams(), DatabaseSettings::Save(), V2Myth::SetConnectionInfo(), and V2Config::SetDatabaseCredentials().
bool MythContext::saveSettingsCache | ( | void | ) |
Definition at line 1732 of file mythcontext.cpp.
Referenced by Init().
void MythContext::SetDisableEventPopup | ( | bool | check | ) |
Definition at line 1722 of file mythcontext.cpp.
Referenced by ExitPrompter::Confirm(), ExitPrompter::HandleExit(), and Init().
|
inline |
Definition at line 68 of file mythcontext.h.
Referenced by main(), and run_backend().
|
inline |
Definition at line 69 of file mythcontext.h.
Referenced by V2Myth::GetBackendInfo().
|
private |
Definition at line 73 of file mythcontext.h.
Referenced by Init(), MythContext(), SaveDatabaseParams(), saveSettingsCache(), SetDisableEventPopup(), and ~MythContext().
|
private |
Definition at line 74 of file mythcontext.h.
Referenced by Init(), and MythContext().
|
private |
Definition at line 75 of file mythcontext.h.