Commit Graph

152 Commits

Author SHA1 Message Date
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
Klaus Basan
0425ef5c6a Made BlackMisc::CStatusMessageList value no slot, no DBus XML signature shall be created.
A second value method tailored for DBus is the one called for DBus transfer and uses QDBusVariant.
2014-01-25 19:50:27 +01:00
Klaus Basan
6d5ad3ca75 Improved handling in CContextNetwork::getUsersForCallsigns
CContextNetwork::readAtcBookingsFromSource(), URL from settings
Helper method: BlackMisc::Settings::CSettingsNetwork getNetworkSettings()
2014-01-25 01:58:55 +01:00
Klaus Basan
ee5336e308 Formatting, Doxygen, Renaming 2014-01-25 01:56:37 +01:00
Klaus Basan
dd3803f9a9 Methods for CContextVoice::getCom1/2VoiceRoom
CContextVoice::getComVoiceRoomsWithAudioStatus() to const
2014-01-25 01:53:38 +01:00
Klaus Basan
36bab20f58 Updated CVoiceVatlib::getComVoiceRoomsWithAudioStatus() to const
Callsign split for user onRoomUserReceived
Check in CVoiceVatlib::addTemporaryCallsignForRoom
2014-01-25 01:51:54 +01:00
Klaus Basan
0f3d4666fa Comments / order of methods
* Reordered methods a bit
* Fixed Doxygen
* Removed unwanted comments
2014-01-21 17:49:21 +01:00
Klaus Basan
cffb732a94 Changed
* to CCallsignList
* from QString to CCallsign

Added:
* Method to get users, and
* users for callsigns

Fixed some Doxygen comments along with the changes
2014-01-21 17:46:55 +01:00
Klaus Basan
0e519dbeff Fixed Doxygen 2014-01-21 17:44:24 +01:00
Klaus Basan
17b6789d4e Changed voice to
* CCallsignList
* CCallsign (replaced QString)
* fixed Doxygen comments
2014-01-21 16:42:53 +01:00
Klaus Basan
3af1711045 Fixed Doxygen/include 2014-01-21 16:40:53 +01:00
Klaus Basan
3769ad1e65 Added methods getUsers / getUsersForCallsigns 2014-01-21 01:59:44 +01:00
Klaus Basan
06572def1a Renamed private slot, to better fit naming scheme 2014-01-21 01:45:08 +01:00
Klaus Basan
5bf3fb2fdf Some preparation / formatting before starting 2014-01-20 23:15:22 +01:00
Mathew Sutcliffe
e3ba42d152 fixed mistake in CNetworkVatlib::isDisconnected 2014-01-19 00:03:58 +00:00
Mathew Sutcliffe
26ef5ecd5a reverted commit:97dda0b because QMetaEnum is working fine, it just needed the Q_ENUMS macro too
made INetwork::connectionStatusToString a static method
2014-01-19 00:03:52 +00:00
Klaus Basan
1129891532 NOMINMAX fix after removal of some classes
https://dev.vatsim-germany.org/boards/22/topics/1417?r=1440#message-1440
2014-01-19 00:23:23 +01:00
Roland Winklmeier
cb112c6ddb Merge branch 'master' of dev.vatsim-germany.org:vatpilotclient/client 2014-01-18 20:38:22 +01:00
Roland Winklmeier
da6e7a58a4 Add ifdefs arround native windows code to fix linux build
- There was some native windows code not properly covered by ifdefs.
- handlePushToTalk() is not yet implemented on linux. Add a dummy.
2014-01-18 20:12:02 +01:00