Commit Graph

165 Commits

Author SHA1 Message Date
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
Klaus Basan
1aa8cfb1e8 Formatting, messages 2017-09-24 20:29:00 +01:00
Klaus Basan
ec8838198f Ref T149, improved HeaderResponse/JsonDatastoreResponse
* request started/received
* moved timestamp logic to Response class, like headerResponse.setValues(nwReply)
2017-09-24 20:28:57 +01:00
Klaus Basan
46d2f2c048 Ref T150, database reader using watchdog
* removed canConnect DB checks, using watchdog
* changed signature to: int requestHeadersOfSharedFiles
* rely on shared working URL from watchdog
2017-09-24 20:28:34 +01:00
Klaus Basan
a6855f1891 Ref T150, network watchdog check accessibility in background
* no need to check elsewhere with canConnect -> processEventsFor
* many checks were redundant (when I can connect the DB, no need to check internet)
* watchdog can also be connected to other read signals, if models are read elsewhere, it means DB is up

Summary: less checks, less calls of canConnect in main thread
2017-09-24 19:54:32 +01:00
Klaus Basan
fe01a9d4aa Formatting, typos 2017-09-24 19:54:28 +01:00
Klaus Basan
17d2243e3f Ref T149, use URL in DB writer 2017-09-24 19:54:24 +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
a22cd134f8 Formatting 2017-09-24 19:54:16 +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
2a8e2331a3 Return background updater functions when shutting down 2017-09-24 19:53:48 +01:00
Klaus Basan
0dfe6f69fe Minor fixes when reporting T141
* user authenticated must be enabled/valid
* Read only: BlackMisc::CDataReadOnly<BlackCore::Data::TAuthenticatedDbUser>
* clear user fields when not authenticated
2017-09-24 19:53:47 +01:00
Klaus Basan
12db652ccf Ref T125, renaming areAllDataRead => areAllInfoObjectsRead 2017-09-24 19:53:17 +01:00
Klaus Basan
0bbad2ff83 Minor tweaks (found during T125)
* formatting/typos
* authentication: private slots => private
2017-09-24 19:53:10 +01:00
Klaus Basan
f694ded5f2 Preparation of T126: Minor tweaks, renaming and formatting of InfoDataReader
* unified member access (this->m_xy => m_xy)
* set object name of readers
* waitForSharedInfoObjectsThenRead (not just waiting, also reading afterwards)
2017-09-24 19:52:56 +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