Commit Graph

270 Commits

Author SHA1 Message Date
Klaus Basan
0437bf3381 refs #140 , adjust sample for DBus marshalling / unmarshalling in order to test "tupel-ized" classes
* Added further DBus tests
* Crossover from refs #85 , removed dependency from generator adaptor and XML files, as this will not work anymore in the future
* Removed from .pro DBUS_ADAPTORS , DBUS_INTERFACES, QDBUSXML2CPP_INTERFACE_HEADER_FLAGS , QDBUSXML2CPP_ADAPTOR_HEADER_FLAGS
* Added interface, as this will be no longer generated
* Removed samples no longer required, the sample no represents a framework to test DBus marshalling / unmarshalling
2014-03-10 15:07:43 +01:00
Klaus Basan
dde9710144 Refs #140 , refs #85 Rename namespace voice to audio.
In #85 the voice context will be renamed to audio context, so the CValueObject classes will be renamed to namespace Audio too.
As #140 changes many CValueClasses, this crossover change is done in the same unit of work.
2014-03-10 14:43:06 +01:00
Klaus Basan
1b846f44c8 Fixed LIBS order, as I have run into gcc "undefined reference to" issued 2014-02-26 14:33:15 +01:00
Klaus Basan
b115e3901d refs #146 , check for valid transponder code. During testing I ran into a situation, where I've received an invalid XPDR code from the network.
This check resets XPDR to 0000 , further logging could be provided.
2014-02-26 03:44:37 +01:00
Klaus Basan
4c81a6f86d refs #146 added updating and reading of VATSIM data file , so name and cid are available almost immediately 2014-02-26 03:44:37 +01:00
Klaus Basan
79aa17cdaf refs #146 , renamed method to dataRead like in CVatsimDataFileReader 2014-02-26 03:44:35 +01:00
Klaus Basan
a9385870e0 refs #146 , CVatsimDataFileReader reads the data file for VATSIM and provides all ATC stations and aircrafts
* Data can be completed by attributes from the data file
* All voice servers are available
* Predictions can be made, even if the user is not logged in
2014-02-26 03:44:34 +01:00
Klaus Basan
87352df468 refs #139 added keyboard key list to settings, so values can be changed 2014-02-26 03:38:30 +01:00
Klaus Basan
4ab59f77a5 refs #132 , based on RW's comment renamed method to loadFinished ( as in http://qt-project.org/doc/qt-4.8/qwebview.html ) 2014-02-21 18:27:07 +01:00
Klaus Basan
d0aef2fee1 refs #132 , improved one line comments for Doxygen 2014-02-21 16:52:33 +01:00
Klaus Basan
e69ee30dfb refs #132 , network context adjusted, reading of VATSIM bookings now in own reader class.
* Timer for bookings removed
* Adjusted context slots for reader class
* Consolidation of ATC online and ATC booked in booking receiver slot (CContextNetwork::psReceivedBookings)
2014-02-21 16:10:58 +01:00
Klaus Basan
a7f7ddb4c2 refs #132, reader class for VATSIM booking. The functionality has been moved out of network context, and into this reader class. 2014-02-21 15:46:24 +01:00
Klaus Basan
2db876844c refs #91 & #124 Doxygen, override, and comment fixes 2014-02-12 20:14:32 +01:00
Klaus Basan
dbfd4a69e9 refs #129 , modified voice context to enable notification sounds 2014-02-12 20:14:30 +01:00
Mathew Sutcliffe
fb8efb2720 refs #91 using \private command in Doxygen comments as appropriate 2014-02-11 23:13:35 +00:00
Roland Winklmeier
372a668134 Replaced set of voice connection signals with one general
The different IVoice signals representing a single event
from the voice connection have been replaced by a general
signal emitted when something per com unit has changed.
It passes old and new status.
refs #105
2014-02-10 20:00:54 +01:00
Roland Winklmeier
55b946d32f Add connection status enum to IVoice
refs #105
2014-02-10 19:59:03 +01:00
Mathew Sutcliffe
06a7b0b32f refs #91 & #124 Doxygen, override, and comment fixes in network.
Changed FILE_PATTERNS config in Doxyfile so Doxygen only looks at headers, not cpp files.
Reverts some changes of commit:116db9a (e.g. terminate() is an internal signal of CNetworkVatlib, but still needs a doxy comment because all signals are public).
2014-02-08 14:20:39 +00:00
Klaus Basan
e46a883f08 refs #93, initialize all member pointers to nullptr at the top of the constructor, as mentioned by MS in #93 2014-02-08 14:11:37 +01:00
Klaus Basan
f245ea1283 refs #91 & #124 doxygen fixes, style/comment changes, typos, and override keywords 2014-02-08 14:11:36 +01:00
Klaus Basan
1a72b4b691 refs #93, update network data such as ATIS or pilot frequencies from time to time,
as these data are not actively pushed from network when changing
* timer in network context
* update methods, one specific method for ATIS as this can also be manually re-read(from GUI)
2014-02-08 14:11:33 +01:00
Klaus Basan
2cbddeb5ee Some minor network context upfront fixes discovered:
* readAtcBookingsFromSource() const; to non const, it changes data in the context
* better adjusting of update time for bookings
* No updates if URL is empty, checked.
2014-02-08 14:11:32 +01:00
Roland Winklmeier
3022c7c0e0 Fix warning with unused private members in CInterpolator
refs #92
2014-02-08 11:01:32 +01:00
Mathew Sutcliffe
0a6030f5df refs #92 fixing warnings when compiling for 64bits due to conversions between size_t and int 2014-02-07 22:51:23 +00:00
Klaus Basan
116db9a425 refs #91 & #124 doxygen fixes, style/comment changes, typos, and override / nullptr keywords
Remark: Doxygen <70 warnings
2014-02-07 01:09:31 +01:00
Klaus Basan
6bf930650a fixes #123 by displaying the Audio test in the GUI
* added methods to get results in context
* added signal to indicate audio test completed
* updated GUI to display results
* changed test run methods to non-const to be consistent with voice lib
* Logic in GUI to avoid parallel / interfering tests
* Fixed wrong Q_ASSERT message and QTimer::singleShot in voice_vatlib.cpp
2014-02-06 16:07:16 +01:00
Klaus Basan
526cd916a8 refs #91 & #124 doxygen fixes, style/comment changes, typos, and override keywords 2014-02-06 03:22:42 +01:00
Klaus Basan
2356708b63 Renamed method to runMicrophoneTest(), a change likely got lost in the rebase session Feb06 2014-02-06 01:24:01 +01:00
Klaus Basan
ff5cf5ea4a refs #91 & #124 doxygen fixes, style/comment changes, typos, and override keywords 2014-02-05 23:26:13 +00:00
Klaus Basan
2feab9f5e7 Bugfix to set aircraft callsign from voice context, fixes #120
In the same step added methods to test squelch and microphone, refs #123
2014-02-05 23:16:31 +00:00
Klaus Basan
6aa6058c57 Added method getSelectedAtcStations() to network context.
Further isConnected checks in order to avoid updating when not connected (leading to wrnings / errors)
2014-02-05 23:16:24 +00:00
Klaus Basan
79f5b6fcd3 Added / prepared for state disconnecting:
Taking up the idea of MS (disconnecting),
and based on a real world issue where the transition state
of disconnecting was still handled as connected.
2014-02-05 23:16:19 +00:00
Klaus Basan
4a77ee5fc4 Added QAudioOutput to voice lib, as an approach to overcome #117 2014-02-05 23:16:08 +00:00
Klaus Basan
ffb09c0d4a Fixing typo (qWarning) in voice_vatlib 2014-02-05 23:16:00 +00:00
Klaus Basan
247bacb538 Handling of ATC disconnect in context, missing signal / slot connection 2014-02-05 23:15:58 +00:00
Klaus Basan
b8d87038a1 Fixed .pro files, typos in libblacksound (non win) 2014-02-05 23:15:51 +00:00
Klaus Basan
6485527062 Changed voice context so it can play SELCAL tones. This makes sense, as I can
use the device information of this context. Sound shall be played on the
same computer as the voice.

* Adjusted .pro file
* Methods for SELCAL in context
* New XML file (DBus)
* changed the place where I can obtain the current in/output device
2014-02-05 23:15:24 +00:00
Mathew Sutcliffe
bb4fe3f858 fixed missing delimiter in capabilities string when using stealth mode 2014-02-01 18:19:48 +00:00
Klaus Basan
291c52d4e0 Added check if network connection can be established
as discussed in #101
2014-01-31 02:13:38 +01:00
Mathew Sutcliffe
f8d6d092fb postpone variable definitions as long as possible (Effective C++ item 26) 2014-01-30 19:48:53 +00:00
Klaus Basan
3534d44d5e Resolve callsigns to user objects 2014-01-27 16:11:19 +01:00
Klaus Basan
b775a2c9d5 fixed comment 2014-01-26 23:15:56 +01:00
Klaus Basan
0fa421d8a6 Consider Channel Spacing (50, 25, 8.33kHz) for COM frequencies.
Deals with a special topic: While frequencies at VATSIM/flightsim are usually set in 25kHz spacing, some ATC stations (radar) require 8.33kHz tuning.
The now made extension handles this and allows to listen to a voice room even if the corresponding frequency is not exactly tuned in.

Example: EKDK_CTR 135,270 but needs to be tuned in as 135,275
2014-01-26 15:51:48 +01:00
Klaus Basan
1199f05fe2 Added LoginMode for login from GUI
* updated context method
* updated GUI, checkboxes for mode
* style sheet modified due to GUI update
2014-01-26 02:34:56 +01:00
Klaus Basan
1c0b714a18 Merge with master after fixes for containers,
refs #106
2014-01-26 00:09:30 +01:00
Klaus Basan
2c7ab19006 New DBus XML files generated 2014-01-25 23:36:48 +01:00
Mathew Sutcliffe
8561f17191 doxygen comments for all non-private members of INetwork, refs #91 2014-01-25 19:36:41 +00:00
Mathew Sutcliffe
7316fb8398 changed a couple more INetwork method names for consistency 2014-01-25 19:36:40 +00:00
Mathew Sutcliffe
ff3010931f connection status improvement, now we also check the return value of ConnectAndLogon
refs #101
2014-01-25 19:36:39 +00:00
Mathew Sutcliffe
0af8c9eb3e refs #100 Rationalization of INetwork signals and slots
* Naming convention: "preset" only when disconnected, "send" only when connected, "set" both
* Every asynchronous pair is named as in "sendFooQuery" and "fooReplyReceived"
* Moved LoginMode from CNetworkVatlib constructor to INetwork::presetLoginMode
* Callsign and ICAO codes can only be changed when disconnected, so have their own "preset" methods
** Callsign and ICAO parts of setOwnAircraft are therefore ignored
** CUser part of setOwnAircraft is ignored, in favour of the CUser part of presetServer
* CNetworkVatlib takes care of reconstructing m_net if the LoginMode is changed
2014-01-25 19:36:37 +00:00