Commit Graph

2924 Commits

Author SHA1 Message Date
Lars Toenning
bfa6894672 feat: Move VATSIM auth endpoint URL to bootstrap.json 2024-05-16 08:30:17 +02:00
Lars Toenning
15488553c0 refactor: Remove unused member 2024-04-29 22:32:17 +02:00
Lars Toenning
89544d1ecb refactor: Simplify getting shared data directory URL 2024-04-29 21:46:23 +02:00
Lars Toenning
14c045e7b4 refactor: Remove CUrlList
Nowadays most of the loadbalancing is done on the server-side and hence
there is only a single datafile URL (and other URLs) inside the
boostrap.json.
The features of the CUrlList are hence not really used. This is also a
step into removing CUrl and using QUrl instead, to avoid maintaining a
separate URL class.
2024-02-09 16:32:45 +01:00
Lars Toenning
0d62facea7 refactor: Remove webservice state/config member from CApplication
Reduce complexity and state of the CApplication. These members are used
anyway just to initialize the web service.
2024-02-17 21:30:05 +01:00
Lars Toenning
73868a0e4d refactor: Remove unused GFS 0.5 grid URL 2024-02-17 15:23:44 +01:00
Lars Toenning
86878519ca refactor: Remove unused functions 2024-04-29 21:47:36 +02:00
Lars Toenning
4dcb1ae531 refactor: Remove unused crash report URL from bootstrap
This URL is hardcoded in crashhandler.cpp
2024-02-17 12:41:24 +01:00
Lars Toenning
26bea26e6d feat: Add support for FSD mute packet
Fixes #254
2024-05-12 20:36:32 +02:00
Lars Toenning
33123cbba9 refactor(afv): Clarify that mute is for output 2024-05-12 20:36:12 +02:00
Lars Toenning
5af1ffbfc1 refactor: Remove deprecated functions 2024-04-24 23:20:49 +02:00
Lars Toenning
52410b5117 fix: Don't use controller info from datafile on non-VATSIM servers
Fixes #280
2024-04-24 22:52:45 +02:00
Lars Toenning
55d0ea00bd refactor: Remove unused functions 2024-04-24 22:52:43 +02:00
Lars Toenning
b39e8c3a7e fix: Unify xswiftbus spelling 2024-04-24 22:51:57 +02:00
Lars Toenning
a203fc0c1f refactor: Remove unused PTT enum
Currently, the PTT can only be activated on the active frequency
anyway.
2024-04-24 22:51:55 +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
d31084db3a refactor: Directly use shared URL from global setup
Previous we relyed on the watchdog providing a working shared URL (or
empty URL if no URL was reachable). This creates some overhead and
might not work in all cases because of the time between the call to
getWorkingSharedUrl() and the actual network request. Further, not all
calls that are fetching data from our servers were using the shared URL
from the watchdog anyway.
Lastly, this careful checking if the URL is available is only done for
the shared URL and not for all the other URLs that are queried by swift.
2024-04-15 22:01:45 +02:00
Lars Toenning
972de0777c refactor: Remove non-watchdog related method from WatchDog 2024-04-15 22:01:45 +02:00
Lars Toenning
6cf9dfaecf refactor: Remove aircraft highlighting/blinking functionality
This functionality was not documented. Further, this feature likely does
not work great in all simulators because adding and removing aircrafts
might take longer than a second.
2024-03-21 22:48:29 +01:00
Lars Toenning
748bfcdc15 refactor: Clean up ISimulator 2024-03-21 22:48:29 +01:00
Lars Toenning
9cdd624ae0 refactor: Remove ecosystem provider from WebDataServices
Spreading the information about the ecosystem into all
"low-level" readers, just to deactivate them when not using
a non-VATSIM ecosystem, should be avoided. Instead, the readers
should be disabled entirely from the outside . This will be done
in a upcoming refactoring (separate PR).
2024-03-21 22:42:02 +01:00
Lars Toenning
73689efa01 refactor: Use Qt::ConnectionType directly 2024-03-21 22:42:02 +01:00
Lars Toenning
995509bdfb refactor: Remove unused members from CWebDataServices 2024-03-21 22:42:02 +01:00
Lars Toenning
2edb17e6a5 refactor: Remove unused forward decl 2024-03-21 22:42:01 +01:00
Lars Toenning
186af2777c refactor: Remove unused method 2024-03-21 22:42:01 +01:00
Lars Toenning
8593d3bdb3 fix: Emitting signal with wrong entity flag 2024-03-21 22:42:01 +01:00
Lars Toenning
c0b0c74c3c fix: Always perform SSL peer verification
As the datastore now has real (no self-signed) TLS certificates, the host
verification should not be disabled by default. When testing locally,
one could use non-TLS connections.
2024-03-21 22:42:01 +01: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
2ba2d5bc8e refactor: Clarify CApplication method names 2024-02-18 23:09:13 +01:00
Lars Toenning
a664371567 refactor: Move installer flag handling to launcher
This is only used by the launcher
2024-02-18 23:09:13 +01:00
Lars Toenning
a84e299e45 refactor: Remove unused single application flag 2024-02-18 23:09:12 +01:00
Lars Toenning
de45811d34 refactor: Remove unused private shared dir CLI arg 2024-02-18 23:09:12 +01:00
Lars Toenning
7b6f087247 refactor: Fix some clang-tidy warnings
- Mark single argument constructors as explicit
- Remove unused functions
- Avoid default parameters in virtual functions
- Clean up includes
- Do not call static methods through an instance
- And some more...
2024-02-18 23:09:12 +01:00
Lars Toenning
b939711058 refactor: Start WebServices and CoreFacade separately 2024-02-18 22:16:54 +01:00
Lars Toenning
9d3ae3e2b3 refactor: Restructure parsing and setup loading methods 2024-02-18 22:16:54 +01:00
Lars Toenning
99de8009be refactor: Emit CApplication::startUpComplete on starting event loop 2024-02-18 22:16:54 +01:00
Lars Toenning
b8a376701b fix: Remove help/version message dialogs for Gui application
These methods did not quit the application and hence the application
exits with code -1. Further, when calling swift with a commandline
argument, the user might expect to get a commandline output and not a
GUI popup.
2024-02-18 22:16:54 +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
8ecc680dfd refactor: Remove pre-AFV methods 2024-02-18 16:00:48 +01:00
Lars Toenning
5f7c3efdb2 Revert "Issue #93 Reduce update offset for 5 Hz updates and rename member"
This reverts commit 8dc206d62b.
2024-02-13 22:57:26 +01:00
Lars Toenning
2f07c9313d Revert "Interpolate the dynamic offset time for aircraft situations"
This reverts commit efb6a3211d.
2024-02-13 22:57:26 +01:00
Lars Toenning
18df2a5a12 fix: Discard visual FSD updates 2024-02-13 22:57:26 +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
9188a5857e refactor: Remove remaining ATC booking parts
Related to #252
2024-02-06 08:45:34 +01:00
Lars Toenning
298c9eeec1 refactor: Remove option to disable autologoff
Auto logoff was always enabled in normal builds anyway, even when the
user tried to disable it (see 8eff8cd).
2024-02-06 08:45:34 +01:00
Lars Toenning
882ae3b741 chore: Update AFV URL
Fixes #255
2024-02-06 08:45:34 +01:00
Lars Toenning
bebd5600bb refactor: Remove unused and outdated SSL certificates
Methods are unused since commit 0d0e09333
CNetworkUtils::setSwiftClientSslCertificate was removed with ac48e64
2024-02-06 08:45:34 +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