MythTV  master
Public Types | 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
[legend]

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 &params, bool force=false)
 
bool saveSettingsCache (void)
 
void SetDisableEventPopup (bool check)
 
void setWebOnly (WebOnlyStartup w)
 
WebOnlyStartup getWebOnly (void)
 

Private Attributes

MythContextPrivated {nullptr}
 
QString m_appBinaryVersion
 
WebOnlyStartup m_webOnly {kWebOnlyNone}
 

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

Member Enumeration Documentation

◆ WebOnlyStartup

Enumerator
kWebOnlyNone 
kWebOnlyDBSetup 
kWebOnlyDBTimezone 
kWebOnlyWebOnlyParm 
kWebOnlyIPAddress 
kWebOnlySchemaUpdate 

Definition at line 59 of file mythcontext.h.

Constructor & Destructor Documentation

◆ MythContext()

MythContext::MythContext ( QString  binversion,
bool  needsBackend = false 
)
explicit

Definition at line 1577 of file mythcontext.cpp.

◆ ~MythContext()

MythContext::~MythContext ( )
virtual

Definition at line 1702 of file mythcontext.cpp.

Member Function Documentation

◆ Init()

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().

◆ SaveDatabaseParams()

bool MythContext::SaveDatabaseParams ( const DatabaseParams params,
bool  force = false 
)

◆ saveSettingsCache()

bool MythContext::saveSettingsCache ( void  )

Definition at line 1732 of file mythcontext.cpp.

Referenced by Init().

◆ SetDisableEventPopup()

void MythContext::SetDisableEventPopup ( bool  check)

Definition at line 1722 of file mythcontext.cpp.

Referenced by ExitPrompter::Confirm(), ExitPrompter::HandleExit(), and Init().

◆ setWebOnly()

void MythContext::setWebOnly ( WebOnlyStartup  w)
inline

Definition at line 68 of file mythcontext.h.

Referenced by main(), and run_backend().

◆ getWebOnly()

WebOnlyStartup MythContext::getWebOnly ( void  )
inline

Definition at line 69 of file mythcontext.h.

Referenced by V2Myth::GetBackendInfo().

Member Data Documentation

◆ d

MythContextPrivate* MythContext::d {nullptr}
private

◆ m_appBinaryVersion

QString MythContext::m_appBinaryVersion
private

Definition at line 74 of file mythcontext.h.

Referenced by Init(), and MythContext().

◆ m_webOnly

WebOnlyStartup MythContext::m_webOnly {kWebOnlyNone}
private

Definition at line 75 of file mythcontext.h.


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