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
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
Roland Winklmeier
09da34d8f0
Update of sound effect files
...
- error
- frequencymessage
- privatemessage
- voiceroomjoined
- voiceroomleft
ref T119
2017-09-24 19:53:34 +01:00
Klaus Basan
2b3b173b76
Default calculation of distance/bearing for airports. Follow up of the discussion in slack/during T125
...
Summary: Default calculation of distance/bearing for airports.
Reviewers: msutcliffe, rwinklmeier
Reviewed By: msutcliffe, rwinklmeier
Subscribers: jenkins
Maniphest Tasks: T125
Differential Revision: https://dev.swift-project.org/D48
2017-09-24 19:53:31 +01:00
Klaus Basan
73556492fd
Ref T125, use XSwiftBus download component
...
* as dialog in distribution component
* in wizard
2017-09-24 19:53:29 +01:00
Klaus Basan
76c1b0307c
Ref T125, UI component to download and install XSwiftBus
...
* currently working only for alpha directory
* 1st version, maybe currently too much logic (download etc.) in an UI component
2017-09-24 19:53:28 +01:00
Klaus Basan
dec5eff0c6
Ref T125, service to download and save file in directory
2017-09-24 19:53:26 +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
d4b027b6bd
Ref T125, X-Plane config now only XSwiftBus settings, no longer installation
2017-09-24 19:53:21 +01:00
Klaus Basan
329b0512eb
Ref T125, utility functions
2017-09-24 19:53:20 +01:00
Klaus Basan
c6f3a7033d
Ref T125, own component for XSwiftBus settings. This component can be used in the installation and plugin UI.
2017-09-24 19:53:18 +01:00