Commit Graph

48 Commits

Author SHA1 Message Date
Mathew Sutcliffe
9bef6854ca Caches: rename "get" to "getThreadLocal" and rename "getCopy" to get. 2016-06-08 18:21:01 +02:00
Klaus Basan
2cc9f8d754 Fix to avoid termination ("assert") noticed during testing 2016-06-08 18:20:50 +02:00
Roland Winklmeier
933271b828 Fix BlackCore header includes
* Include only what is used
* Use forward declaration when possible
* Sorted includes

refs #598
2016-05-13 17:06:00 +02:00
Roland Winklmeier
3d7a39ed00 Fix BlackMisc header includes
* Include only what is used
* Use forward declaration when possible
* Sorted includes

refs #630
2016-05-13 17:05:49 +02:00
Klaus Basan
96189f530b Fixed typo setGroundSpeed 2016-05-07 20:11:50 +02:00
Klaus Basan
1eb65a873c refs #610, VATSIM status file
* automatically load status file
* keep VATSIM data file locations
* use METAR/datafile locations from bootstrap or VATSIM status file
2016-03-18 01:10:12 +00:00
Klaus Basan
06bcbe2a2f refs #607, use cached FSD servers and voice servers. So in case read fails last good data could be used. 2016-03-18 01:10:09 +00:00
Klaus Basan
aa96731143 refs #485, further removed global setup traits from classes with read only
Use global setup from sGui/sApp
2016-03-18 01:09:45 +00:00
Klaus Basan
12957f8ec0 refs #602, remove QNetworkAccessManager from readers, use central one 2016-03-18 01:09:15 +00:00
Klaus Basan
1a1e4681fe refs #600, turned CUrlList into a plain vanilla list
* bundled all load balancing in CFailoverUrlList. "Obtain" functions are non-const, no need of mutable members
2016-03-18 01:08:41 +00:00
Klaus Basan
ce3edc37d0 refs #597, removed setup reader includes no longer needed 2016-03-18 01:08:27 +00:00
Mathew Sutcliffe
ac573b8d92 refs #476 The readers should delete their QNetworkAccessManager in cleanup(), just before they move back to the main thread for later deletion. 2015-11-26 18:24:11 +00:00
Mathew Sutcliffe
3e1eb350c5 refs #476 CThreadedReader::gracefulShutdown using the worker abandon feature, removed m_shutdown. 2015-11-26 18:24:11 +00:00
Klaus Basan
d131cd2d33 refs #507, changed setup reader and simplied global setup and setup reader
* a single base URL (shared), derived URLs by appended path
* simplified dir structure shared with sub directories
* renamed functions
* automatically synchronize setup with DB when initialized
* trigger download info loading when setup is completed
* allow to automatically read after setup data have been synchronized
* read DB data when setup has been loaded
* allow to reload from threaded reader
* improved handling (log messages, skip reading) when data are not available
2015-11-19 21:07:58 +00:00
Klaus Basan
4d3d9fa6be refs #476, improvements on gracefulShutdown
* gracefulShutdown in metar reader and other readers
* made m_shutdown thread safe
* Demoted log level for reader
* helper function finished or shutdown
2015-11-19 21:07:33 +00:00
Klaus Basan
53ba50dd3a refs #478, use data cache in readers
* URLs no longer have to be passed
* watchdog for DB readers to check DB status

In same step:
* fixed some log messages and comments
* allow to self signed SSL certificates
* adjusted namespace for CNetworkUtils (now in network)
2015-11-19 21:03:39 +00:00
Klaus Basan
8827b68b3b refs #452 signals in reader classes. adjusted METAR reader
* renamed to connectDataReadSignal
* removed unused individual signals, e.g. vatsimMetarsRead -> replace by data read signal + entity flag
* added data in METAR class (kept there, not in airspace monitor) -> reader aware
2015-11-19 21:00:15 +00:00
Klaus Basan
a8a26bc281 refs #452 updated VATSIM readers
* use CSimulatedAircraft
* changed signatures from CAircraftIcaoData (removed) to CAircraftIcaoCode
* Formatting
2015-11-19 20:59:11 +00:00
Klaus Basan
104122023c Aircraft ICAO data should use ICAO code as attribute, this somehow got lost in the merge session, re-applied 2015-05-17 20:29:06 +02:00
Mathew Sutcliffe
b65232b202 MS & KB workshop: ICAO class renamings. 2015-05-12 22:47:54 +01:00
Klaus Basan
069f4749f4 refs #418, ICAO data for reader
* value objects and respective lists
* adjusted CAircraftIcao to use new classes
* some smaller fixes, Doxygen
* reader for values from database JSON values
  http://vatrep.vatsim-germany.org/service/allaircrafticao.php?rows=10000&sord=asc
