Commit Graph

367 Commits

Author SHA1 Message Date
Klaus Basan
b74aaf7467 Fixed stupid typo 2014-01-31 01:23:41 +01:00
Klaus Basan
c227de4690 comment, see https://dev.vatsim-germany.org/issues/97#note-8 2014-01-31 00:14:29 +01:00
Klaus Basan
e728a4ab50 Latest container changes 2014-01-30 21:50:01 +01:00
Mathew Sutcliffe
f8d6d092fb postpone variable definitions as long as possible (Effective C++ item 26) 2014-01-30 19:48:53 +00:00
Mathew Sutcliffe
e118c2fc5e fixed GCC warning relating to an assignment being used as a conditional expression 2014-01-29 23:08:56 +00:00
Mathew Sutcliffe
04ab68917f fixed mistake in CCollection::remove, detected by GCC
refs #108
2014-01-29 23:08:55 +00:00
Mathew Sutcliffe
c27da2e38a refs #108, added CContainerBase::to, for converting between different container types 2014-01-28 20:30:50 +00:00
Mathew Sutcliffe
7c8aa8226d const corrections 2014-01-28 20:19:06 +00:00
Mathew Sutcliffe
d48d8ed951 refs #106, moved removeIf from CSequence to CContainerBase and added remove method in CCollection (CSequence already had a remove method) 2014-01-28 18:30:06 +00:00
Mathew Sutcliffe
1e153b45f0 refs #108, added find methods in CSequence and CCollection;
CSequence uses std::find, and CCollection uses the more efficient find method of the implementation type,
which requires that the implementation type be an associative container like QSet or std::set.
Modified CContainerBase::contains to use these new find methods.
2014-01-28 18:25:14 +00:00
Mathew Sutcliffe
d073681630 minor doxygen fixes 2014-01-28 01:50:30 +00:00
Klaus Basan
6b72d61cef Some finetuning in GUI:
* stretched last header column
* height of some grid rows in cockpit
2014-01-27 16:12:18 +01:00
Klaus Basan
3534d44d5e Resolve callsigns to user objects 2014-01-27 16:11:19 +01:00
Klaus Basan
ff5332eddd Hide email for users as this violates some US privacy rules 2014-01-27 16:10:39 +01:00
Klaus Basan
dc38565a8d Added unit test for callsign list, enabled unit tests 2014-01-27 16:10:02 +01:00
Klaus Basan
7c8b31f407 Merge with master for fix of remove in containers 2014-01-27 14:31:46 +01:00
Mathew Sutcliffe
88f4a7186f fixed mistake with forgetting to call erase after std::remove 2014-01-27 00:48:14 +00:00
Klaus Basan
b775a2c9d5 fixed comment 2014-01-26 23:15:56 +01:00
Klaus Basan
0e7c71f91b Unit test for callsign list 2014-01-26 23:14:43 +01:00
Klaus Basan
a95709bbf1 Better toString for user 2014-01-26 23:14:22 +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
14e90a6bc6 Fixed Doxygen 2014-01-26 02:54:24 +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
740424ed09 win32:!win32-g++ changed to win32 only, otherwise not working when set to MinGW on Windows 2014-01-26 00:44:26 +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
6f19d0a479 containers: added methods contains(), remove(), replace(), replaceOrAdd(),
corresponding to contains(), removeIf(), replaceIf(), and replaceOrAdd(), but overloaded for const T& as well as for predicates.
refs #106
2014-01-25 19:36:42 +00:00
Mathew Sutcliffe
33d555e151 moved removeIf from CContainerBase to CSequence because it can't work with non-sequential containers, fixes #106 2014-01-25 19:36:42 +00:00
Mathew Sutcliffe
3d3a43602f removed unnecessary \param and \return lines from doxygen comments for container classes, refs #91 2014-01-25 19:36:41 +00: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
f5e791e049 Added missing CCallsignList::registerMetadata 2014-01-25 19:48:10 +01:00
Klaus Basan
c4f189a547 Added a temporary remove in containerbase. This will be reverted when #106 is ready. 2014-01-25 19:47:37 +01:00
Klaus Basan
38d07286e1 Removed m_voiceRoomCom1/2 members and directly updating voice context
with voice rooms
2014-01-25 02:14:29 +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
2cd5f81828 Added booking service URL to setting, updated Doxygen 2014-01-25 01:41:28 +01:00
Klaus Basan
0bdccd34c7 Unit test: Callsign test 2014-01-25 01:40:20 +01:00
Klaus Basan
22a79625d1 Added callsign to user object:
* Changed user class
* Updated ATC station / aircraft to keep callsigns in sync
* Updated user list model for GUI
2014-01-25 01:36:49 +01:00
Klaus Basan
fb3d7e4d28 Added updating of user views:
* timers
* loading of objects
* refactoring of some methods
2014-01-22 17:44:16 +01:00
Klaus Basan
8008218d28 Fixed include in wrong place 2014-01-22 17:43:01 +01:00
Klaus Basan
09b3ca1b30 Fixed property index for CUser, and as a result also in the list model 2014-01-22 17:42:33 +01:00
Klaus Basan
935594e9dc VoiceRoom: removed default initializers, fixed Doxygen 2014-01-22 17:35:30 +01:00
Klaus Basan
2307a2b642 Added a default implementation for propertyByIndexAsString
in CValueObject
2014-01-22 17:33:50 +01:00
Klaus Basan
4ceb7367f9 GUI, added table view for user lists:
* All users
* Voice room COM1/2 users

Remark: Not yet updated, just preparation of views
2014-01-22 03:08:28 +01:00