Commit Graph

268 Commits

Author SHA1 Message Date
Lars Toenning
89544d1ecb refactor: Simplify getting shared data directory URL 2024-04-29 21:46:23 +02:00
Lars Toenning
86878519ca refactor: Remove unused functions 2024-04-29 21:47:36 +02:00
Lars Toenning
5af1ffbfc1 refactor: Remove deprecated functions 2024-04-24 23:20:49 +02:00
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
d31084db3a refactor: Directly use shared URL from global setup
Previous we relyed on the watchdog providing a working shared URL (or
empty URL if no URL was reachable). This creates some overhead and
might not work in all cases because of the time between the call to
getWorkingSharedUrl() and the actual network request. Further, not all
calls that are fetching data from our servers were using the shared URL
from the watchdog anyway.
Lastly, this careful checking if the URL is available is only done for
the shared URL and not for all the other URLs that are queried by swift.
2024-04-15 22:01:45 +02:00
Lars Toenning
972de0777c refactor: Remove non-watchdog related method from WatchDog 2024-04-15 22:01:45 +02:00
Lars Toenning
8593d3bdb3 fix: Emitting signal with wrong entity flag 2024-03-21 22:42:01 +01:00
Lars Toenning
c0b0c74c3c fix: Always perform SSL peer verification
As the datastore now has real (no self-signed) TLS certificates, the host
verification should not be disabled by default. When testing locally,
one could use non-TLS connections.
2024-03-21 22:42:01 +01: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
Lars Toenning
6dc2492d29 Bootstrap: Remove wasLoadedFromWeb flag 2023-03-03 12:23:43 +01:00
Mat Sutcliffe
a185c7aae7 Explicit template instantiations for mixins for containers 2021-10-11 14:20:07 +01:00
Mat Sutcliffe
2b72600937 Explicit template instantiations for mixins for value classes
To reduce compile time.
2021-10-11 14:20:07 +01:00
Mat Sutcliffe
2ac222f700 Issue #11 CEventLoop uses QPointer trick to guard against use-after-free
See https://blogs.kde.org/2009/03/26/how-crash-almost-every-qtkde-application-and-how-fix-it-0
2021-10-11 14:20:06 +01:00
Mat Sutcliffe
002cd1d5b9 Issue #11 Improve CEventLoop API 2021-10-11 14:20:06 +01:00
Mat Sutcliffe
a592bb2bbe Include style 2021-09-18 15:07:49 +01:00
Mat Sutcliffe
57d32da826 Use nested namespaces (C++17 feature) 2021-09-18 15:07:48 +01:00
Mat Sutcliffe
eb6b0ff289 Fix clang-tidy and clazy warnings 2021-08-29 17:02:27 +01:00
Mat Sutcliffe
da66aee67d Make datastore ping interval configurable
And don't bother sending pings more frequently if
the server is struggling to reply to every one.
2021-01-07 18:49:38 +00:00
Mat Sutcliffe
761fd56cc9 Issue #77 Break cyclic dependency between CDatastoreUtility CAircraftModelList by factoring out dependent functionality 2020-12-19 18:50:39 +00: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
89659fdeaa Issue #77 Break cyclic dependency statusmessage <-> jsonexception 2020-08-29 14:16:19 +01:00
Mat Sutcliffe
8e065a8fef Issue #77 Factor out parts of CDirectoryUtils into CSwiftDirectories
CDirectoryUtils is utilities for manipulating directories.
CSwiftDirectories is getters that return directories used by swift.
2020-08-29 14:16:12 +01:00
Mat Sutcliffe
802576eda9 Issue #77 Rename 2020-08-29 14:16:11 +01:00
Mat Sutcliffe
f114171083 Issue #17 Fixed bug in database reader 2020-08-12 20:10:34 +01:00
Mat Sutcliffe
e8a0a0b6ba Issue #15 Register CSequence as a sequential container metatype 2020-07-31 00:57:46 +01:00
Klaus Basan
5b3c011a15 Added "url" to signature "dataRead(BlackMisc::Network::CEntityFlags::Entity entity, BlackMisc::Network::CEntityFlags::ReadState state, int number, const QUrl &url)"
Allows to write log. messages with URL
2020-06-12 18:42:38 +01:00
Klaus Basan
0482b9883d [DB readers] misc fixes found during "datastore down" investigation
* added CEntityFlags::AircraftCategoryEntity in config lists
* flag to name
* missed initial reading of categories
* style
2020-06-12 18:42:30 +01:00
Mat Sutcliffe
4a0d8e9864 Fixed most Qt 5.14 deprecation warnings 2020-01-07 19:57:25 +00:00
Klaus Basan
be99911372 Style, minor adjustments 2019-10-23 00:38:26 +02:00
Klaus Basan
f236b54084 Style 2019-10-18 10:36:24 +02:00
Klaus Basan
ac22e1d17d Ref T554, check function for auto publishing 2019-09-16 22:40:35 +01:00
Klaus Basan
e376c18b28 Ref T701, check for model string in reader 2019-09-16 22:40:18 +01:00
Klaus Basan
3be753a6a7 Allow to update model directories 2019-05-13 11:20:53 +02:00
Klaus Basan
df686d7efc Ref T607, detect mappings from quick mapping wizard 2019-05-13 11:20:36 +02:00
Mat Sutcliffe
a366ad8943 Added with() and withValidation() methods in CLogCategoryList. 2019-04-12 13:30:54 +01:00
Mat Sutcliffe
c05a32dbd4 Ref T545 Using constructor inheritance in derived container classes. 2019-04-12 13:30:51 +01:00
Mat Sutcliffe
8c0d82de99 Added CDatabaseWriter::getLogCategories. 2019-04-12 13:30:49 +01:00
Klaus Basan
f9884cd585 Ref T586, allow to do SSO even if the user not yet is enabled in the DB
Rational: user can do authenticated mappings/quick mapping without the account approved
2019-04-11 22:12:07 +01:00
Klaus Basan
eca5a36afd Ref T554, writer parses publishing response and support PHP debug flag 2019-04-11 22:11:43 +01:00
Klaus Basan
8569713331 Ref T554, style 2019-04-11 22:11:42 +01:00
Klaus Basan
4c33e4d792 Ref T554, publishing function for "auto publish data"
* writer
* services
2019-04-11 22:11:34 +01:00
Mat Sutcliffe
e9a4c49d68 Ref T547 Update license masthead in all source code files. 2019-02-22 20:36:43 +00:00
Klaus Basan
10fff29f97 Ref T472, use cross-reader (other reader) objects to avoid unnecessary parsing 2019-02-22 20:36:30 +00:00
Klaus Basan
72b7c61db7 Ref T472, style and minor fixes ("myself") 2019-02-22 20:36:29 +00:00
Klaus Basan
b584398482 Ref T472, added aircraft category in ICAO model 2019-02-22 20:36:19 +00:00
Klaus Basan
1b7f1b1662 Minor reader formatting/comments 2019-02-22 20:36:07 +00:00
Klaus Basan
f78d13047e Ref T472, support for category in ICAO reader 2019-02-22 20:35:56 +00:00
Klaus Basan
bada0c2f59 Ref T472, style 2019-02-22 20:35:55 +00:00