* Related: Slightly improved signals for VATSIM reader
2015-05-12 21:03:43 +01:00
Klaus Basan
79e2a7b805 refs #395, improved synchronization of booked and online stations
* moved sync functionality into CAtcStation
* consolidated function names
2015-05-12 20:46:43 +01:00
Klaus Basan
aafee8eafd refs #402, post merge feedback by MS 2015-04-11 02:09:10 +02:00
Michał Garapich
985a1caecf refs #396 BlackMisc: nw* goes to network/, hw* goes to hardware/ 2015-04-07 19:22:37 +02:00
Klaus Basan
0ab755d510 refs #396 subfolders and renamed callsign list to callsign set
* subfolder audio
* subfolder geo
* adjusted samples, tests ....
2015-04-07 19:22:23 +02:00
Roland Winklmeier
78d3350bf3 refs #396 move Blackmisc Aviation classes into subfolder 2015-04-07 18:20:20 +02:00
Klaus Basan
5d491b9456 refs #380, use CWorker instead of QConcurrent for threaded reader (bookings/VATSIM file) 2015-03-20 16:33:43 +01:00
Klaus Basan
366769a6b8 Formatting, doxygen, typo aircrafts (to aircraft),
removed some debug output, {} in if statements
2014-12-28 20:46:14 +01:00
Mathew Sutcliffe
54e883c322 refs #334 VATSIM threaded reader classes using CContinuousWorker. 2014-11-30 02:49:15 +01:00
Klaus Basan
853caacddf Proper error messages for readers in case reading fails 2014-11-30 00:56:51 +01:00
Klaus Basan
5ff28cb3a1 refs #288, formatting, minor tweaks, utility methods, tabstops 2014-11-30 00:55:04 +01:00
Klaus Basan
a401ce439d refs #288, added FSD servers to VATSIM reader
* Voice and FSD servers can be obtained via context
* using QSCopedPointer for network reply
* minor fixes / renaming
2014-11-30 00:54:43 +01:00
Klaus Basan
4500bda125 Added updates by VATSIM data file for voice capabilities 2014-09-09 20:07:29 +02:00
Klaus Basan
2127238ed4 Doxygen, renaming, formatting
* Formatting, renaming to current schema
* Minor tweaks
2014-09-09 20:07:27 +02:00
Klaus Basan
3fb5087ea8 Renaming, header, Doxygen, formatting (during refs #314) 2014-08-24 02:45:52 +02:00
Klaus Basan
600ea2b803 Fixed several issues detected during testing / review (refs #304)
* MS report 1-5 https://dev.vatsim-germany.org/issues/304#change-1800
* Clang warning https://dev.vatsim-germany.org/boards/22/topics/1982?r=1997#message-1997
* Wrong indexes for dockable widgets, RW: https://dev.vatsim-germany.org/issues/304#note-13
* Fixed wrong offset in Fsuipc class
* Improved position handling for floating widgets opened 1st time
2014-08-05 23:32:11 +02:00
Klaus Basan
a7bb0f2e22 refs #306, fix for thread safety 2014-08-05 23:32:06 +02:00
Klaus Basan
3cf42b218a refs #306, refs #282 Thread safety of readers
In the same step:
* renaming private slots ps_xy
* doxygen
* removed outdated debug messages
2014-07-27 16:10:27 +02:00
Mathew Sutcliffe
a4b317b100 refs #290 using a CRange of iterator adaptors in implementating the tertiary predicate-based methods of the derived containers,
but preserving the return-by-copy for API stability
2014-07-13 20:30:22 +01:00
Klaus Basan
7b546c7dba Fixes 2,4,6 refs #287
https://dev.vatsim-germany.org/issues/287#note-14
2014-07-11 15:12:44 +02:00
Klaus Basan
161aec96a7 Prefix ps_ for some private slots
https://dev.vatsim-germany.org/boards/22/topics/1914?r=1920#message-1920
2014-07-11 01:20:45 +02:00
Klaus Basan
d9a1c0cc8c refs #287 Thread safety, fix "memory access violation"
* some improved comments and information
* QMetaObject::invokeMethod in tool.cpp as thread safe invocation
* common base class for threaded readers
* removed event class, using QMetaObject::invoke instead for forcing calls in main event loop
* stop methods for readers, as used for graceful shutdown (preparing for thread safe destruction of objects)
* graceful shutdown for network context
* calls in tool now via inkoke for thread safety (only thread safe methods called directly)
2014-07-11 01:15:18 +02:00
Klaus Basan
a867a490e6 Improved details on the readers, regarding timestamp 2014-06-23 01:19:29 +02:00
Klaus Basan
2325881c91 Finetuning
* Improved reloading of booked stations
* Improved error reporting in data file reader
* Finetuning of network context, mostly reg. VATSIM data file
2014-06-09 14:44:29 +02:00
Klaus Basan
cafc3f37f6 refs #259, parsing VATSIM files in background 2014-06-09 14:44:11 +02:00
Klaus Basan
9c5726dc13 refs #23, anticipating aircraft ICAO code from VATSIM data file
* helper methods
* renamed methods
2014-06-09 14:43:23 +02:00
Klaus Basan
cbd8f2681a refs #234, add methods to resolve user names from VATSIM file and display them in voice rooms 2014-05-07 23:23:20 +02: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