Commit Graph

171 Commits

Author SHA1 Message Date
Lars Toenning
abe79a2ae1 refactor: Remove old qmake file 2024-05-16 08:30:17 +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
9d3ae3e2b3 refactor: Restructure parsing and setup loading methods 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
9188a5857e refactor: Remove remaining ATC booking parts
Related to #252
2024-02-06 08:45:34 +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
6a0e93a3bd test: Add FSD test for ATIS client query and response 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
fae215ba26 refactor: Move FSD Test server information to test case 2024-01-23 20:25:30 +01:00
Lars Toenning
ec0ef3e49a fix: Disable FSD connection test
The test server is no longer available
2023-12-28 18:27:25 +01:00
Lars Toenning
1deaeba584 Add CMake support 2023-11-12 21:36:21 +01:00
Lars Toenning
3ffb8f689b Remove qmake files 2023-11-01 22:23:15 +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
ba41d4887b clang-format tests 2023-04-18 16:07:19 +02:00
Mat Sutcliffe
59a27a0d72 Send slowfast before ordinary position update
This solves a server-side performance issue.
2022-05-25 19:47:33 +01:00
oktal3700
dfeb281368 [FSD] Send incremental parts packets to pilots only
I was just told by Mike and Ross that ACC packets should be sent to 94836 (pilot clients) not 94835 (all clients).
2022-02-01 18:19:25 +00:00
Mat Sutcliffe
4b00c0e3bf Bump Vatsim protocol version number 2022-01-29 16:07:54 +00:00
Mat Sutcliffe
a4448dddc6 Issue #94 Implement $SF packet to toggle visual pilot data sending
Still send a visual pilot data update at the slow rate of
every 5 seconds when visual pilot data update is disabled.
2022-01-29 14:44:46 +00:00
Mat Sutcliffe
6d66066d6a Add height AGL and nose gear angle in VisualPilotDataUpdate 2022-01-29 14:40:55 +00:00
Mat Sutcliffe
242a10c9d6 Issue #94 Add new FSD packet type VisualPilotDataUpdate 2022-01-29 14:40:54 +00:00
Mat Sutcliffe
0faa7ed8fc Issue #94 Add new class CAircraftVelocity as member of CAircraftSituation 2022-01-03 16:38:47 +00:00
Mat Sutcliffe
3f2e5b0b69 Remove barely-used aggregate headers 2021-09-18 01:44:58 +01:00
Mat Sutcliffe
bd7d6ac17c Issue #113 Add value class for SIMDATA packet 2021-08-10 16:07:34 +01:00
Mat Sutcliffe
b81cc9a9dc Issue #77 Break cyclic dependency between CDirectoryUtils and CNetworkUtils by factoring out canPing method 2020-12-19 18:50:39 +00:00
Mat Sutcliffe
5eb34a5df7 [FSD] PBH unittest 2020-09-16 23:00:07 +01:00
Klaus Basan
1d72d89461 [FSD] Fix UNIT tests, as pilot rating now is correctly send 2020-06-12 18:42:51 +01:00
Klaus Basan
1ab1e8ca70 [FG] Fixed UnitTest which got broken by the FG "modelstring" changes 2020-06-12 18:42:46 +01:00
Klaus Basan
92d53a4077 [FG] Do not send modelstring or a shorter livery string for FG
* FG does not support modelstrings for "flyable" planes
* remove unused setSimInfo functions, consolidated, cleanup
* simulator dependent "getSwiftLiveryString"
* encapsulated in getConfiguredLiveryString, getConfiguredModelString
* see https://discordapp.com/channels/539048679160676382/567091362030419981/698124094482415616
2020-06-12 18:42:45 +01:00
Roland Rossgotterer
f98e8f00e1 Add missing linker library 2020-06-12 18:42:40 +01:00
Klaus Basan
f840244bdb [FSD] Adjust UNIT tests for *-1 fix 2020-06-12 18:42:38 +01:00
Mat Sutcliffe
4a0d8e9864 Fixed most Qt 5.14 deprecation warnings 2020-01-07 19:57:25 +00:00
Klaus Basan
3a4f114308 [FSD] In order to get the UNIT tests working, we need to call the "FSD direct message" send function
* added sendDirectMessage and renamed other function to sendQueudedMessage
* UNIT tests call "direct message" sending
* minor style changes
2020-01-07 19:57:20 +00:00
Klaus Basan
f38bfc5cf9 [FSD] Style 2020-01-07 19:57:19 +00:00
Roland Rossgotterer
0b8db1a612 [FSD] Don't use CCallsign object to send incremental parts update to special receiver
A client query can be sent to any type of receiver,
not only to valid callsigns. For example also to "@94835".

