swift
Loading...
Searching...
No Matches
setupreader.h
Go to the documentation of this file.
1// SPDX-FileCopyrightText: Copyright (C) 2015 swift Project Community / Contributors
2// SPDX-License-Identifier: GPL-3.0-or-later OR LicenseRef-swift-pilot-client-1
3
5
6#ifndef SWIFT_CORE_SETUPREADER_H
7#define SWIFT_CORE_SETUPREADER_H
8
9#include <atomic>
10
11#include <QObject>
12#include <QString>
13
16#include "misc/datacache.h"
17#include "misc/db/updateinfo.h"
19
20namespace SwiftCoreTest
21{
22 class CTestConnectivity;
23}
24namespace swift::core
25{
36 {
38 friend class SwiftCoreTest::CTestConnectivity;
39
40 public:
42 static const QStringList &getLogCategories();
43
45 explicit CSetupReader(QObject *parent);
46
49
52 bool isSetupAvailable() const { return m_setupAvailable; }
53
57 data::CGlobalSetup getSetup() const;
58
59 private:
60 std::atomic<bool> m_setupAvailable { false };
61 data::CGlobalSetup m_setup;
62
64 swift::misc::CStatusMessageList readLocalBootstrapFile();
65 };
66} // namespace swift::core
67
68#endif // SWIFT_CORE_SETUPREADER_H
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.
bool isSetupAvailable() const
Setup available?
Definition setupreader.h:52
Global settings for readers, debug flags, etc.
Definition globalsetup.h:31
Status messages, e.g. from Core -> GUI.
Backend services of the swift project, like dealing with the network or the simulators.
Definition actionbind.cpp:7
QObject(QObject *parent)
Q_OBJECTQ_OBJECT
QObject * parent() const const
#define SWIFT_CORE_EXPORT
Export a class or function from the library.