swift
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 
14 #include "core/data/globalsetup.h"
15 #include "core/swiftcoreexport.h"
16 #include "misc/datacache.h"
17 #include "misc/db/updateinfo.h"
18 #include "misc/statusmessagelist.h"
19 
20 namespace SwiftCoreTest
21 {
22  class CTestConnectivity;
23 }
24 namespace swift::core
25 {
35  class SWIFT_CORE_EXPORT CSetupReader : public QObject
36  {
37  Q_OBJECT
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
Read the central URLs / locations of our data, setup and versions.
Definition: setupreader.h:36
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
#define SWIFT_CORE_EXPORT
Export a class or function from the library.