Commit Graph

4919 Commits

Author SHA1 Message Date
Klaus Basan
1aa842ad5a Ref T150, Ref T156 unit test for connectivity, watchdog etc. 2017-09-24 20:28:49 +01:00
Klaus Basan
155d436788 Ref T150, Ref T156 allow using setup reader in unit test 2017-09-24 20:28:48 +01:00
Klaus Basan
2b638caf80 Renamed to connectServer 2017-09-24 20:28:47 +01:00
Klaus Basan
b01c7d6333 Ref T150, Ref T156 overloading canPing 2017-09-24 20:28:46 +01:00
Klaus Basan
fedcd76a05 Ref T156, allow to interactively resolve setup issues
* interactivelySynchronizeSetup
* utility function parseAndSynchronizeSetup, explicit loading of setup
* removed m_startSetupReader;
2017-09-24 20:28:42 +01:00
Klaus Basan
409a50e8a5 Ref T156, setup loading dialog allowing to resolved issues with bootstrap loading 2017-09-24 20:28:38 +01:00
Klaus Basan
428ba0975c Ref T156, setup reader adjusted
* link with watchdog Ref T150
* allow to disable URL connect checks if setup dialog is used
* refactoring of CSetupReader::parseCmdLineArguments so reparsing is possible
2017-09-24 20:28:37 +01:00
Klaus Basan
5d2531080b Ref T150, use new checks in load/status UI components 2017-09-24 20:28:36 +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
46d2f2c048 Ref T150, database reader using watchdog
* removed canConnect DB checks, using watchdog
* changed signature to: int requestHeadersOfSharedFiles
* rely on shared working URL from watchdog
2017-09-24 20:28:34 +01:00
Klaus Basan
fdfa2233fb Ref T150, Ref T156 cleaned up setup reader
* grouped functions together if they are based on the same URLs
* renamed functions
* Doxygen comments
2017-09-24 20:28:33 +01:00
Klaus Basan
b20c44a9f3 Ref T150, use watchdog in application
* remove own checks
* use watchdog
* connect watchdog to other readers to avoid redundant checks
2017-09-24 20:28:28 +01:00
Klaus Basan
a6855f1891 Ref T150, network watchdog check accessibility in background
* no need to check elsewhere with canConnect -> processEventsFor
* many checks were redundant (when I can connect the DB, no need to check internet)
* watchdog can also be connected to other read signals, if models are read elsewhere, it means DB is up

Summary: less checks, less calls of canConnect in main thread
2017-09-24 19:54:32 +01:00
Klaus Basan
afbf3f05c8 Ref T150, utility functions in URL list
* renamed to withAppendedPath
* findByHost
* addFailed utility functions
2017-09-24 19:54:30 +01:00
Klaus Basan
fe01a9d4aa Formatting, typos 2017-09-24 19:54:28 +01:00
Klaus Basan
6d11ea2435 Unified formatting of member m_XXX 2017-09-24 19:54:27 +01:00
Klaus Basan
dbe66eceb2 Ref T149, get URL logs from web data services 2017-09-24 19:54:26 +01:00
Klaus Basan
17d2243e3f Ref T149, use URL in DB writer 2017-09-24 19:54:24 +01:00
Klaus Basan
b9760b4c60 Ref T149, use URL log to log network access in threaded reader classes
* added getFromNetworkAndLog
* adjusted DB reader
* adjusted other readers
2017-09-24 19:54:23 +01:00
Klaus Basan
1c57ce87a2 Ref T149, URL log list/class to trace network calls
* value class
* list
* metadata registration
2017-09-24 19:54:21 +01:00
Klaus Basan
099afba8a7 Found during T149, use QScopedPointer to destroy QNetworkReply 2017-09-24 19:54:17 +01:00
Klaus Basan
a22cd134f8 Formatting 2017-09-24 19:54:16 +01:00
Klaus Basan
eab22e86b0 Based on slack discussion, pass arguments from launcher to started application
https://swift-project.slack.com/archives/C04J6J76N/p1504449711000040

