Commit Graph

2104 Commits

Author SHA1 Message Date
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
Mathew Sutcliffe
9da798e470 Ref T155 Log category for CValuePage. 2017-09-24 19:53:43 +01:00
Mathew Sutcliffe
de11f7fe35 Correctly remove session cache value of expired session.
Summary:
`CDataCacheRevision` stores current working timestamps in `m_timestamps` and stores complete timestamps (including unadmitted deferred values) in `m_originalTimestamps`. A value is "in" the cache if and only if its timestamp is in `m_timestamps`. In `writeNewRevision` the `.rev` file is written based on `m_originalTimestamps` so that unadmitted deferred values don't get lost.

Session cache works by removing timestamps that were not created in the current session. But it needs to remove from both `m_timestamps` and `m_originalTimestamps` so that old session cache values can't get recreated by `writeNewRevision`.

Test Plan: Currently being evaluated by @kbasan to check that it does not introduce unintended consequences.

Reviewers: #swift_pilot_client, kbasan

Reviewed By: #swift_pilot_client, kbasan

Subscribers: jenkins, kbasan

Tags: #swift_pilot_client

Differential Revision: https://dev.swift-project.org/D53
2017-09-24 19:53:41 +01:00
Klaus Basan
50442e6f13 Ref T125, value class for remote files (i.e. files downloaded). Corresponds with backend service T132 2017-09-24 19:53:24 +01:00
Klaus Basan
8d72fe5285 Ref T125, allow to use std::function with CSlot 2017-09-24 19:53:23 +01:00
Klaus Basan
329b0512eb Ref T125, utility functions 2017-09-24 19:53:20 +01:00
Klaus Basan
53189eafd5 Ref T125, human readable file size 2017-09-24 19:53:15 +01:00
Klaus Basan
8c032fb4d7 Ref T125, allow to get distribution list by JSON string. Also setup value object directly using JSON string now. 2017-09-24 19:53:13 +01:00
Klaus Basan
65bd2d20ad Ref T125, X-Plan utility functions and moved XSwiftBus settings in own file 2017-09-24 19:53:03 +01:00
Klaus Basan
104d869c19 Ref T125, fixed to static const 2017-09-24 19:53:01 +01:00
Mathew Sutcliffe
1cd471873f T37 T133 removeOutdatedParts shall always preserve one outdated parts
to make sure there is enough information to reliably interpolate.
2017-09-24 19:52:51 +01:00
Mathew Sutcliffe
f9ae3efaa3 T37 Avoid division by zero in case time offset is zero. 2017-09-24 19:52:49 +01:00
Mathew Sutcliffe
aaeb2e8ceb T37 Fixed wrong parameter names. 2017-09-24 19:52:44 +01:00
Roland Winklmeier
c91aa0d58e Change template parameter to disambiguate call to QLatin1String constructor
Summary:
Qt 5.10 added a new constructor overload which made the call to QLatin1String
constructor with size_t as second parameter ambigious.

Reviewers: #swift_pilot_client, msutcliffe

Reviewed By: #swift_pilot_client, msutcliffe

Subscribers: jenkins

