MythTV  master
Public Member Functions | Private Attributes | List of all members
MythContext Class Reference

Startup context for MythTV. More...

#include <mythcontext.h>

Collaboration diagram for MythContext:
Collaboration graph

Public Member Functions

 MythContext (const QString &binversion, bool needsBackend=false)
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 saveSettingsCache (void)
void SetDisableEventPopup (bool check)

Private Attributes

QString app_binary_version

Detailed Description

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 42 of file mythcontext.h.

Constructor & Destructor Documentation

◆ MythContext()

MythContext::MythContext ( const QString &  binversion,
bool  needsBackend = false 

Definition at line 1557 of file mythcontext.cpp.

◆ ~MythContext()

MythContext::~MythContext ( )

Definition at line 1669 of file mythcontext.cpp.

Member Function Documentation

◆ Init()

bool MythContext::Init ( const bool  gui = true,
const bool  promptForBackend = false,
const bool  bypassAutoDiscovery = false,
const bool  ignoreDB = false 

Definition at line 1582 of file mythcontext.cpp.

Referenced by main().

◆ GetDatabaseParams()

DatabaseParams MythContext::GetDatabaseParams ( void  )

◆ SaveDatabaseParams()

bool MythContext::SaveDatabaseParams ( const DatabaseParams params)

◆ saveSettingsCache()

bool MythContext::saveSettingsCache ( void  )

Definition at line 1701 of file mythcontext.cpp.

Referenced by Init().

◆ SetDisableEventPopup()

void MythContext::SetDisableEventPopup ( bool  check)

Definition at line 1686 of file mythcontext.cpp.

Referenced by ExitPrompter::handleExit(), and Init().

Member Data Documentation

◆ d

MythContextPrivate* MythContext::d

◆ app_binary_version

QString MythContext::app_binary_version

Definition at line 61 of file mythcontext.h.

Referenced by Init(), and MythContext().

The documentation for this class was generated from the following files: