Commit Graph

181 Commits

Author SHA1 Message Date
Klaus Basan
e1c7edb24d No BLACK_VERIFY if base url function 2018-07-27 04:19:27 +02:00
Klaus Basan
0c4a2209f2 Ref T292, Ref T285 fixed CBackgroundDataUpdater::syncDbEntity which was called always with model entity 2018-07-27 01:18:37 +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
1fd7ad6891 Ref T292, Ref T285 background updater improvements
* less cycles
* message history
* more detailed status messages
2018-07-26 21:43:51 +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
ead1a93597 Style 2018-07-09 22:30:54 +02:00
Klaus Basan
f252729fdd Network watchdog improvements
- QPointer checks
- renamings
- count failed pings
2018-07-09 22:30:46 +02:00
Klaus Basan
40582fcf59 Some smaller fixes in prephase of T285 2018-06-27 12:49:15 +02:00
Klaus Basan
87b96f8910 Cleanup: toFormattedQString was not really used and just redirecting toQString
* marked deprecated
* and replaced by toQString
2018-06-13 13:59:35 +02:00
Roland Winklmeier
4aaccb44c3 Cleanup the enabled modules in all sub projects
Most modules were just enabled to add include path for dependent headers
2018-06-02 02:08:46 +02:00
Klaus Basan
aea3d013b6 Fix string output 2018-05-18 00:25:00 +02:00
Klaus Basan
66bf45eb9c Unit tests, skip if DB is not reachable 2018-05-08 16:06:37 +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
57b3760b61 Make "CanConnect" timeout configurable in watchdog
* see also https://swift-project.slack.com/archives/G7GD2UP9C/p1522624024000024
* added signatures
* changed timeout
2018-05-04 23:03:22 +02:00
Klaus Basan
f8d16555aa No assert but empty URL and verify if sApp has been deleted 2018-05-04 23:03:20 +02:00
Klaus Basan
b6b37c9c0f DB watchdog also emits URL in signal (allows to display the failed URL) 2018-05-04 23:03:18 +02:00
Klaus Basan
0b4637054a Formatting 2018-05-04 23:03:16 +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
e53260a817 Ref T258, added compress utils for better encapsulation 2018-02-22 13:58:46 +01: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
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
c42b325d54 Watchdog allows to obtain info string about the statistics 2018-01-17 05:00:09 +01:00
Klaus Basan
2a2a5e1349 Ref T224, info object reader fixes
* caches need to be obtained from the respective readers
* BLACK_VERIFY to detect problems
* fixed masking which was wrong (did mask by info object)
2018-01-15 22:50:30 +01:00
Klaus Basan
8bb47a555c Formatting comments and "private slots" -> "private" 2018-01-15 22:50:26 +01:00
Klaus Basan
a2f985e308 Ref T215, containsAircraftIcaoDesignator web service function 2018-01-13 05:04:13 +01:00
Klaus Basan
cca275b278 Doxygen 2017-12-21 19:49:11 +01:00
Klaus Basan
6374e5e10a Some formatting like "this->m_" => "m_"
During Ref T203
2017-12-21 19:47:46 +01:00
Klaus Basan
12b2bc4181 Ref T201, fixes for info object overview
* more detailed log info
* sort info objects so the correct value is obtained ("raw" names)
* check both "duplicate" strings
2017-12-21 19:47:41 +01:00
Klaus Basan
909342e172 Ref T201, formatting 2017-12-21 19:47:39 +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
3215a2e756 Ref T177, added direct write flag because only direct writes require a consolidation 2017-10-31 15:39:36 +01:00
Klaus Basan
8473cd7eb4 Ref T118, fixed / improved watchdog
* deleteLater for reply
* allow to check via HTTP (avoid wrong positive checks)
2017-10-31 15:39:26 +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
28c4f14026 Ref T118, background updater subscribes simplified published models signal
* direct consolidation after models have been published
* renamed some syncModelOrModelSetCacheWithDbData variables
2017-10-31 15:39:21 +01:00
Klaus Basan
c54c325cce Ref T118, database writer new simplified slot 2017-10-31 15:39:20 +01:00
Klaus Basan
f14f06317b Ref T118, formatting database writer and utility 2017-10-31 15:39:16 +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
15e46ba94a Do not trigger loads if they are doomed to fail 2017-09-27 03:01:03 +02:00
Klaus Basan
40bc75a98c Ref T164, show (by LED) when consolidating data
* added LED in info bar
* signal in background updater and
* connecting them
2017-09-26 20:15:28 +02:00
Klaus Basan
e932f08547 Ref T161, network watchdog calls ping service 2017-09-25 05:23:58 +02:00
Klaus Basan
ec77f9c64b Ref T160, further formatting 2017-09-25 05:23:57 +02:00
Klaus Basan
dabe50bcfe Ref T160, improved / more detailed info for user-agent in requests
* renamed to getSwiftNetworkRequest (make clear request is tweaked)
* add details to user request
2017-09-25 05:23:56 +02:00
Klaus Basan
bdbf2e75b4 Improved DB reader log messages 2017-09-24 20:29:26 +01:00
Klaus Basan
8c68f2302c Ref T149, improved error message for JsonDatastoreResponse able to catch PHP error messages 2017-09-24 20:29:03 +01:00
Klaus Basan
0cf308450e Ref T149, utility functions for pending URLs
* Do not call read twice in info reader
* Threadsafe utility functions
2017-09-24 20:29:02 +01:00