Commit Graph

66 Commits

Author SHA1 Message Date
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
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
72ac4e6b47 Fix doxygen warnings
Fixes #188
2023-04-05 18:59:41 +02:00
Mat Sutcliffe
7691e42a5b Fix doxygen warnings
Fixes #188
2023-04-05 18:57:11 +02:00
Mat Sutcliffe
57d32da826 Use nested namespaces (C++17 feature) 2021-09-18 15:07:48 +01:00
Lars Toenning
cedaa48f5a Issue #120 Remove separate PTT COM1/COM2 hotkeys 2021-09-14 00:07:01 +02:00
Lars Toenning
6564c93ae6 Issue #100 Add hotkeys to change COM volume 2021-09-05 12:00:59 +02:00
Lars Toenning
4b37c5ca30 Issue #100 Add slider for master output volume 2021-09-05 11:24:34 +02:00
Lars Toenning
c1b75f7532 Issue #100 Seperate COM1/2 output volumes 2021-09-03 17:43:02 +01:00
Mat Sutcliffe
2ae0352e75 [doxygen] Fix broken groupings 2020-08-01 19:48:37 +01:00
Klaus Basan
bba07ef4c4 [AFV] Signal/handling for authentication failures
* authentication issues in AFV were silently handled
* and there was no re-try, which could mean an initial glitch COULD cause AFV not working properly
* NOW handling in AFV client and context
* also reset connection data so for a new session no old authentication token or check time is used
* check for "invalid" QDateTime(s)
2020-06-12 18:42:54 +01:00
Klaus Basan
ea8198d26e [AFV] Allow to set the tx/rx values for the AFV client
Simplified function
2020-06-12 18:42:46 +01:00
Klaus Basan
7d4e897b88 [AFV] Displayed sync. (integrated with COM unit) flag in cockpit 2020-06-12 18:42:40 +01:00
Klaus Basan
4d5e3ee0ae Init context devices deferred as the settings are ONLY available after DBus is initialized
* we init in a context constructor
* a this time it is not clear:
** if we will use a DBus scenario
** or standalone scenario
2020-01-22 19:46:14 +01:00
Klaus Basan
efee7968dc [AFV] Using the aliased frequencies can be enabled/disabled
* flag
* "dot command"
* register audio "dot commands" for audio
2020-01-07 19:57:20 +00:00
Klaus Basan
0a1835f1a5 [AFV] Ref T739, register used AFV callsigns
For core/GUI we need to register with 2 different callsigns
2020-01-07 19:46:17 +00:00
Klaus Basan
87f078a698 [AFV] Ref T731, Ref T739 register devices so we can also obtain remote devices 2020-01-07 19:46:15 +00:00
Klaus Basan
8a89b8f261 [AFV] Ref T739, context function to unregister per identifier 2020-01-07 19:46:15 +00:00
Klaus Basan
275173c383 [Doxygen] workaround to silence audio context Doxygen error, no idea why this was wrong 2020-01-07 19:05:43 +00:00
Klaus Basan
a9a772c929 [AFV] Ref T739, audio context default device handling 2020-01-07 19:05:42 +00:00
Klaus Basan
5150fb4e86 [AFV] Ref T739, cmd.line args for "no audio" 2020-01-07 19:05:42 +00:00
Klaus Basan
9447db00bc [AFV] Ref T739, audio can now be disabled from UI 2020-01-07 19:05:41 +00:00
Klaus Basan
767b999330 [AFV] Ref T739, start/stop audio improvements
* signals
* "restart" without devices
2020-01-07 19:05:40 +00:00
Klaus Basan
a63fe0dc21 [AFV] Ref T739, unified callsign functions in CAfvClient
* improved CallsignSet from QStringList
* renamed the functions which just return a string
* added functions for CCallsignSet
2019-10-23 00:38:26 +02:00
Klaus Basan
afe72b029f Doxygen/style 2019-10-23 00:38:24 +02:00
Klaus Basan
aaa5fc259a Doxygen 2019-10-18 12:10:55 +02:00
Klaus Basan
2dbe8464f4 [AFV] Ref T739, CoInitializeEx main thread of CAfvClient 2019-10-18 10:36:24 +02:00
Klaus Basan
725a798cba [AFV] Ref T739, removed unused code 2019-10-18 10:36:24 +02:00
Klaus Basan
8ecfd8f23d Ref T739, workaround to hide "local signals" from Dbus registration
Directly using CAfvClient signals - a scenario we actually want to avoid
2019-10-18 10:36:24 +02:00
Klaus Basan
383352f79c [AFV] Ref T739, remove implementation details from IContextAudio to keep the DBus interface "pure"
* This was an approach to avoid registration of "local signals"
* that part DID NOT work as planned, as all object's signals are registered
* the refactoring itself nevertheless is NOT a bad idea and has been kept
* as the audio context has this special "concept" and CAfvClient can run on both sides (proxy AND impl.side)
2019-10-18 10:36:23 +02:00
Klaus Basan
8fb74f945b [AFV] Ref T730, move voice settings into voice setup .h file
* same like we do for audio
* there was only one file in the settings subdir
2019-10-18 10:36:23 +02:00
Klaus Basan
f76448fbaf [AFV] Ref T730, changed to "startedAudio" signal, relayed from CAfvClient (and not like before emitted in context)
Since start can be async (in another thread) it was possible the "old" signal was emitted too early
2019-10-13 16:47:41 +02:00
Mat Sutcliffe
b929eb442a [AFV] CContextAudio::m_voiceClient is a raw pointer, and CAfvClient doesn't have a parent 2019-10-11 19:40:43 +01:00
Klaus Basan
2468b2ee49 [AFV] Ref T739, fixed typos, style and Doxygen in contexts 2019-10-11 19:40:43 +01:00
Roland Rossgotterer
11ee2413b5 Doxygen 2019-10-11 19:40:42 +01:00
Klaus Basan
fdf4bf6b57 Ref T739, added proxy functions for audio context to register devices (from multiple machines) 2019-10-11 19:00:53 +01:00
Roland Rossgotterer
01d144b528 [AFV] Hide AFV client behind context 2019-10-11 19:00:52 +01:00
Klaus Basan
1222f425b0 Style 2019-10-11 19:00:51 +01:00
Klaus Basan
ff33b59683 Ref T739, make member of CAfvClient a "pointer"
* we can use forward declaration for m_voiceClient
* make IContextAudio -> BlackMisc::CIdentifiable
* removed delayedInitMicrophone, RR will move it to another place
2019-10-11 19:00:48 +01:00
Klaus Basan
d3c0e75248 Ref T730, added voice server setup (settings for server URLs) to context 2019-10-11 19:00:45 +01:00
Klaus Basan
f69edff5c0 Ref T730, context shutdown
* virtual function for "about to shutdown"
* graceful shutdown
2019-10-11 19:00:43 +01:00
Mat Sutcliffe
2dbc347bd7 [FSD] Doxygen 2019-10-11 19:00:38 +01:00
Klaus Basan
ce772baf79 Ref T739, moved code for voice client to IContextAudio
* code can be used on both sides (UI/core)
* the lots become normal public functions
* the slots will be used for new DBus functions
2019-10-11 19:00:36 +01:00
Klaus Basan
09e65a2525 Ref T739, renamed CContext -> IContext
This reflects the purpose better, it is a base class for all context interfaces
2019-10-11 19:00:35 +01:00
Roland Rossgotterer
a2e3700739 Replace QAudioDeviceInfo with CAudioDeviceInfo where possible
QAudioDeviceInfo is a low level technical class, which shouldn't be used in higher level code. Remove it from all APIs
where possible and just create it in order to interface with QAudio
2019-10-11 19:00:31 +01:00
Klaus Basan
6071e77b7f Ref T730, removed voice room related funcions from audio context 2019-10-11 18:59:59 +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
7030302e73 Cleanup audio context
Remove unused methods
Make methods only used in CContextAudio private
2019-09-18 13:50:41 +02:00
Klaus Basan
77fcde6465 Ref T644, audio volume for notification sounds can be set 2019-05-13 11:20:50 +02:00