Commit Graph

78 Commits

Author SHA1 Message Date
Lars Toenning
b39e8c3a7e fix: Unify xswiftbus spelling 2024-04-24 22:51:57 +02:00
Lars Toenning
b4cbed107b refactor: Remove CNetworkWatchdog
The watchdog was used in a few places as a shortcut to skip reading
data. Further, it was used in some places in the UI to display
connectivity. But it also introduced quite some complexity. In some
cases it can be fragile: network accessibilty cannot be looked up on all
platforms/hardware constellations. The connectivity could change
between the last watchdog call and the real call. Hence all readers must
still handle the case where the connection fails.
To simplify swift and further reduce the dependency onto the project
infrastructure (pings etc.), this removes the watchdog.
This also removes the QNetworkConfigurationManager, which is deprecated
and not available with Qt6.
2024-04-15 22:02:11 +02:00
Lars Toenning
ad96d38389 refactor: Remove sync of updateinfo
The update info is already automatically fetched from GitHub instead of
using the distribution.json from the datastore
2024-03-09 22:21:12 +01:00
Lars Toenning
5e0f3a05d3 refactor: Read AFV URLs from bootstrap.json
This also removes the possibility to change the URL on the fly via the
UI.
Fixes #257
2024-02-18 16:33:16 +01:00
Lars Toenning
3bd3deebb1 feat: Require all global setup members from JSON 2024-02-09 14:42:18 +01:00
Lars Toenning
65e4c9742b refactor: Remove timestamp from bootstrap.json
As the bootstrap.json is now exclusivley loaded from a file, the
timestamp is not used anymore.
2024-02-09 14:42:18 +01:00
Lars Toenning
24637aea09 refactor: Remove unused method
This method is not used. The setup reader instead directly uses the
convertFromJson method from the JSON mixin.
2024-02-05 22:23:40 +01:00
Lars Toenning
6181fbe602 refactor: Remove hardcoded URLs from global setup
These hardcoded URLs increased the maintanance overhead as they must be
updated together with the URLs in the bootstrap.json
2024-02-05 22:23:40 +01:00
Lars Toenning
389431ccef refactor: Clean up setup file reader
Previously we already switch to loading the bootstrap file only from the
local file (ec42553910).
This removes the remaining parts of loading the bootstrap file from a
remote location.
This also updates the UI in case of parsing errors of the bootstrap.json.
2024-02-05 22:23:40 +01:00
Lars Toenning
da552d60cc refactor: Remove dev flag from bootstrap json
With this, the database debug flag can only be activated when using swift
with a development build. Setting the development flag in the json also
didn't worked previously as expected because the corresponding function
to get the flag in application.cpp was called before the setup was loaded.
2024-02-05 22:23:40 +01:00
Lars Toenning
9f50aaaa4a fix: Remove broken ATC station booking overview
Related to #252
2024-01-27 08:55:46 +01:00
Lars Toenning
23e2dc9057 feat: Add ICAOEQ capability to FSD client 2024-01-23 20:25:30 +01:00
Lars Toenning
bcc4bdd31e Add SPDX identifiers for REUSE compliance
Co-authored-by: Mat Sutcliffe <oktal3700@gmail.com>
2023-10-03 09:29:49 +02:00
Lars Toenning
970b7c3650 clang-format src 2023-04-18 16:07:19 +02:00
Lars Toenning
6dc2492d29 Bootstrap: Remove wasLoadedFromWeb flag 2023-03-03 12:23:43 +01:00
Lars Toenning
a62da56d5f Use HTTP to get VATSIM IP in automatic mode 2023-02-28 08:29:58 +01:00
Lars Toenning
4f43633231 Add VATSIM server JSON to CGlobalSetup 2023-02-27 15:28:08 +01:00
Lars Toenning
521859f9ac Remove broken launcher news widget
The links for news are broken.
As most announcements are published via Discord nowadays, remove it for now.
2022-06-20 23:43:45 +02:00
Lars Toenning
963c4ec495 Remove link to web map
swift web map is not running anymore
2022-06-20 23:43:45 +02:00
Mat Sutcliffe
2b72600937 Explicit template instantiations for mixins for value classes
To reduce compile time.
2021-10-11 14:20:07 +01:00
Mat Sutcliffe
57d32da826 Use nested namespaces (C++17 feature) 2021-09-18 15:07:48 +01:00
Mat Sutcliffe
da66aee67d Make datastore ping interval configurable
And don't bother sending pings more frequently if
the server is struggling to reply to every one.
2021-01-07 18:49:38 +00:00
Mat Sutcliffe
363758e8ea Issue #77 Move GlobalIndex enum from CPropertyIndex to CPropertyIndexRef 2020-12-19 18:50:36 +00:00
Mat Sutcliffe
0971c8ce68 Issue #77 All classes propertyindex methods use CPropertyIndexRef and QVariant 2020-12-19 18:50:35 +00:00
Klaus Basan
2756a5d2dd Fixed bootstrap file, VERIFY if bootstrap file is broken 2019-09-16 20:29:58 +01:00
Mat Sutcliffe
e9a4c49d68 Ref T547 Update license masthead in all source code files. 2019-02-22 20:36:43 +00:00
Roland Rossgotterer
5c84cff6e4 Add second NOAA GFS url for 0.25 deg resolution 2019-02-22 20:36:22 +00:00
Klaus Basan
394147dcb9 Server handling
* added tower view as hardcoded
* renamed to predefined servers
* utility functions to add/remove FSD setup flags
2018-11-29 20:54:25 +01:00
Klaus Basan
9dfc3808c1 Ref T367, Ref T400 global setup flags for web and file reading 2018-11-04 17:42:41 +01:00
Klaus Basan
c61171bde3 Use default dtor to avoid CLANG warnings 2018-09-17 18:28:31 +02:00
Klaus Basan
1b973c4796 Ref T295, moved getDbClientPingServiceUrl to global setup 2018-07-31 01:43:28 +02:00
Klaus Basan
839a836926 Encapsulated last network server used in network setup. Will allow to retrieve ecosystem for T272 2018-06-13 13:59:18 +02:00
Klaus Basan
312d01d35b Ref T199, also cache files can be loaded
* unwrap cache JSON object
* parameter to control if cache format is allowed
2018-01-14 18:47:37 +01:00
Klaus Basan
0daf4ba087 Ref T203, renamings to "update info" and "settings" 2017-12-21 19:48:30 +01:00
Roland Winklmeier
c553d24d0e Move GFS weather data url into global setup
Summary:
The GFS weather data url so far was hard coded. With this commit, it is
moved into the global setup (bootstrap file).
Also the url type was changed from QUrl to CUrl, which simplified the
generation of the url including its query by using CUrl::appendQuery().
Finally it fixes sampleweatherdata, which did not have a CApplication yet.

