MythContext Class Reference

This class contains the runtime context for MythTV. More...

#include <mythcontext.h>

List of all members.

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 &params)
bool TestPopupVersion (const QString &name, const QString &libversion, const QString &pluginversion)
void SetDisableEventPopup (bool check)
void SetDisableLibraryPopup (bool check)
void SetPluginManager (MythPluginManager *pmanager)
MythPluginManagergetPluginManager (void)

Private Attributes

MythContextPrivated
QString app_binary_version

Detailed Description

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.


Constructor & Destructor Documentation

MythContext::MythContext ( const QString &  binversion  ) 

Definition at line 1012 of file mythcontext.cpp.

MythContext::~MythContext (  )  [virtual]

Definition at line 1112 of file mythcontext.cpp.


Member Function Documentation

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   ) 
bool MythContext::SaveDatabaseParams ( const DatabaseParams params  ) 
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().


Member Data Documentation

Definition at line 67 of file mythcontext.h.

Referenced by Init(), and MythContext().


The documentation for this class was generated from the following files:
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends
Generated on Fri Feb 10 06:42:10 2012 for MythTV by  doxygen 1.6.3