Lars Toenning
b4cbed107b
refactor: Remove CNetworkWatchdog
...
The watchdog was used in a few places as a shortcut to skip reading
data. Further, it was used in some places in the UI to display
connectivity. But it also introduced quite some complexity. In some
cases it can be fragile: network accessibilty cannot be looked up on all
platforms/hardware constellations. The connectivity could change
between the last watchdog call and the real call. Hence all readers must
still handle the case where the connection fails.
To simplify swift and further reduce the dependency onto the project
infrastructure (pings etc.), this removes the watchdog.
This also removes the QNetworkConfigurationManager, which is deprecated
and not available with Qt6.
2024-04-15 22:02:11 +02:00
Lars Toenning
bcc4bdd31e
Add SPDX identifiers for REUSE compliance
...
Co-authored-by: Mat Sutcliffe <oktal3700@gmail.com >
2023-10-03 09:29:49 +02:00
Lars Toenning
970b7c3650
clang-format src
2023-04-18 16:07:19 +02:00
Mat Sutcliffe
371c1f4f7c
Issue #77 Break cyclic dependency between CLogCategory and numerous classes
2020-12-19 18:50:34 +00:00
Mat Sutcliffe
63e8de8f00
Issue #77 getLogCategories returns a simple QStringList instead of our own class
2020-12-19 18:50:34 +00:00
Mat Sutcliffe
e9a4c49d68
Ref T547 Update license masthead in all source code files.
2019-02-22 20:36:43 +00:00
Klaus Basan
8c3faa4ca9
Ref T489, support download progress in our readers
...
* signal for download progress per entity (DB reader)
* ProgressSlot
* changed signatures for ProgressSlot
2019-02-22 20:35:00 +00:00
Mat Sutcliffe
e40af8132c
Fixed clazy warnings: missing Q_OBJECT.
2019-02-22 20:23:33 +00:00
Klaus Basan
011f31ad2b
Formatting
2018-04-13 23:36:37 +02:00
Klaus Basan
0cf308450e
Ref T149, utility functions for pending URLs
...
* Do not call read twice in info reader
* Threadsafe utility functions
2017-09-24 20:29:02 +01:00
Klaus Basan
1aa8cfb1e8
Formatting, messages
2017-09-24 20:29:00 +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
a22cd134f8
Formatting
2017-09-24 19:54:16 +01:00
Klaus Basan
f3847bd33c
Ref T121, check if Internet is accessible
...
* in case the internet provider is down, this is not detected
* extended test to detect if access is possible
* in case of downtime this indicated in status component
2017-09-24 19:51:44 +01:00
Klaus Basan
c55ad7e142
ref T104, unify logging of inconsistent data
2017-09-24 19:50:24 +01:00
Klaus Basan
76b3b6c0b6
Utility function to directly log warning when network not accessible
2017-09-24 19:50:18 +01:00
Klaus Basan
0bfd9a55a2
Ref T105, use timer in base class CContinuousWorker
...
* remove unused cleanup
* object name set in base class
2017-09-24 19:50:15 +01:00
Klaus Basan
b6b1b96ec4
Ref T105, use new style with threaded readers
...
* use doWorkCheck
* relaxed doWorkCheck in unit tests
* removed isShuttingDown, gracefulShutdown
* set timer object name (in case something is wrong, we might see the name in the log)
2017-09-24 19:50:08 +01:00
Klaus Basan
595c71b387
Used timer no longer pointer
2017-05-05 23:07:45 +01:00
Roland Winklmeier
7edd1bb621
Rename CThreadedReader::isNetworkConnectedAndAccessible() for consistency
...
refs #869
2017-02-24 15:22:13 +00:00
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
5107d55115
refs #833 , use isShuttingDown in readers
...
(a bit stricter than this->isAbandoned)
2016-12-15 04:02:00 +01:00
Roland Winklmeier
4733c72553
Simplify CThreadedReader to avoid race conditions
...
refs #731
2016-08-26 21:04:39 +01: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
7a34cc6d9a
refs #697 BlackCore settings renamed and reorganized.
2016-08-03 02:19:11 +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
541d673acd
Fixed year formatter / formatting
2016-07-28 21:08:10 +02:00
Klaus Basan
0939b1f08f
refs #687 , further performance improvements
...
* avoid redundant reads by excluding entities which will be periodically updated
* restart timers when data are received, avoid overlapping requests
2016-06-29 15:38:07 +02:00
Klaus Basan
0fca9c1f18
refs #687 , use hash to avoid unnecessary operations
...
* for bookings
* VATSIM file (plus check if cache really changed before writing)
* METARs
2016-06-29 15:38:04 +02:00
Klaus Basan
dc02ff2d0c
Addded log categories / human readable pattern
2016-06-29 01:04:44 +02:00
Klaus Basan
488d437a2a
#refs 686, used settings in readers
...
* moved threaded reader to BlackCore (settings are normally BlackCore aware)
* created ns/subfolder VATSIM
* prepared settings for the VATSIM readers
2016-06-29 01:04:41 +02:00