Commit Graph

233 Commits

Author SHA1 Message Date
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
2ba2d5bc8e refactor: Clarify CApplication method names 2024-02-18 23:09:13 +01:00
Lars Toenning
a664371567 refactor: Move installer flag handling to launcher
This is only used by the launcher
2024-02-18 23:09:13 +01:00
Lars Toenning
a84e299e45 refactor: Remove unused single application flag 2024-02-18 23:09:12 +01:00
Lars Toenning
de45811d34 refactor: Remove unused private shared dir CLI arg 2024-02-18 23:09:12 +01:00
Lars Toenning
7b6f087247 refactor: Fix some clang-tidy warnings
- Mark single argument constructors as explicit
- Remove unused functions
- Avoid default parameters in virtual functions
- Clean up includes
- Do not call static methods through an instance
- And some more...
2024-02-18 23:09:12 +01:00
Lars Toenning
b939711058 refactor: Start WebServices and CoreFacade separately 2024-02-18 22:16:54 +01:00
Lars Toenning
9d3ae3e2b3 refactor: Restructure parsing and setup loading methods 2024-02-18 22:16:54 +01:00
Lars Toenning
99de8009be refactor: Emit CApplication::startUpComplete on starting event loop 2024-02-18 22:16:54 +01:00
Lars Toenning
b8a376701b fix: Remove help/version message dialogs for Gui application
These methods did not quit the application and hence the application
exits with code -1. Further, when calling swift with a commandline
argument, the user might expect to get a commandline output and not a
GUI popup.
2024-02-18 22:16:54 +01:00
Lars Toenning
bebd5600bb refactor: Remove unused and outdated SSL certificates
Methods are unused since commit 0d0e09333
CNetworkUtils::setSwiftClientSslCertificate was removed with ac48e64
2024-02-06 08:45:34 +01:00
Lars Toenning
389431ccef refactor: Clean up setup file reader
Previously we already switch to loading the bootstrap file only from the
local file (ec42553910).
This removes the remaining parts of loading the bootstrap file from a
remote location.
This also updates the UI in case of parsing errors of the bootstrap.json.
2024-02-05 22:23:40 +01:00
Lars Toenning
da552d60cc refactor: Remove dev flag from bootstrap json
With this, the database debug flag can only be activated when using swift
with a development build. Setting the development flag in the json also
didn't worked previously as expected because the corresponding function
to get the flag in application.cpp was called before the setup was loaded.
2024-02-05 22:23:40 +01:00
Lars Toenning
2f93a3abe2 refactor: Remove unused signal 2024-02-05 22:23:40 +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
c4cfdc1fcc Remove EOL feature 2023-02-28 21:12:24 +01:00
Lars Toenning
a62da56d5f Use HTTP to get VATSIM IP in automatic mode 2023-02-28 08:29:58 +01:00
Lars Toenning
fbd9255f56 Add getter for server file to CApplication 2023-02-27 15:31:11 +01:00
Mat Sutcliffe
4a94f61f73 Removed ctor that constructed an invalid CSlot 2022-01-29 14:41:12 +00: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
eb6b0ff289 Fix clang-tidy and clazy warnings 2021-08-29 17:02:27 +01:00
Mat Sutcliffe
611b7547c0 Issue #77 Break dependency of CFileLogger on CLogHandler 2020-12-19 18:50:38 +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
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
936e869c94 Issue #77 Remove unused code 2020-08-29 14:16:10 +01:00
Mat Sutcliffe
92edbb90c2 Issue #77 Refactor to inline functions 2020-08-29 14:16:10 +01:00
Mat Sutcliffe
86dd91a064 Issue #15 [GUI] Use CLogHistoryReplica in CLogComponent and swift applications 2020-08-01 19:48:36 +01:00
Mat Sutcliffe
ee4e41d0a6 Issue #15 CCoreFacade owns an instance of CDataLinkDBus 2020-08-01 19:48:35 +01:00
Mat Sutcliffe
38a1d24411 #42 Enable reading update info from GitHub Packages REST API 2020-07-04 21:33:23 +01:00
Mat Sutcliffe
8375881941 Remove dead code 2020-07-04 21:30:53 +01:00
Lars Toenning
1d4aa96e9b Add warning about expire and redesign warning/error popup
Fixes Github Issue #38
2020-06-29 17:22:09 +01:00
Klaus Basan
cb78453e7c Make sure contexts are "gracefulShutdown"
The shutdown was NOT called as it was canceled because of being in shutdown mode
2020-06-12 18:42:42 +01:00
Mat Sutcliffe
2f1e3f47f9 Track worker construction and destruction
Added debug log messages in case a worker still exists when the `qApp` is destroyed.
This would mean that a `quitAndWait` is missing or is being skipped somewhere.
2020-06-12 18:42:41 +01:00
Klaus Basan
0ee522426a Create "shutdown" message to find how far we get if swift hangs during shutdown 2020-06-12 18:42:41 +01:00
Klaus Basan
76e42cc16e Minor fixes related to the SSL lib issue
https://discordapp.com/channels/539048679160676382/539925070550794240/691469857891418202
2020-06-12 18:42:39 +01:00
Klaus Basan
4378b6c959 Detect if running with DBus (core + GUI) or just "standalone" (no swift DBus) 2020-01-22 19:46:14 +01:00
Klaus Basan
5150fb4e86 [AFV] Ref T739, cmd.line args for "no audio" 2020-01-07 19:05:42 +00:00
Klaus Basan
383352f79c [AFV] Ref T739, remove implementation details from IContextAudio to keep the DBus interface "pure"
* This was an approach to avoid registration of "local signals"
* that part DID NOT work as planned, as all object's signals are registered
* the refactoring itself nevertheless is NOT a bad idea and has been kept
* as the audio context has this special "concept" and CAfvClient can run on both sides (proxy AND impl.side)
2019-10-18 10:36:23 +02:00
Klaus Basan
6cbd2d9486 [AFV] Ref T739 remove unused old coreaudio arguments 2019-10-18 10:36:15 +02:00
Mat Sutcliffe
ec0a20b1d1 [AFV] Fixed context unittest that was broken by audio context changes 2019-10-11 19:00:40 +01:00
Klaus Basan
ff6b7f8deb Ref T730, added deleteResourceFromNetwork and modified CSlot (directly accept object witb std::function) 2019-10-11 19:00:34 +01:00
Roland Rossgotterer
acf540be34 Long live FsdClient 2019-09-18 13:49:37 +02:00
Klaus Basan
33cd96c2e3 Allow to test an ASSERT (like the crashdump test) 2019-09-16 22:40:54 +01:00
Klaus Basan
235508ec98 Ref T673, incognito flag/menu 2019-09-16 22:39:57 +01:00
Roland Rossgotterer
a7509669f9 Refactor crashpad initialization
Crashpad handler was initialized quite late since we were waiting for settings. However the settings in crashpad are persistent itself, hence we can start it at the earliest possible time and change the upload settings independently later. The only prerequisite is to have QCoreApplication constructed in order for the application name to be available.
ref T652
2019-05-13 11:21:05 +02:00