BibleTime
Public Member Functions | Private Attributes | List of all members
BibleTimeApp Class Reference

#include <bibletimeapp.h>

Inheritance diagram for BibleTimeApp:

Public Member Functions

 BibleTimeApp (int &argc, char **argv)
 
bool debugMode () const noexcept
 
void initBackends ()
 
bool initBtConfig ()
 
bool initDisplayTemplateManager ()
 
void initLightDarkPalette ()
 
void setDebugMode (bool const debugMode) noexcept
 
void startInit ()
 
 ~BibleTimeApp () override
 

Private Attributes

std::optional< CSwordBackendm_backend
 
bool m_debugMode
 
bool m_init
 

Detailed Description

The BibleTimeApp class is used to clean up all instances of the backend and to delete all created module objects.

Definition at line 27 of file bibletimeapp.h.

Constructor & Destructor Documentation

◆ BibleTimeApp()

BibleTimeApp::BibleTimeApp ( int &  argc,
char **  argv 
)

Definition at line 112 of file bibletimeapp.cpp.

References m_debugMode.

◆ ~BibleTimeApp()

BibleTimeApp::~BibleTimeApp ( )
override

Member Function Documentation

◆ debugMode()

bool BibleTimeApp::debugMode ( ) const
inlinenoexcept

Definition at line 43 of file bibletimeapp.h.

References m_debugMode.

Referenced by setDebugMode().

◆ initBackends()

void BibleTimeApp::initBackends ( )

◆ initBtConfig()

bool BibleTimeApp::initBtConfig ( )

◆ initDisplayTemplateManager()

bool BibleTimeApp::initDisplayTemplateManager ( )

Definition at line 263 of file bibletimeapp.cpp.

References BT_ASSERT, m_init, and message::showCritical().

Referenced by main().

◆ initLightDarkPalette()

void BibleTimeApp::initLightDarkPalette ( )

Definition at line 213 of file bibletimeapp.cpp.

References btConfig(), and BtConfigCore::value().

Referenced by main().

◆ setDebugMode()

void BibleTimeApp::setDebugMode ( bool const  debugMode)
inlinenoexcept

Definition at line 44 of file bibletimeapp.h.

References debugMode(), and m_debugMode.

Referenced by main().

◆ startInit()

void BibleTimeApp::startInit ( )
inline

Definition at line 36 of file bibletimeapp.h.

References m_init.

Referenced by main().

Member Data Documentation

◆ m_backend

std::optional<CSwordBackend> BibleTimeApp::m_backend
private

Definition at line 51 of file bibletimeapp.h.

Referenced by initBackends(), and ~BibleTimeApp().

◆ m_debugMode

bool BibleTimeApp::m_debugMode
private

Definition at line 50 of file bibletimeapp.h.

Referenced by BibleTimeApp(), debugMode(), and setDebugMode().

◆ m_init

bool BibleTimeApp::m_init
private

Definition at line 49 of file bibletimeapp.h.

Referenced by initBtConfig(), initDisplayTemplateManager(), startInit(), and ~BibleTimeApp().


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