Commit Graph

70 Commits

Author SHA1 Message Date
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
7d9b721b87 Avoid further loading when shutting down 2017-01-10 23:47:26 +00: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
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
fc3ac8b323 refs #787, MS review items + discussion on slack
https://dev.vatsim-germany.org/issues/787#note-4
2016-12-13 19:01:39 +01:00
Klaus Basan
8f779fff35 refs #787, fixed unit test
* flag update for non cached scenarios was missing
* some minor adjustments of test readers
2016-12-13 19:01:37 +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
9edac68bdb refs #787, support of header loading in reader config 2016-12-13 19:01:25 +01:00
Klaus Basan
b6a59decc7 refs #811, get count in readers/services 2016-12-13 19:01:14 +01:00
Mathew Sutcliffe
a44ffcbe79 refs #800 Removed pointless casts and conversions. 2016-12-13 19:00:37 +01:00
Mathew Sutcliffe
461474e29d refs #800 Fixed "using namespace" in header. 2016-12-13 19:00:25 +01:00
Klaus Basan
cb2be14083 Fixed "synchronized" typos 2016-12-13 19:00:12 +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
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