swift
Public Member Functions | Static Public Member Functions | Friends | List of all members
swift::core::CSetupReader Class Reference

Read the central URLs / locations of our data, setup and versions. More...

Inheritance diagram for swift::core::CSetupReader:
[legend]

Public Member Functions

 CSetupReader (QObject *parent)
 Constructor.
 
swift::misc::CStatusMessageList loadSetup ()
 Load the setup. If the setup is already loaded, the setup is reloaded.
 
bool isSetupAvailable () const
 Setup available? More...
 
data::CGlobalSetup getSetup () const
 Current setup (reader URLs, DB location, crash server) More...
 

Static Public Member Functions

static const QStringList & getLogCategories ()
 Categories.
 

Friends

class SwiftCoreTest::CTestConnectivity
 

Detailed Description

Read the central URLs / locations of our data, setup and versions.

This class should be only used in swift::core::CApplication.

Note
This class is no(!) swift::core::CThreadedReader as it will be loaded once during startup and reading setup data is fast. The read file is also called "bootstrap" file as it tells swift which data and versions are located where. Without that file we cannot start.
See also
swift::misc::db::TUpdateInfo

Definition at line 35 of file setupreader.h.

Member Function Documentation

◆ getSetup()

CGlobalSetup swift::core::CSetupReader::getSetup ( ) const

Current setup (reader URLs, DB location, crash server)

Remarks
aka "bootstrap file"
This function is thread safe.

Definition at line 79 of file setupreader.cpp.

◆ isSetupAvailable()

bool swift::core::CSetupReader::isSetupAvailable ( ) const
inline

Setup available?

Remarks
This function is thread safe.

Definition at line 52 of file setupreader.h.


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