Commit Graph

2465 Commits

Author SHA1 Message Date
Klaus Basan
e21fdeb039 Ref T730, pass PTT key events to client
* currently passing from context to client, so context and client know the state
* PTT enum in own file so it can be reused
2019-10-11 18:59:55 +01:00
Klaus Basan
992d624c18 Ref T731, moved AFV station model and client to BlackCore::Afv
* the QML map can also be used in dialog
* ATC station list also can be used in BlackCore
2019-10-11 18:59:53 +01:00
Klaus Basan
66b02e61c5 Ref T730, directly use context from sApp
* using sApp->getIContextOwnAircraft()
* no need to pass context, avoid issues when shutting down
* minor style changes
2019-10-11 18:59:53 +01:00
Klaus Basan
99edc9cb13 Ref T730, code style, adding namespaces 2019-10-11 18:59:45 +01:00
Roland Rossgotterer
cf6d60348e Decouple QAudioDevice buffer size from AFV 20 ms frame size
Different QAudioDevice plugins have different default buffer sizes. In 
order to cope with bigger buffer sizes than the expected 20 ms,
let the buffer be filled and push from it every 20 ms via timer.
2019-10-11 18:59:13 +01:00
Roland Rossgotterer
1deaf1ca8b Add volume sliders to AFV sample UI 2019-10-11 18:59:12 +01:00
Roland Rossgotterer
8d1eea25b1 Implement VolumeSampleProvider to gain in and output
fixup! Implement VolumeSampleProvider to gain in and output
2019-10-11 18:59:12 +01:00
Roland Rossgotterer
8b1fb1baca [AFV] Add method to read all aliased HF stations
ref T729
2019-10-11 18:59:11 +01:00
Klaus Basan
4a578110b0 Ref T731, adjusted audio settings for AFV and added functions in UI component 2019-10-11 18:59:11 +01:00
Klaus Basan
d944d0f6ee Do not play QSoundEffect while it is still playing
* added m_playEffect as flag
* hooked up signals to reset the flags
2019-10-11 18:59:10 +01:00
Roland Rossgotterer
cc3151ef6f Fix TransceiverDto::toJson 2019-10-11 18:59:09 +01:00
Roland Rossgotterer
44146353a6 Fix ApiServerConnection::postNoResponse 2019-10-11 18:59:08 +01:00
Roland Rossgotterer
acb5b11966 Finish demo UI and connect it to AFVClient
this includes:
- enable/disable check boxes, 
- ptt button
- loopback check box
- map zoom buttons
- showing the received callsign
- VHF effects checkbox
ref T731
2019-10-11 18:59:08 +01:00
Roland Rossgotterer
852247e893 Fix namespace 2019-10-11 18:59:08 +01:00
Roland Rossgotterer
7ac962ed77 Add methods to read received callsigns from AFV
ref T729
2019-10-11 18:59:07 +01:00
Roland Rossgotterer
d9dcadcffa Abort further AFV connection if authentication was failing
ref T729
2019-10-11 18:59:06 +01:00
Klaus Basan
a1281eff3f Ref T730, added jwt JSON token decoding for server connection 2019-10-11 18:59:06 +01:00
Klaus Basan
a37c9a8772 Ref T730, style 2019-10-11 18:59:05 +01:00
Klaus Basan
5e3b758e44 Ref T732, renamed to CFsdClient adjustments 2019-10-11 18:59:05 +01:00
Klaus Basan
a24d948acd Ref T732, FSDClient to CFsdClient + style 2019-10-11 18:59:04 +01:00
Klaus Basan
34d1e8268c Ref T730, OPUS de/encoder namespace 2019-10-11 18:59:03 +01:00
Klaus Basan
384aa3ce19 Ref T730, namespace for BlackCore::Afv
* added namespace
* removed some *.pri files and added files to blackcore.pro
* added copyright etc.
2019-10-11 18:59:02 +01:00
Klaus Basan
d064da13b5 Ref T730, use QScopedPointer for network replies (make sure to always clean up) 2019-10-11 18:59:01 +01:00
Roland Rossgotterer
5062449ea9 Increase Observer range to 300 nm
According to CoC C8, OBS stations are allowed to have up to  300 nm
maximum range.
ref T724
2019-10-11 18:59:00 +01:00
Roland Rossgotterer
b5a2f2ad13 AFV initial commit 2019-10-11 18:58:47 +01:00
Roland Rossgotterer
7030302e73 Cleanup audio context
Remove unused methods
Make methods only used in CContextAudio private
2019-09-18 13:50:41 +02:00
Roland Rossgotterer
acf540be34 Long live FsdClient 2019-09-18 13:49:37 +02:00
Roland Rossgotterer
fa6e7108c7 Propagate FacilityType and LoginMode to value objects 2019-09-17 17:29:25 +02:00
Roland Rossgotterer
4772aadc1a Replace INetwork::CConnectionStatus with proper value object 2019-09-17 17:29:25 +02:00
Klaus Basan
2d4472d64f Ref T717, "fetch" simulator data for model browser 2019-09-16 22:41:40 +01:00
Klaus Basan
6521b89fdd Ref T717, simulator ground elevation 2019-09-16 22:41:39 +01:00
Klaus Basan
f80e093a0a Ref T717, function to send parts/situation for testing and in the model browser 2019-09-16 22:41:37 +01:00
Klaus Basan
a3959ffbea Ref T717, unify test aircraft callsign 2019-09-16 22:41:37 +01:00
Klaus Basan
838e41051c Ref T717, simulator adjustments to support "TEST AIRCRAFT" 2019-09-16 22:41:35 +01:00
Klaus Basan
903cf07eac Ref T717, "testRemoteAircraft" simulator context functions 2019-09-16 22:41:35 +01:00
Klaus Basan
4c9654d81d Use simulator from plugin if plugin is connected 2019-09-16 22:41:34 +01:00
Klaus Basan
19c9a51c38 Style 2019-09-16 22:41:34 +01:00
Klaus Basan
b3945adc98 Improved VATSIM status file reading 2019-09-16 22:41:33 +01:00
Klaus Basan
2e96caef5c Functions to remove models from model set 2019-09-16 22:41:32 +01:00
Klaus Basan
902d18339a Improved manual changing of aircraft and reset
* deferred adding and reset
* HTML overlay messages
* debug code for DBus messages
2019-09-16 22:41:32 +01:00
Klaus Basan
1d75b5fac7 Log info/warning about METAR URL 2019-09-16 22:41:32 +01:00
Klaus Basan
0e3cba35ff Minor style changes 2019-09-16 22:41:31 +01:00
Mat Sutcliffe
942417b7a9 Avoid constructing CStatusMessage format string from external data source.
Put external data source as argument using stream operator instead.

Part 1 of hotfix for assert caused by percent character in vatsim-data.txt
2019-09-16 22:41:29 +01:00
Klaus Basan
009719a7be Ref T681, fixed handling of CG from DB
* consider settings
* remember DB CG data correctly
2019-09-16 22:41:28 +01:00
Klaus Basan
b43ab76007 Add URL info for reading 2019-09-16 22:41:28 +01:00
Klaus Basan
083293c016 Style 2019-09-16 22:41:28 +01:00
Klaus Basan
678166175b Style 2019-09-16 22:41:24 +01:00
Klaus Basan
d9948af103 Ref T609, fixed signal/slot connection of cross context hookup
* audio can be local or remote special case
* so we have to hookup on core or remote side depending on that
2019-09-16 22:41:24 +01:00
Klaus Basan
a583def040 Ref T703, sending and receiving of relayed text messages
* turn relayed messages into normal messages
* avoid signals for relayed messaged
* relay received messages to partner (co-pilot)
2019-09-16 22:41:23 +01:00
Klaus Basan
6adea91618 Ref T703, set partner callsign in network vatlib / functions in context adjusted 2019-09-16 22:41:21 +01:00