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
a92b67db6b
refs #791 , reverse lookup for own model in the utils class
2016-12-06 09:34:39 +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
492649c061
fixes "unable to login", discovered during #780 ,
...
* fixed bootstrap file
* improved timeout of connect, now in single static function
* some minor tweaks
2016-12-06 09:33:56 +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
14469f2d4e
Sample reg. JSON performance
...
* DB JSON vs. swift JSON
* Database reader: own function for stringToDatastoreResponse so it can be reused
2016-12-06 09:33:43 +01:00
Klaus Basan
fb8f6e9b7f
refs #748 , airport reader setup
...
* removed functions for old file URL
* added URL functions for DB data
2016-12-06 09:33:39 +01:00
Klaus Basan
7e91ef8a38
refs #768 , renamed flag name to better represent its meaning
2016-12-06 09:33:32 +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
0c5ea48463
refs #768 , wizard allowing to map models from pilot client
...
* step by step guiding thru mapping steps
* single model write function in writer
* adjusted stylesheet
2016-12-06 09:33:25 +01:00
Klaus Basan
592e330278
refs #768 , authentication component improved
...
* access to user object
* show database name in UI
* init UI with user object at startup
2016-12-06 09:33:24 +01:00
Klaus Basan
4c6bb6e3fd
refs #768 , return DB keys as set
2016-12-06 09:33:13 +01:00
Michał Garapich
cf3e9f1f67
refs #748 Support database format in CAirportDataReader
...
* CAirport is now database object
* CAirportList is now datastore object list
* CAirportDataReader adjustments
2016-10-17 14:34:31 +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
bf8198e2c2
refs #768 , misc adjustments
...
* changed signature of ownAircraftModelChanged to model
* added function for a reverse lookup of a model (string->model) and use it when model changed
* renamed function to updateByLocalFileNames
2016-10-17 14:34:15 +01:00
Klaus Basan
35f010e516
refs #743 , utility function for cross imulator updating
2016-10-17 14:34:07 +01:00
Klaus Basan
03b5f9ce2c
refs #764 , improved JSON response with messages for JSON authentication service
2016-09-19 16:18:56 +02:00
Klaus Basan
c848d7ca61
refs #755 , allow to refresh GUI parts during consolidation
2016-09-19 16:18:47 +02:00
Klaus Basan
cbc095d230
refs #755 , restore distributor order when consolidating with DB data
...
(formerly order was overridden)
2016-09-19 16:18:43 +02:00
Klaus Basan
23ccb35ed8
refs #751 , improved model writing to DB
...
* a pending request can be aborted when taking too long
* success / directWrite flags in signals
2016-09-19 16:18:41 +02:00
Klaus Basan
03c642d88a
refs #751 , detect invalid JSON message
...
(which normally means a PHP error message in HTML)
* utility function to remove HTML parts
* adjustments
2016-09-19 16:18:40 +02:00
Klaus Basan
eeea9db9c9
refs #748 , support for airports in CDbInfo
2016-08-28 23:25:41 +02:00
Klaus Basan
364914cc31
refs #720 , file name handling in models
...
* normalize file name before writing to DB
* use local file paths for local models
* display "C" for color liveries
2016-08-26 21:05:00 +01:00
Klaus Basan
c5dc61d64f
refs #720 , renaming in writer
2016-08-26 21:04:26 +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
d75b105ee3
refs #720 , moved data consolidation with DB data into own class in BlackCore
...
(in blackcore I can access the readers)
2016-08-26 20:54:52 +01:00
Michał Garapich
39dae7ed45
Fix possible memleak in CDatabaseWriter
...
* CApplication network methods cleanup
2016-08-26 00:18:41 +02:00
Klaus Basan
3aee6174ac
refs #719 , avoid infinite loop when info object read succeeds, but has incorrect authorizations
...
* marker for info reader that it failed
* distinguish between "server cannot be connected" and other errors
2016-08-04 17:11:37 +02:00
Mathew Sutcliffe
0ae1e70923
refs #697 Data cache traits renamed with T prefix.
2016-08-03 02:20:27 +01:00
Klaus Basan
0357dbde8f
refs #712 , improved readers
...
* only trigger read when network interface is available
* do not trigger all reads at same time but slightly shifted
* renamed to hasReceivedOkReply()
2016-07-28 21:08:25 +02:00
Klaus Basan
31b03fe2e1
refs #712 , signals when all DB data are read / the web services are started
...
(useful for GUI as it can be used to init only when data are available)
2016-07-28 21:08:24 +02: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
ff4097504c
refs #709 , config for launcher
2016-07-28 21:08:18 +02:00
Klaus Basan
4b1179cfd8
refs #709 , allow to read directly from DB (bypassing caches)
...
* allow to reload
* copying array size of response for debugging purposes
2016-07-28 21:08:17 +02:00
Klaus Basan
6f840f4fd6
refs #709 , access to timestamp/count per entity
...
* utility functions
* made protected functions public
2016-07-28 21:08:14 +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
Klaus Basan
8d5020d78e
Some Web readers adjustemnts
...
* do not init shared URLs before needed
* do not load info objects when DB is unavailable
* adjust reader flags when DB is down
* airport URL available in setup
2016-07-03 13:22:26 +02:00
Klaus Basan
488d437a2a
#refs 686, used settings in readers
...
* moved threaded reader to BlackCore (settings are normally BlackCore aware)
* created ns/subfolder VATSIM
* prepared settings for the VATSIM readers
2016-06-29 01:04:41 +02: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
f02bf0ac0a
refs #649 , skip reading of info objects if only caches are used and emit signals when syncronized from cache
...
(applied after 1st performance fix for cache was ready)
* utility functions to detect if only caches are used
* renamed some functions
* renamed some db flags and added new ones
2016-06-08 18:20:58 +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
Klaus Basan
875b311ede
refs #649 , with #659 deferred caches available
...
* adjustments to use deferred caches
* removed simulator from CAircraftModelSetLoader`s signature as it was not used
* only change current simulator when explicitly set (avoid unintended setting)
* added function to obtain number of elements from model caches
2016-06-08 18:20:39 +02:00
Klaus Basan
467f37db7f
refs #649 , added check for changed base URL to database reader
...
(continued #649 after fixes of #664 )
2016-06-08 18:20:35 +02:00
Klaus Basan
cd8d06c0b5
Fix doxygen issue noticed on gcc Jenkins build
2016-06-08 18:20:31 +02:00