BibleTime
|
#include <bibletimeapp.h>
Public Member Functions | |
BibleTimeApp (int &argc, char **argv) | |
bool | debugMode () const noexcept |
void | initBackends () |
bool | initBtConfig () |
bool | initDisplayTemplateManager () |
void | initIcons () |
void | initLightDarkPalette () |
void | setDebugMode (bool const debugMode) noexcept |
void | startInit () |
~BibleTimeApp () override | |
Private Attributes | |
std::optional< CSwordBackend > | m_backend |
bool | m_debugMode |
BtIcons * | m_icons |
bool | m_init |
The BibleTimeApp class is used to clean up all instances of the backend and to delete all created module objects.
Definition at line 29 of file bibletimeapp.h.
BibleTimeApp::BibleTimeApp | ( | int & | argc, |
char ** | argv | ||
) |
Definition at line 117 of file bibletimeapp.cpp.
References anonymous_namespace{bibletimeapp.cpp}::debugStream, m_debugMode, anonymous_namespace{bibletimeapp.cpp}::myMessageOutput(), and Rendering::Text.
|
override |
Definition at line 161 of file bibletimeapp.cpp.
References btConfig(), BtConfig::destroyInstance(), CDisplayTemplateMgr::instance(), m_backend, m_icons, m_init, BtConfig::m_instance, and BtConfigCore::setValue().
|
inlinenoexcept |
void BibleTimeApp::initBackends | ( | ) |
Definition at line 281 of file bibletimeapp.cpp.
References btApp, util::directory::getUserHomeSwordDir(), m_backend, CDisplaySettingsPage::resetLanguage(), and Rendering::Text.
Referenced by BibleTime::BibleTime().
bool BibleTimeApp::initBtConfig | ( | ) |
Definition at line 177 of file bibletimeapp.cpp.
References BT_ASSERT, BtConfig::forceMigrate(), BtConfig::INIT_NEED_UNIMPLEMENTED_BACKWARD_MIGRATE, BtConfig::INIT_NEED_UNIMPLEMENTED_FORWARD_MIGRATE, BtConfig::INIT_OK, BtConfig::initBtConfig(), m_init, r(), and message::showWarning().
Referenced by main().
bool BibleTimeApp::initDisplayTemplateManager | ( | ) |
Definition at line 268 of file bibletimeapp.cpp.
References BT_ASSERT, m_init, and message::showCritical().
Referenced by main().
void BibleTimeApp::initIcons | ( | ) |
void BibleTimeApp::initLightDarkPalette | ( | ) |
Definition at line 218 of file bibletimeapp.cpp.
References btConfig(), Rendering::Text, and BtConfigCore::value().
Referenced by main().
|
inlinenoexcept |
Definition at line 47 of file bibletimeapp.h.
References debugMode(), and m_debugMode.
Referenced by main().
|
inline |
|
private |
Definition at line 55 of file bibletimeapp.h.
Referenced by initBackends(), and ~BibleTimeApp().
|
private |
Definition at line 53 of file bibletimeapp.h.
Referenced by BibleTimeApp(), debugMode(), and setDebugMode().
|
private |
Definition at line 54 of file bibletimeapp.h.
Referenced by initIcons(), and ~BibleTimeApp().
|
private |
Definition at line 52 of file bibletimeapp.h.
Referenced by initBtConfig(), initDisplayTemplateManager(), startInit(), and ~BibleTimeApp().