* utility functions in CApplication and CNetworkVatlib for cmd args
* a.addVatlibOptions() in launcher
* function CSwiftLauncher::startDetached to unify startup and simplify debugging
2017-09-24 19:54:15 +01:00
Klaus Basan
1baf74ebf3 Added comments based on discussion https://swift-project.slack.com/archives/C04J6J76N/p1504536854000049 2017-09-24 19:54:13 +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
6f7e827492 Ref T148, in CDbLoadOverviewComponent do not trigger info object read if DB cannot be connected
(only results in error messages)
2017-09-24 19:54:09 +01:00
Klaus Basan
961f47b700 Ref T148, renamed/added hasConnectedSwiftDb / canConnectSwiftDb 2017-09-24 19:54:07 +01:00
Klaus Basan
a2e888546e Ref T148, database reader extensions
* allow to set severity of failed reading
* get entities with cached data
* removed needsSharedInfoFileLoaded in CDatabaseReaderConfig
2017-09-24 19:54:06 +01:00
Klaus Basan
c0a6574c80 Ref T148, public getName so it can be used in logging 2017-09-24 19:54:04 +01:00
Klaus Basan
11abb9f481 UI, smaller LEDs for cockpit component 2017-09-24 19:54:03 +01:00
Klaus Basan
5d4c022dc0 Ref T140, too many warnings when wrong XPDR code is received.
Demoted to debug message.

Slack: https://swift-project.slack.com/archives/C04J6J76N/p1504365879000106
2017-09-24 19:54:01 +01:00
Klaus Basan
782639e7c9 Allow to use status message debug() with << like info(), ...
Slack discussion: https://swift-project.slack.com/archives/C04J6J76N/p1504372206000004
2017-09-24 19:54:00 +01:00
Klaus Basan
7946fd8d18 Ref T146, improved login component
* logoff countdown can be stopped
* login mode (normal, obs, ..) shown
2017-09-24 19:53:59 +01:00
Klaus Basan
adfd341cbc Ref T146, avoid double clicks for "connect button" using disableButtonBriefly 2017-09-24 19:53:57 +01:00
Klaus Basan
b6ca59eda8 Ref T146, minor adjustments in keypad area
* removed keypadIdentifier()
* private slots -> private
2017-09-24 19:53:56 +01:00
Klaus Basan
7ad666c346 Ref T146, read only mode for login mode (so it can be used as display only UI element)
Also some minor tweaks/formatting
2017-09-24 19:53:54 +01:00
Klaus Basan
946bdb964e Ref T146, added icons 2017-09-24 19:53:53 +01:00
Klaus Basan
6f1ba6945c Ref T146, removed private slots in login component, using normal private functions 2017-09-24 19:53:51 +01:00
Klaus Basan
b49b7f8c71 ASSERT when CContinuousWorker::quitAndWait is called by object thread -> deadlock 2017-09-24 19:53:50 +01:00
Klaus Basan
2a8e2331a3 Return background updater functions when shutting down 2017-09-24 19:53:48 +01:00
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
Klaus Basan
2dfc56dc39 Formatting 2017-09-24 19:53:45 +01:00
Klaus Basan
9ba61cacf6 Ref T138, allow multi line messages 2017-09-24 19:53:44 +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
Mathew Sutcliffe
e98662d530 Allow setting VATSIM key on qmake commandline.
Summary: By qualifying the key with `isEmpty` it prevents overwriting a value specified on the commandline.

Reviewers: rwinklmeier

Reviewed By: rwinklmeier

Subscribers: jenkins

Tags: #swift_pilot_client

Differential Revision: https://dev.swift-project.org/D51
2017-09-24 19:53:40 +01:00
Mathew Sutcliffe
f1211d328e Delete QDBusServiceWatcher when unloading X-Plane driver.
Summary:
When unloading a sim driver, first its threads are killed, then the driver object is destroyed.

This means that when the `QDBusServiceWatcher` child object is destroyed, it deadlocks waiting for a thread that was already killed (T147).

This change causes the `QDBusServiceWatcher` to be deleted before the driver is unloaded.

Reviewers: #swift_pilot_client, kbasan, rwinklmeier

Reviewed By: #swift_pilot_client, kbasan, rwinklmeier

Subscribers: kbasan, jenkins

Tags: #swift_pilot_client

Differential Revision: https://dev.swift-project.org/D50
2017-09-24 19:53:38 +01:00
Roland Winklmeier
e2b00f1f9b Fix typo in header guard 2017-09-24 19:53:37 +01:00
Roland Winklmeier
27f97e8ac8 Implement interpolator mode for FS9
Summary:
This implementation will always return true if we were setting the mode,
since we cannot easily access the return value from
CInterpolatorMulti::setMode in a thread safe manner.

Reviewers: #swift_pilot_client, kbasan, msutcliffe

Reviewed By: #swift_pilot_client, kbasan, msutcliffe

Subscribers: kbasan, jenkins

Differential Revision: https://dev.swift-project.org/D52
2017-09-24 19:53:35 +01:00