9#include <QScopedPointer>
10#include <QScopedPointerDeleteLater>
11#include <QStringBuilder>
29using namespace swift::config;
31using namespace swift::misc::db;
32using namespace swift::misc::network;
43 msgs = this->readLocalBootstrapFile();
57 if (!sApp || sApp->isShuttingDown())
61 const QFile file(fileName);
68 if (content.isEmpty())
70 return CStatusMessage(
this).error(u
"File '%1' empty") << fileName;
75 m_setup.convertFromJson(content);
76 return CStatusMessage(
this).info(u
"Setup loaded from local file '%1'") << fileName;
78 catch (
const CJsonException &ex)
81 QStringLiteral(
"Parsing local setup file '%1'").arg(fileName));
data::CGlobalSetup getSetup() const
Current setup (reader URLs, DB location, crash server).
CSetupReader(QObject *parent)
Constructor.
static const QStringList & getLogCategories()
Categories.
swift::misc::CStatusMessageList loadSetup()
Load the setup. If the setup is already loaded, the setup is reloaded.
Global settings for readers, debug flags, etc.
static QString readFileToString(const QString &fileNameAndPath)
Read file into string.
static const QString & startup()
Startup of application.
static const QString & webservice()
Webservice.
Derived & error(const char16_t(&format)[N])
Set the severity to error, providing a format string.
Streamable status message, e.g.
static CStatusMessage fromJsonException(const CJsonException &ex, const CLogCategoryList &categories, const QString &prefix)
Object from JSON exception message.
Status messages, e.g. from Core -> GUI.
bool isSuccess() const
All messages are marked as success.
static const QString & bootstrapResourceFilePath()
Bootstrap resource file path.
Core data traits (aka cached values) and classes.
Backend services of the swift project, like dealing with the network or the simulators.
Free functions in swift::misc.
QObject * parent() const const
bool isEmpty() const const