This fixes the corrupted receiver for incremental aircraft parts.
2020-01-07 19:05:42 +00:00
Roland Rossgotterer
0a730ff5dd [FSD] Make sure sysuid is properly zero terminated 2019-10-23 00:38:26 +02:00
Klaus Basan
4f4474336d [FSD], use consolidateTextMessage again 2019-10-23 00:38:25 +02:00
Klaus Basan
afe72b029f Doxygen/style 2019-10-23 00:38:24 +02:00
Klaus Basan
de75cdc214 [AFV] Ref T730 incorporated MS fixes
see https://discordapp.com/channels/539048679160676382/623947987822837779/633025547999510530
2019-10-16 17:40:32 +02:00
Klaus Basan
1d9cd50463 [AFV] Fix context UNIT test crash
* crash: A crash occurred in C:\jenkins\workspace\swift_wip_fsd_and_afv_client\build\out\release\bin\testcontext.exe.
* ASSERT in const QList<QAudioDeviceInfo> allQtDevices2 = QAudioDeviceInfo::availableDevices(QAudio::AudioInput)
* figured out it fails in a Qt console app, runs in a widget app
* see https://discordapp.com/channels/539048679160676382/623947987822837779/631939335255752704
2019-10-11 19:00:54 +01:00
Mat Sutcliffe
ad627fa351 [FSD] Fixed failing test and crashing test 2019-10-11 19:00:39 +01:00
Mat Sutcliffe
077476c138 [FSD] Style 2019-10-11 19:00:39 +01:00
Klaus Basan
81ade55cb5 Ref T730, added QT multimedia in some projects, as it is now needed in blackmisc 2019-10-11 18:59:58 +01:00
Klaus Basan
5e3b758e44 Ref T732, renamed to CFsdClient adjustments 2019-10-11 18:59:05 +01:00
Roland Rossgotterer
b5a2f2ad13 AFV initial commit 2019-10-11 18:58:47 +01:00
Roland Rossgotterer
acf540be34 Long live FsdClient 2019-09-18 13:49:37 +02:00
Klaus Basan
821e7e73c9 Ref T698, added remote aircraft context to network class 2019-09-16 22:40:15 +01:00
Mat Sutcliffe
e9a4c49d68 Ref T547 Update license masthead in all source code files. 2019-02-22 20:36:43 +00:00
Mat Sutcliffe
9f85a7b560 Fixed clazy warnings: pass large objects by reference to const. 2019-02-22 20:23:33 +00:00
Roland Winklmeier
77ce9f8b8a Split the giant test binaries into smaller unit tests
This is an intermediate step to have smaller unit tests. It is a trade off
between having many many test executables compared to a few bigger ones. But
this comes a lot closer to what QtTest is meant to be used.
2018-08-25 22:12:01 +02:00
Klaus Basan
c282d4e1f8 Ref T295, network watchdog optimizations
* constructor can pass network accessibility as default
* ping URL now constructed in global setup
* watchdog will prevent unnecessary signals by checking if state has really changed (there are redundant QAM signals for QNetworkAccessManager::networkAccessibleChanged)
* refactorings, thread checks
2018-07-31 01:43:32 +02:00