Reviewers: #swift_pilot_client, msutcliffe

Reviewed By: #swift_pilot_client, msutcliffe

Subscribers: jenkins

Tags: #swift_pilot_client

Maniphest Tasks: T151

Differential Revision: https://dev.swift-project.org/D57
2017-11-20 15:57:08 +01:00
Klaus Basan
60656843f8 Ref T169, check minimum mapping tool version
* added min.version in global setup
* check in CSwiftData::checkMinimumVersion
2017-10-10 00:28:29 +01:00
Klaus Basan
6ce80bbd8e Ref T169, formatting 2017-10-10 00:28:27 +01:00
Klaus Basan
733ee7853d Ref T160, ping service URL in setup 2017-09-25 05:23:57 +02:00
Klaus Basan
ad32d33aa1 Ref T157, add context for help calls and call dispatcher 2017-09-24 20:29:19 +01:00
Klaus Basan
fdfa2233fb Ref T150, Ref T156 cleaned up setup reader
* grouped functions together if they are based on the same URLs
* renamed functions
* Doxygen comments
2017-09-24 20:28:33 +01:00
Klaus Basan
15f5a7f489 Ref T125, URL for XSwiftBus file info webservice 2017-09-24 19:53:12 +01:00
Klaus Basan
8119aafca4 Move URLs getter to cpp. This is a tweak so I can easily change the URLs for testing. 2017-09-24 19:52:22 +01:00
Klaus Basan
b3186d6b91 Doxygen 2017-09-24 19:50:34 +01:00
Klaus Basan
f2d89bf56c Fixed misc. things for bootstrap file/reader
* added help URL
* added swift map URL
* fixed typo for crash report server
* added more failover servers
2017-04-19 19:30:58 +01:00
Klaus Basan
9faad01c8b refs #921, changed setup/reader to distribution URL 2017-04-18 00:07:08 +01:00
Klaus Basan
dd37945625 refs #883, added new "directories"
* directories for in buildconfig/globalsetup
* renamed to CBuildConfig::getSwiftShareDir
2017-02-24 15:21:47 +00:00
Klaus Basan
dcaa745e7b refs #787, utility functions for shared files
* entity to shared file, shared file for DB Info
* CUrl path function
* removed redundant code in CDbInfo::getEntity() and fixed CEntityFlags::singleEntityByName
2016-12-06 09:35:00 +01:00
Klaus Basan
c02cbcb952 Updated some documentation based on a brief slack discussion with MG 2016-12-06 09:34:37 +01:00
Klaus Basan
fb8f6e9b7f refs #748, airport reader setup
* removed functions for old file URL
* added URL functions for DB data
2016-12-06 09:33:39 +01:00
Roland Winklmeier
e47aec223e Integrate Crashpad crash handler into CApplication
Crash handler launches an external crash handler executable called
swift_crashpad_handler. It monitores the parent process and produces
a local dump in case of a crash.
For release builds, the dump is also uploaded to a crash report server.

refs #490
2016-08-09 17:51:57 +02:00