This class contains the runtime context for MythTV. More...
#include <mythcontext.h>
Public Member Functions | |
| MythContext (const QString &binversion) | |
| virtual | ~MythContext () |
| bool | Init (const bool gui=true, const bool promptForBackend=false, const bool bypassAutoDiscovery=false, const bool ignoreDB=false) |
| DatabaseParams | GetDatabaseParams (void) |
| bool | SaveDatabaseParams (const DatabaseParams ¶ms) |
| bool | TestPopupVersion (const QString &name, const QString &libversion, const QString &pluginversion) |
| void | SetDisableEventPopup (bool check) |
| void | SetDisableLibraryPopup (bool check) |
| void | SetPluginManager (MythPluginManager *pmanager) |
| MythPluginManager * | getPluginManager (void) |
Private Attributes | |
| MythContextPrivate * | d |
| QString | app_binary_version |
This class contains the runtime context for MythTV.
This class can be used to query for and set global and host settings, and is used to communicate between the frontends and backends. It also contains helper functions for theming and for getting system defaults, parsing the command line, etc. It also contains support for database error printing, and database message logging.
Definition at line 42 of file mythcontext.h.
| MythContext::MythContext | ( | const QString & | binversion | ) |
Definition at line 1012 of file mythcontext.cpp.
| MythContext::~MythContext | ( | ) | [virtual] |
Definition at line 1112 of file mythcontext.cpp.
| bool MythContext::Init | ( | const bool | gui = true, |
|
| const bool | promptForBackend = false, |
|||
| const bool | bypassAutoDiscovery = false, |
|||
| const bool | ignoreDB = false | |||
| ) |
Definition at line 1036 of file mythcontext.cpp.
Referenced by main().
| DatabaseParams MythContext::GetDatabaseParams | ( | void | ) |
Definition at line 1172 of file mythcontext.cpp.
Referenced by doUpgradeMusicDatabaseSchema(), getDBParamters(), InitializeDatabase(), MythDbSettings2::Load(), MythDbSettings1::Load(), MythContextPrivate::PromptForDatabaseParams(), MythDbSettings2::Save(), MythDbSettings1::Save(), SaveDatabaseParams(), UpgradeArchiveDatabaseSchema(), UpgradeGalleryDatabaseSchema(), and UpgradeGameDatabaseSchema().
| bool MythContext::SaveDatabaseParams | ( | const DatabaseParams & | params | ) |
Definition at line 1177 of file mythcontext.cpp.
Referenced by MythContextPrivate::PromptForDatabaseParams(), MythDbSettings2::Save(), and MythDbSettings1::Save().
| bool MythContext::TestPopupVersion | ( | const QString & | name, | |
| const QString & | libversion, | |||
| const QString & | pluginversion | |||
| ) |
Definition at line 1130 of file mythcontext.cpp.
Referenced by mythplugin_init().
| void MythContext::SetDisableEventPopup | ( | bool | check | ) |
Definition at line 1152 of file mythcontext.cpp.
Referenced by ExitPrompter::handleExit().
| void MythContext::SetDisableLibraryPopup | ( | bool | check | ) |
Definition at line 1157 of file mythcontext.cpp.
Referenced by MythPluginManager::MythPluginManager().
| void MythContext::SetPluginManager | ( | MythPluginManager * | pmanager | ) |
Definition at line 1162 of file mythcontext.cpp.
Referenced by main().
| MythPluginManager * MythContext::getPluginManager | ( | void | ) |
Definition at line 1167 of file mythcontext.cpp.
Referenced by configplugin_cb(), and plugin_cb().
MythContextPrivate* MythContext::d [private] |
Definition at line 66 of file mythcontext.h.
Referenced by GetDatabaseParams(), getPluginManager(), Init(), MythContext(), SaveDatabaseParams(), SetDisableEventPopup(), SetDisableLibraryPopup(), SetPluginManager(), TestPopupVersion(), and ~MythContext().
QString MythContext::app_binary_version [private] |
Definition at line 67 of file mythcontext.h.
Referenced by Init(), and MythContext().
1.6.3