Differential Revision: https://dev.swift-project.org/D47
2017-09-24 19:52:41 +01:00
Mathew Sutcliffe
05c0d046aa Removed outdated todos. 2017-09-24 19:52:37 +01:00
Klaus Basan
3f924209f1 As a follow up of review T111, changed "void static" to "static void" for consistency. 2017-09-24 19:52:31 +01:00
Klaus Basan
fe3368e1f4 Ref T117, formatting 2017-09-24 19:52:15 +01:00
Klaus Basan
9903d518b0 Ref T117, utility functions
* detect equal models (equal in sense of "equal for publishing", not ==)
* severity functions for message list
2017-09-24 19:52:14 +01:00
Klaus Basan
da47be641a Typo 2017-09-24 19:52:11 +01:00
Klaus Basan
bb4f0e7a13 Ref T111, search for location/name 2017-09-24 19:52:06 +01:00
Klaus Basan
58b5dd1278 Using std::copysign 2017-09-24 19:52:05 +01:00
Klaus Basan
0117558ea7 Formatting 2017-09-24 19:52:04 +01:00
Klaus Basan
2805979577 Fixed setting altitude of airport 2017-09-24 19:52:02 +01:00
Klaus Basan
7cc723c7c3 Ref T111, in provider allow to set cockpit by simulated aircraft 2017-09-24 19:51:58 +01:00
Klaus Basan
ea6cf20587 Ref T111, allow to set cockpit by passing another simulated aircraft 2017-09-24 19:51:56 +01:00
Klaus Basan
266a418c90 Ref T111, allow to limit entries in log component 2017-09-24 19:51:54 +01:00
Klaus Basan
1387573e5b Ref T112, moved simulator settings in subdir/settings namespace 2017-09-24 19:51:46 +01:00
Klaus Basan
b70fb70d60 Ref T111, renamed dummy driver to CSimulatorEmulated 2017-09-24 19:51:43 +01:00
Klaus Basan
bb13a32c7c Ref T111, utility function for local decimal point 2017-09-24 19:51:34 +01:00
Klaus Basan
9445bd56a3 Ref T111, normalize utility functions 2017-09-24 19:51:33 +01:00
Klaus Basan
4e45496431 Ref T111, different implementation as recommended by MS 2017-09-24 19:51:31 +01:00
Klaus Basan
c36c3a4a05 Ref T111, set a single simulator as proposed by RW 2017-09-24 19:51:28 +01:00
Klaus Basan
4d9ee1626d Ref T120, refactoring of modulator related classes
* avoid virtual functions in modulator related classes
* removed unused isDefaultValue()
* using null values (which was not present when class was written)
* removed destructor
2017-09-24 19:51:26 +01:00
Klaus Basan
f936f07c8d Ref T120, PQ units: made final and removed virtual dtor 2017-09-24 19:51:25 +01:00
Klaus Basan
4a9ab8c3d7 Ref T120, removed virtual dtor for
* CDictionary
* CAircraftCfgEntriesList
2017-09-24 19:51:23 +01:00
Klaus Basan
2b0241a8a7 Ref T111, utility function setEnabled 2017-09-24 19:51:22 +01:00
Klaus Basan
384c186fce Ref T111, removed as requested in review by MS 2017-09-24 19:51:19 +01:00
Klaus Basan
37ef181e13 Ref T113, COwnAircraftAware functions not virtual 2017-09-24 19:51:18 +01:00
Klaus Basan
d597dcec15 Ref T111, improved dot commands (e.g. ".drv") handling
* register help implementation to .cpp file
* tooltip HTML formatting
2017-09-24 19:51:17 +01:00
Klaus Basan
e55480737e Ref T111, lat/lng/angle changes
* get struct CAngle::DegMinSecFractionalSec to obtain parts
* round to epsilon utility functions and fix (qint64)
2017-09-24 19:51:09 +01:00
Klaus Basan
7d88a64914 Ref T111, settings value object for swift pseudo driver 2017-09-24 19:51:07 +01:00
Klaus Basan
b423a62626 Ref T111, access to own aircraft`s situation 2017-09-24 19:51:06 +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
b53a02821b Ref T109, improved lookup and matching log message 2017-09-24 19:51:00 +01:00
Klaus Basan
dfb6b05e9d Ref T109, datastore object and list
* unified properties in int/string DB objects
* fixed typo dbKeysAsString
2017-09-24 19:50:59 +01:00
Klaus Basan
03a551d016 Ref T109, new utility functions for reverse lookup 2017-09-24 19:50:58 +01:00
Klaus Basan
e2853c3db2 Ref T109, worker tweaks
* set name already in ctor
* Q_ASSERT_X for start
2017-09-24 19:50:56 +01:00
Klaus Basan
551d9326fe Ref T109, make sure liveries and ICAO are compared correctly
* isDbEqual function
* used in getXXDifference functions
2017-09-24 19:50:55 +01:00
Klaus Basan
3b6edcd575 Fix for fuzzy search function
Ref T97
2017-09-24 19:50:53 +01:00
Klaus Basan
94c9886c35 Based on discussion around T107 and slack
* Use CJsonScope scope("MetaData") for stacktrace
* added Q_UNUSED(scope) to avoid QtC warnings
2017-09-24 19:50:37 +01:00