Mat Sutcliffe
4a0d8e9864
Fixed most Qt 5.14 deprecation warnings
2020-01-07 19:57:25 +00:00
Mat Sutcliffe
e9a4c49d68
Ref T547 Update license masthead in all source code files.
2019-02-22 20:36:43 +00:00
Klaus Basan
72b7c61db7
Ref T472, style and minor fixes ("myself")
2019-02-22 20:36:29 +00:00
Klaus Basan
b584398482
Ref T472, added aircraft category in ICAO model
2019-02-22 20:36:19 +00:00
Klaus Basan
f78d13047e
Ref T472, support for category in ICAO reader
2019-02-22 20:35:56 +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
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
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
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
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
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
da6930a7b4
Ref T189, database reader renamings / status renamings
...
* plural "entities" where multiple values can occur
* LED member renamings
2017-12-21 19:47:25 +01: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
fe01a9d4aa
Formatting, typos
2017-09-24 19:54:28 +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
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
dfb6b05e9d
Ref T109, datastore object and list
...
* unified properties in int/string DB objects
* fixed typo dbKeysAsString
2017-09-24 19:50:59 +01:00
Klaus Basan
874b517e23
Ref T104, use unified log function
...
and removed some redundant log messages
2017-09-24 19:50:25 +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
847fcfbb71
Ref T104, return inconsistent airports
2017-09-24 19:50:03 +01:00
Klaus Basan
297c2f0539
Ref T104, return inconsistent aircraft/airline ICAOs codes
...
- use audit
- and log inconsistent DB entries
2017-09-24 19:50:02 +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
5c32a912f3
Based on unit test failure (clang):
...
* now ignore incomplete entities for airline/aircraft ICAOs from DB
* utility functions to find invalid designators
* adjusted unit test, avoid taking a random element
* and fixed 4 wrong ICAO entries in DB
2017-04-18 00:08:08 +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
e3197ce375
refs #853 , JSON exception handling adjustments for ICAO reader
2017-01-10 23:47:17 +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
90396e012f
refs #820 , get all getAircraftIcaoCodesForDesignator
2016-12-13 19:01:45 +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
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
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
90c3c35609
refs #709 , as result of testing created special database views for ICAO codes
...
* view already filter incomplete data
* as result, info object count values are aligned with data eventually parsed (which will allow to detect changes by comparing counts)
* smaller adjustments to allow airlines with designator
2016-07-28 21:08:20 +02:00
Klaus Basan
c7d89c7b2c
refs #707 , allow to resolve airline by callsign directly in airline ICAO list
2016-07-14 18:49:21 +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
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
Klaus Basan
f58b3bf065
refs #649 , refs #659 use new timestamp function
2016-06-08 18:20:44 +02:00