Commit Graph

2180 Commits

Author SHA1 Message Date
Mathew Sutcliffe
67b36bbfcf refs #721 Trying the unaltered name first is slower
because in nearly all cases, it just leads to comparing the names twice.
2016-08-26 21:04:48 +01:00
Mathew Sutcliffe
15cf07c1c5 refs #721 For performance, avoid regular expressions where a simple algorithm would suffice. 2016-08-26 21:04:47 +01:00
Mathew Sutcliffe
ffa24411d2 Narrow the explicit iterator category of our iterator adaptors to reflect their implicit category. 2016-08-26 21:04:45 +01:00
Mathew Sutcliffe
4071fcb6d3 Fixed mistake. 2016-08-26 21:04:44 +01:00
Mathew Sutcliffe
a30eb18a9c On Windows, warn if a thread was terminated with its QThread still in running state.
I hope this catches if the data cache serializer is killed in the middle of a save.
2016-08-26 21:04:43 +01:00
Mathew Sutcliffe
f8fc82019d Invert logic of CAtomicFile destructor:
abandon changes if destruction is due to an exception,
instead of applying changes if destruction is NOT due to an exception.
Because otherwise QFile destructor will apply changes regardless,
by calling the close method via virtual dispatch.
2016-08-26 21:04:42 +01:00
Mathew Sutcliffe
3c82bb3a9c Data cache shall emit an error message if it fails to save the revision file. 2016-08-26 21:04:40 +01:00
Klaus Basan
009bfc3ed1 refs #720, finder by Telephony designator (aka callsign) and name 2016-08-26 21:04:35 +01:00
Klaus Basan
dbdea2d846 Fix handling of base index properties in CAirport/ICoordinateWithRelativePosition 2016-08-26 21:04:33 +01:00
Klaus Basan
019b623f43 refs #720, adjusted model loader
* callback function to data consolidation (so I can refer to consolidation in BlackCore)
* use status message in parser
* avoid duplicate keys (WOAI has ambiguous model strings which are to be excluded)
2016-08-26 21:04:21 +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
Klaus Basan
f9922353c4 refs #720, improved distributor and airline/livery detection
* mark data read from DB (req. for string key where existing key value is not reliable indicator for DB data)
* detect distributors by part of model string
* use a simplified name (no spaces, no special characters) to find a match
* allow to obtain model strings (=keys) as set and list
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
Michał Garapich
1032b2f506 refs #650 Implement CAirportDataReader
* Add BlackCore::CAirportDataReader class
* Add cache traits for airport list
* Add corresponding WebReaderFlag
* Add CAirport::convertFromDatabaseJson()
* Add CApplication::headerFromNetwork() to handle HTTP HEAD method
2016-08-26 00:18:41 +02:00
Roland Winklmeier
0c51323db0 Fix incorrect include in fscommonutil.cpp 2016-08-08 11:23:07 +02:00
Mathew Sutcliffe
a0c20baf53 refs #697 Type traits renamed with T prefix. 2016-08-03 02:20:45 +01:00
Mathew Sutcliffe
0ae1e70923 refs #697 Data cache traits renamed with T prefix. 2016-08-03 02:20:27 +01:00
Mathew Sutcliffe
8275b0d9bf refs #697 BlackMisc settings renamed and reorganized. 2016-08-03 02:19:08 +01:00
Mathew Sutcliffe
e7c9d3b62f CDataCacheRevision: always need to lock the mutex when accessing m_updateInProgress. 2016-08-02 17:14:14 +01:00
Mathew Sutcliffe
88920501bf refs #715 Assert no longer appropriate: pruning revision file means calling writeNewRevision when m_pendingWrite is false. 2016-08-02 05:09:39 +01:00
Klaus Basan
862a84b661 refs #697, BlackGui settings renamed 2016-08-01 16:48:48 +02:00
Klaus Basan
3554c0b718 refs #716, value class / setting 2016-08-01 15:51:56 +02:00
Mathew Sutcliffe
91ba7d9f12 CLogMessageHelper::stripFlags: fixed mistake when using QString::section(). 2016-07-31 23:17:48 +01:00
Mathew Sutcliffe
b0dd2a76ff CAtomicFile invariant: any method that closes the file must restore the original filename. 2016-07-31 23:17:47 +01:00
Mathew Sutcliffe
98a2b3253a refs #694 Use human readable names in cache validation messages. 2016-07-31 23:17:46 +01:00
Mathew Sutcliffe
87b2396edb refs #694 Support human readable names for settings and data cache traits. 2016-07-31 23:15:35 +01:00
Mathew Sutcliffe
61f3655b2c refs #695 Allow to set a mock root directory for caches, for unit tests. 2016-07-29 17:09:08 +01:00
Mathew Sutcliffe
9339991644 refs #715 When loading data cache, prune revision file to remove keys that weren't found. 2016-07-29 17:09:07 +01:00
Mathew Sutcliffe
b449487a71 refs #715 Support implicit conversion from CRange to QSet. 2016-07-29 17:09:05 +01:00
Mathew Sutcliffe
08b404906d refs #708 Human-readable name for the "default" category used by QMessageLogger (e.g. qWarning).
The empty category is technically different, indicates a direct call to qt_message_output (e.g. qErrnoWarning).
2016-07-28 23:49:22 +01:00
Mathew Sutcliffe
47e0f7f335 Neater implementation of constexpr std::tuple for gcc 4.9 2016-07-28 23:49:22 +01:00
Klaus Basan
c4d9ab06be refs #712, airline icons in pilot client 2016-07-28 21:08:26 +02:00
Klaus Basan
e2f8f097e0 refs #712, completers and load from disk for flight plan 2016-07-28 21:08:26 +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
85d76d364c refs #709, name to entity 2016-07-28 21:08:13 +02:00
Klaus Basan
2ea826afe2 Small fix for bit count 2016-07-28 21:08:11 +02:00
Klaus Basan
541d673acd Fixed year formatter / formatting 2016-07-28 21:08:10 +02:00
Roland Winklmeier
04013d0747 Optimize METAR decoding by constructing regular expressions only once
Before this commit, the regular expression strings and objects were
constructed for each METAR. This is expensive and unnecessary.
This commit optimizes this by moving the string preparation into
a helper method, which is called once to construct a static
QRegularExpression.

