Commit Graph

146 Commits

Author SHA1 Message Date
Klaus Basan
0482b9883d [DB readers] misc fixes found during "datastore down" investigation
* added CEntityFlags::AircraftCategoryEntity in config lists
* flag to name
* missed initial reading of categories
* style
2020-06-12 18:42:30 +01:00
Klaus Basan
e376c18b28 Ref T701, check for model string in reader 2019-09-16 22:40:18 +01:00
Klaus Basan
891d75598e Ref T658, matching script web services wrapper 2019-09-16 20:29:53 +01:00
Klaus Basan
4951e7e35f Ref T614, improved log 2019-05-13 11:20:37 +02:00
Klaus Basan
df686d7efc Ref T607, detect mappings from quick mapping wizard 2019-05-13 11:20:36 +02:00
Mat Sutcliffe
21a13978a2 Remove redundant code. 2019-04-12 13:30:49 +01:00
Klaus Basan
28b6f484e4 Longer time out in dev.build 2019-04-11 22:12:12 +01:00
Klaus Basan
b57003c4e8 Style, typo 2019-04-11 22:11:35 +01:00
Klaus Basan
4c33e4d792 Ref T554, publishing function for "auto publish data"
* writer
* services
2019-04-11 22:11:34 +01:00
Mat Sutcliffe
e9a4c49d68 Ref T547 Update license masthead in all source code files. 2019-02-22 20:36:43 +00:00
Klaus Basan
716cd67a2c Ref T472, category support in web data reader 2019-02-22 20:35:58 +00:00
Mat Sutcliffe
fe7a45afcf Ref T516 Update CStatusMessage call sites to use new syntax. 2019-02-22 20:35:51 +00:00
Klaus Basan
003ad0f0de Ref T490, "ps_read" replacement 2019-02-22 20:35:03 +00:00
Klaus Basan
788f827110 Ref T489, Ref T484, string improvements 2019-02-22 20:35:03 +00:00
Klaus Basan
efb1ac46f2 Ref T489, added "parsing" state for entity read states 2019-02-22 20:35:02 +00:00
Klaus Basan
400a8fc2a8 Splash screen messages for web data services 2019-02-22 20:35:01 +00:00
Klaus Basan
8c3faa4ca9 Ref T489, support download progress in our readers
* signal for download progress per entity (DB reader)
* ProgressSlot
* changed signatures for ProgressSlot
2019-02-22 20:35:00 +00:00
Klaus Basan
8cb04e4965 Minor fixes DB loading overview 2019-02-22 20:35:00 +00:00
Mat Sutcliffe
225ff81252 Ref T485 Adjust CLogMessage and CStatusMessage call sites to use the new API. 2019-02-22 20:34:55 +00:00
Mat Sutcliffe
a65be602bb Fixed clazy warnings: provide receiver object argument to signal/slot connection. 2019-02-22 20:23:40 +00:00
Mat Sutcliffe
9f85a7b560 Fixed clazy warnings: pass large objects by reference to const. 2019-02-22 20:23:33 +00:00
Klaus Basan
4dcb2185b4 Ref T367, info objects are also read, as the files are small and sApp->isInternetAccessible() is not fully reliable (Qt Accessibility bug) 2018-09-23 20:12:31 +02:00
Klaus Basan
ff2f653aae Style 2018-09-23 20:12:27 +02:00
Klaus Basan
837288b874 Gracefully shutdown if destructed, slightly related to Ref T315 2018-09-09 02:55:13 +02:00
Klaus Basan
1746388560 Ref T292, Ref T285 use CEntityFlags::isFinishedReadState to also check against restricted read plus refactoring 2018-07-27 04:02:50 +02:00
Klaus Basan
f36ebbfa83 Doxygen and style 2018-07-25 02:37:12 +02:00
Klaus Basan
35a1a715d8 Ref T246, allow to load DB data per entity from resource files 2018-07-17 19:05:02 +02:00
Klaus Basan
c8aabd675e Guard QTime::singleShot in CWebDataServices 2018-07-10 17:17:33 +02:00
Klaus Basan
abfa12c1ec Ref T272, skip VATSIM readers if (for sure) connected to an other eco system
Remark: This requires the server (=> ecosystem) to be connected, otherwise VATSIM data (before that connection) are still read as default
2018-06-01 01:30:31 +02:00
Klaus Basan
1b8383bee1 Guarding QTimer::singelShot operations, avoid to access dangling pointers 2018-05-08 16:06:39 +02:00
Klaus Basan
574bc8b51b Utility functions for entity flags and web data services
* multiple flags by name
* number of DB objects
* newer entities synchronized
2018-05-04 23:03:19 +02:00
Klaus Basan
d6fd53287f Improved graceful shutdown, added "m_shutdownInProgress"
* no assert when wait is called in same thread, just ignore wait
* quitAndWait readers, also works if not already noved in new thread (see above)
2018-04-13 23:36:49 +02:00
Klaus Basan
e001b0338f Ref T242, utility functions for matching
* search among airline aircraft
* improved logging information
* search among airline ICAO aircraft (which aircraft does the airline use?)
* check ecosystem before merging with VATSIM data
2018-02-09 04:43:47 +01:00
Klaus Basan
bb65b7c280 Ref T226, renamed to swiftDbAllDataRead 2018-02-02 21:26:52 +01:00
Klaus Basan
0101e31db2 Ref T237, find latest DB cache ts and only init caches if there are no or old cache data 2018-01-30 23:34:12 +01:00
Klaus Basan
f3afde76ff Ref T237, init/read from JSON files
* multi format compatible (automatically detect format)
* flag if cache values shall be overridden
* init from resource files (those are the files coming with the installer)
* automatically read in background if reader is (already) in its own thread (otherwise cache.set() ASSERT)
2018-01-30 20:35:32 +01:00
Klaus Basan
deddf7c957 Ref T237, init caches from resource files (means the files delivered with swift)
* initFromLocalResourceFiles reads all local DB data
* made 2 functions virtual readFromJsonFiles, readFromJsonFilesInBackground
2018-01-30 20:35:25 +01:00
Klaus Basan
5829917694 Ref T89, signal when server (flight network) connects
* server contains the ecosystem
* connect server signal with web data services (so ecosystem is available)
2018-01-30 20:34:38 +01:00
Klaus Basan
d2389c15cc Ref T224, allow to check for empty caches 2018-01-15 22:50:33 +01:00
Klaus Basan
a2f985e308 Ref T215, containsAircraftIcaoDesignator web service function 2018-01-13 05:04:13 +01:00
Klaus Basan
162c3d07b5 Ref T189, formatting (some slots -> private + this->m_ ->m_) 2017-12-21 19:47:32 +01:00
Klaus Basan
bc2b40dcd8 Ref T189, renamed to CWebReaderFlags::entitiesToReaders plus some assert utility functions 2017-12-21 19:45:14 +01:00
Klaus Basan
4166982954 Ref T118, allow to just provide an id (from backend) and set the entity on swift side
* added getDistributorForDbKey
* added fillInMissingAircraftAndLiveryEntities
* fromDbJson function adjusted
2017-10-31 15:39:26 +01:00
Klaus Basan
b6333e69d8 Ref T171, made remote aircraft provider and web service "protected slots" -> "protected"
* Unlike in other cases, the remote aircraft provider slots are also very frequently called. So besides "style", it might be also useful here to avoid the extra MOC layers.
* Also renamed 2 web service signals and made web service connections Qt::QueuedConnection
2017-10-18 22:58:24 +02:00
Klaus Basan
b047004470 Ref T129, added functions for swift DB reader / web data services
* added getAirlineIcaoCodeForUniqueDesignatorOrDefault and getAirlineIcaoCodeForUniqueIataCodeOrDefault from reader/web data services
* rearranged order of functions in ICAO reader
* added some more functions like "containsXX" in reader
2017-10-10 00:28:22 +01:00
Klaus Basan
f95a0b60cc Ref T129, utility function to check airline ICAO against swift DB 2017-10-10 00:28:04 +01:00
Klaus Basan
15e46ba94a Do not trigger loads if they are doomed to fail 2017-09-27 03:01:03 +02:00
Klaus Basan
52caf795d1 Renamed function to hasSuccesfullyConnectedSwiftDb() 2017-09-24 20:29:01 +01:00
Klaus Basan
3c97d68430 Ref T149, connect reader signals as Qt::QueuedConnection; 2017-09-24 20:28:59 +01:00
Klaus Basan
a4de52852d Ref T150, use network watchdog with web data services
* removed own checks and use watchdog
* connect with readers to avoid redundant checks
2017-09-24 20:28:35 +01:00