Commit Graph

108 Commits

Author SHA1 Message Date
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
Klaus Basan
dbe66eceb2 Ref T149, get URL logs from web data services 2017-09-24 19:54:26 +01:00
Klaus Basan
7c723b8b79 Ref T148, adjusted web data services
* get info about cached entities
* demote error messages if objects are cached
* no longer trigger reads during shutdown
2017-09-24 19:54:12 +01:00
Klaus Basan
b107617f73 Ref T148, formatting/renaming 2017-09-24 19:54:10 +01:00
Klaus Basan
961f47b700 Ref T148, renamed/added hasConnectedSwiftDb / canConnectSwiftDb 2017-09-24 19:54:07 +01:00
Klaus Basan
12db652ccf Ref T125, renaming areAllDataRead => areAllInfoObjectsRead 2017-09-24 19:53:17 +01:00
Klaus Basan
d995bcf59c Ref T126, fixed too early timeout
* use timeout timestamp
* used approch with trials was wrong, as number of trials also depends on number of reader
2017-09-24 19:52:58 +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
5a67276fbb Ref T117, utility functions for reader
* isDbModelEqualForPublishing
* getModelForDbKey(int
2017-09-24 19:52:16 +01:00
Klaus Basan
ccdfa8e12f Ref T111, allow to search for location in coordinate form 2017-09-24 19:52:07 +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
b1295cd457 Ref T111, added utility functions used for swift plugin (dummy driver)
* new reader functions
* plugin info
2017-09-24 19:51:04 +01:00
Klaus Basan
808fd48650 Ref T109, make sure CWebDataServices::initXXAndTriggerRead is in correct thread 2017-09-24 19:50:57 +01:00
Klaus Basan
880cedec5d Some reader improvements
* Log when VATSIM status file has been read
* fix: read VATSIM status file after initReaders completes
* some private slots -> normal private functions
* removed copy/paste error illegalIcaoCodes

follow up of Ref T105
2017-09-24 19:50:19 +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
5270dce266 Ref T26, telephony designator and manufacturers from web service 2017-09-24 19:49:05 +01:00
Klaus Basan
65a716a61d Ref T28, renaming to getLatestDbEntityTimestamp 2017-05-05 23:07:49 +01:00
Klaus Basan
297ef8ea16 Ref T42, single quote around value 2017-05-05 23:07:36 +01:00
Klaus Basan
8ad7c1e3c7 Fixed issue with still using header instead of info object data
plus some utility functionality
2017-05-05 22:40:10 +01:00
Klaus Basan
0696eed04f Ref T24, adjusted web data services
* no longer using header timestamps, removed functions
* renamed functions to distinguish shared/DB info data
* added 2nd reader m_sharedInfoDataReader
2017-04-20 20:41:29 +02:00
Klaus Basan
485c95101b Ref T24, preparations to read dbinfo.json for shared files
This will replace http header file timestamps
* read function in info reader has retrieval mode flag, unused parameters removed
* waitForDbInfoObjects/getDbInfoDataReader (added "Db"), there will be a 2nd reader
* CWebReaderFlags::DbInfoDataReader (added "Db")
* removed ps_read, only read (public)
2017-04-20 20:38:06 +02:00
Klaus Basan
e3197ce375 refs #853, JSON exception handling adjustments for ICAO reader 2017-01-10 23:47:17 +00:00
Klaus Basan
b0bef3264c refs #853, JSON exception handling adjustments for model reader 2017-01-10 23:47:15 +00:00
Klaus Basan
e956986bf4 refs #853, JSON exception handling adjustments for airport reader 2017-01-10 23:47:13 +00:00
Klaus Basan
90396e012f refs #820, get all getAircraftIcaoCodesForDesignator 2016-12-13 19:01:45 +01:00
Klaus Basan
4ed2b82630 refs #787, support for headers / shared files in web data services
* allow to load shared files
* utility functions for timestamps
* some functions renamed
2016-12-13 19:01:28 +01:00
Klaus Basan
1f57f7ca61 refs #812, use individual signals for web services
* trigger other operations directly when data have been read (do not wait for "all data read")
* avoid retriggering for no reason
* new entity flag for all data req. for model matching
2016-12-13 19:01:16 +01:00
Klaus Basan
b6a59decc7 refs #811, get count in readers/services 2016-12-13 19:01:14 +01:00
Klaus Basan
cb2be14083 Fixed "synchronized" typos 2016-12-13 19:00:12 +01:00
Klaus Basan
04a5a74dc3 ref #803, do not use synchronize from another thread
* changed info component to use admit
* removed web service synchronize
2016-12-13 19:00:10 +01:00
Klaus Basan
ff394f4785 refs #787, support for Header / shared files in database reader / web services
* split JsonDatastoreResponse in subclass HeaderResponse
* support for request newtwork request duration ("started") in application
* removed ps_setupChanged because it was unused
2016-12-06 09:35:02 +01:00
Klaus Basan
4f447cd408 refs #791, further improve reverse lookup
* utility function if web data are already available
* moved setOwnAircraftModel as reverseLookupAndUpdateOwnAircraftModel to CSimulatorCommon
* reverseLookupAndUpdateOwnAircraftModel also handles async lookup when data are not yet available
* removed context ps_allSwiftWebDataRead reverse lookup, done in CSimulatorCommon now
2016-12-06 09:34:43 +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
c57a9e2e5b Fixed reload all DB data issue reported by MS on slack
* use triggerReloadFromDb
* improved documentation

MS report:
`AllDbEntities` should be `AllDbEntitiesNoInfoObjects` in `CDataInfoAreaComponent::requestUpdateOfAllDbData`?
Otherwise it triggers assert `!whatToRead.testFlag(CEntityFlags::InfoObjectEntity)` in `CWebDataServices::triggerRead`.
2016-12-06 09:34:32 +01:00
Klaus Basan
1678ca8919 refs #780, improved model string completion
* added signatures for completer string (when send via context size matters)
* support of all instaled models in completer
* added BLACKMISC_EXPORT in model cache classes
2016-12-06 09:34:31 +01:00
Klaus Basan
9d51ee5bc8 refs #748, further airport from DB follow up fixes
* Ignore mode, not all applications need to load everything (mapping tool no airports)
* removed signal in airport reader which is already in base class
* added "virtual" keyword
* fixed another syncronize typo
* added allDbEntiiesUsed() to also reflect the config (ignore flag)
* ensure allSwiftDbData are signaled correctly even with ignore flag
2016-12-06 09:33:54 +01:00
Klaus Basan
35283d8887 refs #748, fixed airport entity and reader resolution 2016-12-06 09:33:45 +01:00
Klaus Basan
b8d323226f refs #748, fixed airport JSON bugs and removed workaround
* removed workaround in web data services
* removed convertFromDatabaseJson functions, not needed
* changed to use the correct static fromDatabaseJson functions
* fixed prefixes
* load correct Country object by loading it as nested object
* key and timestamp was missing in CAirport tuple metadata
2016-12-06 09:33:29 +01:00
Klaus Basan
4c6bb6e3fd refs #768, return DB keys as set 2016-12-06 09:33:13 +01:00