refs #711
2016-07-16 19:52:00 +02:00
Klaus Basan
44faccb568 refs #707, found during testing very odd characters can break the GUI 2016-07-14 18:49:27 +02:00
Klaus Basan
8d4876967e refs #708 fix 2016-07-14 18:49:26 +02:00
Klaus Basan
409534fa5e refs #707, also resolve invalid codes (as those are now resolved by endsWith) 2016-07-14 18:49:24 +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
e497b43e06 refs #706, model string and DB key utility function 2016-07-14 18:49:20 +02:00
Klaus Basan
9810aa04b8 refs #707, allow to skip equal values in applyIf 2016-07-14 18:49:19 +02:00
Klaus Basan
7bd233feaa refs #707, renaming / formatting 2016-07-14 18:49:19 +02:00
Klaus Basan
64fa88da72 refs #707, renamed to FSInn / FSInnData 2016-07-14 18:49:17 +02:00
Klaus Basan
caa6947ff9 refs #707, added line number to HTML output 2016-07-14 18:49:16 +02:00
Klaus Basan
86d85c6b60 refs #707, removed originator from some signatures
* not used in remote aircraft provider
* adjusted all using interfaces
2016-07-14 18:49:15 +02:00
Klaus Basan
b959972e0c refs #707, refactoring geo interfaces
* added compare functions (also to ATC list)
* renamed to relative position, e.g. station.setRelativeDistance
* delegate set/get/compare to correct interface
2016-07-14 18:49:13 +02:00