Commit Graph

53 Commits

Author SHA1 Message Date
Mat Sutcliffe
4a0d8e9864 Fixed most Qt 5.14 deprecation warnings 2020-01-07 19:57:25 +00:00
Klaus Basan
e376c18b28 Ref T701, check for model string in reader 2019-09-16 22:40:18 +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
10fff29f97 Ref T472, use cross-reader (other reader) objects to avoid unnecessary parsing 2019-02-22 20:36:30 +00:00
Klaus Basan
72b7c61db7 Ref T472, style and minor fixes ("myself") 2019-02-22 20:36:29 +00:00
Klaus Basan
003ad0f0de Ref T490, "ps_read" replacement 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
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
6c05c5249d When calling arg() on a QString constructed from a literal, use QStringLiteral. 2019-02-22 20:23:47 +00:00
Klaus Basan
f6dee9e7ff Ref T308, use optimized version in model reader/performance samples 2018-08-31 20:08:02 +02:00
Klaus Basan
956ffd949d Style 2018-08-26 15:26:49 +02:00
Klaus Basan
12f6e006ab Ref T308, loading JSON from DB optimizations
- info about time consumed for parsing (so we can benchmark)
- using the "optimized" YYYYmmdd parsing
2018-08-22 12:31:54 +02:00
Klaus Basan
b4946bc46d Better consolidation message 2018-08-21 22:10:32 +02:00
Klaus Basan
fcbca7b0b0 Ref T308 prephase, meaasure model parsing ttime 2018-08-21 22:10:31 +02:00
Klaus Basan
c7e6f79a07 Ref T292, Ref T285 avoid unnecessary calls of cache synchronize in DB readers
Rational: Normally calling synchronize multiple times does not matter. However, it can time out if the cache is in use (e.g. saving) and create an exception. This exception is just unwanted "noise".
2018-07-27 01:11:34 +02:00
Klaus Basan
efbd24e10e Model reader refactorings 2018-07-26 22:32:10 +02:00
Klaus Basan
7d106acdee DB reader, doWorkCheck before writing cache. In case shutdown takes place in-between. 2018-05-04 23:03:23 +02:00
Klaus Basan
0b4637054a Formatting 2018-05-04 23:03:16 +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
10f942e702 Formatting, minor tweaks 2018-02-09 04:43:45 +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
162c3d07b5 Ref T189, formatting (some slots -> private + this->m_ ->m_) 2017-12-21 19:47:32 +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
b9760b4c60 Ref T149, use URL log to log network access in threaded reader classes
* added getFromNetworkAndLog
* adjusted DB reader
* adjusted other readers
2017-09-24 19:54:23 +01:00
Klaus Basan
a2e888546e Ref T148, database reader extensions
* allow to set severity of failed reading
* get entities with cached data
* removed needsSharedInfoFileLoaded in CDatabaseReaderConfig
2017-09-24 19:54:06 +01:00
Klaus Basan
addb008ffa Pass back URLs for changed URL check. This allows to display the changed locations. 2017-09-24 19:52:28 +01:00
Klaus Basan
5a67276fbb Ref T117, utility functions for reader
* isDbModelEqualForPublishing
* getModelForDbKey(int
2017-09-24 19:52:16 +01:00
Klaus Basan
f3847bd33c Ref T121, check if Internet is accessible
* in case the internet provider is down, this is not detected
* extended test to detect if access is possible
* in case of downtime this indicated in status component
2017-09-24 19:51:44 +01:00
Klaus Basan
b6b1b96ec4 Ref T105, use new style with threaded readers
* use doWorkCheck
* relaxed doWorkCheck in unit tests
* removed isShuttingDown, gracefulShutdown
* set timer object name (in case something is wrong, we might see the name in the log)
2017-09-24 19:50:08 +01:00
Klaus Basan
291af98770 Formatting 2017-09-24 19:50:04 +01:00
Klaus Basan
9f4f06a436 Ref T28, consolidated reading
* fixed newer parameter
* unified handling of incremental updates
* skip cache update when there was no incremental data
2017-05-05 23:08:09 +01:00
Klaus Basan
03cbdcddc2 refs #930, unified signal emit/log when data are read 2017-04-18 00:07:57 +01:00
Klaus Basan
976af53516 refs #930, use compression enabled functions in specialized readers 2017-04-18 00:07:54 +01:00
Roland Winklmeier
7edd1bb621 Rename CThreadedReader::isNetworkConnectedAndAccessible() for consistency
refs #869
2017-02-24 15:22:13 +00:00
Klaus Basan
1ced7f3c0b refs #857, check if network is accessible in readers
* new read state "skipped"
* renamed to "isNetworkConnectedAndAccessible"
* checking before reading, which would only fail if network is not accessible
2017-02-24 00:08:55 +00:00
Klaus Basan
b0bef3264c refs #853, JSON exception handling adjustments for model reader 2017-01-10 23:47:15 +00:00
Mathew Sutcliffe
bda0f42c60 refs #815 Mark with \todo the remaining places where CJsonException needs to be caught. 2017-01-10 23:46:37 +00:00
Klaus Basan
5107d55115 refs #833, use isShuttingDown in readers
(a bit stricter than this->isAbandoned)
2016-12-15 04:02:00 +01:00
Klaus Basan
967e3de226 refs #787, adjusted readers
* mode for reading
* supported entities
* get URL for given mode
2016-12-13 19:01:26 +01:00
Klaus Basan
cb2be14083 Fixed "synchronized" typos 2016-12-13 19:00:12 +01:00
Klaus Basan
de7821ff86 refs #781, use admit in database reader
* added amit functions in readers
* cacheHasChanged functions (needed because data of caches are loaded in background)
* pinned small caches
* CDatabaseReader::readInBackgroundThread uses admitCaches now
2016-12-06 09:34:35 +01:00
Klaus Basan
6a8c8c8889 refs #748, airport JSON reader bug in changed URL fixed (URL was always flagged as changed)
In same step some code cleanup
2016-12-06 09:34:19 +01:00
Klaus Basan
4c6bb6e3fd refs #768, return DB keys as set 2016-12-06 09:33:13 +01:00
Michał Garapich
a4b5b28cc1 refs #748 Move CAirportDataReader to the db/ subdirectory
* BlackCore::CAirportDataReader -> BlackCore::Db::CAirportDataReader
* fix typo in CDatabaseReader
2016-10-17 14:34:30 +01:00
Klaus Basan
1167735897 refs #720, adjusted exposed functions to new naming
* some minor formatting
* use the new condolidation functions
2016-08-26 21:04:23 +01:00
Klaus Basan
959fc10c92 Fixed missing distributor read and minor improvements 2016-06-15 00:11:15 +02:00
Mathew Sutcliffe
9bef6854ca Caches: rename "get" to "getThreadLocal" and rename "getCopy" to get. 2016-06-08 18:21:01 +02:00
Klaus Basan
332d8e5fc8 refs #649, added caches to model data reader
* trait
* const fix distributor list
2016-06-08 18:21:00 +02:00
Klaus Basan
c31145b3a0 refs #649, made base URL static const to resolve threading issue
(crash when shutting down)
2016-06-08 18:20:57 +02:00
Klaus Basan
e752a3d73b refs #649, check for isAbandoned() 2016-06-08 18:20:56 +02:00