Commit Graph

109 Commits

Author SHA1 Message Date
Klaus Basan
15e46ba94a Do not trigger loads if they are doomed to fail 2017-09-27 03:01:03 +02:00
Klaus Basan
3cf97b3f37 Ref T163, using settings descriptions
* renamed to getUnsavedSettingsKeys
* no private slots in close dialog
* use descriptions instead of keys
2017-09-26 20:08:02 +02:00
Klaus Basan
e932f08547 Ref T161, network watchdog calls ping service 2017-09-25 05:23:58 +02:00
Klaus Basan
dabe50bcfe Ref T160, improved / more detailed info for user-agent in requests
* renamed to getSwiftNetworkRequest (make clear request is tweaked)
* add details to user request
2017-09-25 05:23:56 +02: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
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
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
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
dec5eff0c6 Ref T125, service to download and save file in directory 2017-09-24 19:53:26 +01:00
Klaus Basan
a993ccd1c1 Fix CApplication::processEventsFor so it can be used in samples/unit tests 2017-09-24 19:53:07 +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
8c9e3541ee Added "About swift dialog"
* Details as text edit, so users can cut and paste it for bug reports
* Removed setup/compile info from internals and show it in about
* display Qt icon for "About Qt"
2017-09-24 19:50:38 +01:00
Klaus Basan
380da41544 Handling during shuttdown
* Do not start new event loop when shutting down
* FSX Listener end checking when shutting down
* in same step fixed: FSX driver can connect to P3D and FSX but not vice versa
2017-09-24 19:50:35 +01:00
Klaus Basan
c0b78bee6f Improved info string 2017-09-24 19:50:21 +01:00
Klaus Basan
880cedec5d Some reader improvements
* Log when VATSIM status file has been read
* fix: read VATSIM status file after initReaders completes
* some private slots -> normal private functions
* removed copy/paste error illegalIcaoCodes

follow up of Ref T105
2017-09-24 19:50:19 +01:00
Klaus Basan
07b096b398 Ref T103, verify important files/directories
* utility function in CDirectoryUtils
* deployed in main/application
2017-09-24 19:49:58 +01:00
Klaus Basan
a9198e4f13 Ref T103, Unified naming of directory functions
* some started with get/some not (removed get, get is normally used for our getters)
* some used swift, getSwiftXZY dir (removed swift)
* used full word "directory", not dir/directory mixed
2017-09-24 19:49:53 +01:00
Klaus Basan
debd9c802f Ref T103, moved directory functions from CBuildConfig to CDirectoryUtils
getApplicationDir renamed to getBinDir() as it works different on MacOs
see https://dev.swift-project.org/w/dev/swiftpc/dirstructure/
2017-09-24 19:49:51 +01:00
Klaus Basan
74e0bf397f Ref T42, application classes
* GUI classes allow retry
* longer timeouts
* accept unknow accessibility (QAM)
* QAM now as pointer, which would allow to replace QAM

When QAM becomes disconnected, then connect again it is in unknown state
2017-05-05 23:07:42 +01:00
Klaus Basan
6ebbf58f79 Formatting 2017-05-05 23:07:34 +01:00
Mathew Sutcliffe
e3fe8ec39f refs #937 Resolved clazy warnings: miscellaneous. 2017-04-19 19:31:50 +01:00
Klaus Basan
864fa88c65 refs #935, added cmdline args for crashpad server 2017-04-19 19:31:17 +01:00
Klaus Basan
8143add432 Show distribution file URL in distribution component (tooltip) 2017-04-18 00:08:14 +01:00
Klaus Basan
f2602a8915 Formatting, const, Doxygen
#930
2017-04-18 00:08:02 +01:00
Klaus Basan
a22631777d Check on reader to avoid redundant error messages 2017-04-18 00:07:24 +01:00
Klaus Basan
127f1bc38c Set started flag correctly
Parsing will disable starting if there is an issue with the cmd line (mostly network not available, bootstrap URL not reachable).
2017-04-18 00:07:03 +01:00
Klaus Basan
f85501c7bf refs #921, use QVersionNumber
* CVersion removed
* remaining utility functions moved to CBuildConfig
* patch version -> micro version (Qt naming)
* using classes adjusted
2017-04-18 00:06:58 +01:00
Klaus Basan
09a71feef4 refs #921, adjusted application class to use distribution info 2017-04-18 00:06:45 +01:00
Klaus Basan
929e2883d0 refs #921, renaming follow ups 2017-04-18 00:06:34 +01:00
Mathew Sutcliffe
70520d44c3 refs #884 Protect filesystem race in settings using QLockFile. 2017-04-18 00:00:24 +01:00
Klaus Basan
705e83e156 Simplified Ctor for application with CApplicationInfo::Application 2017-04-18 00:00:02 +01:00
Roland Winklmeier
dbcde5bcf5 Create crashpad database directory before initializing CrashReportDatabase 2017-04-17 23:59:50 +01:00
Klaus Basan
5323491eb9 Improved handling for "unexpected shutdown"
(such as DBus down/unavailable)
2017-04-17 23:59:23 +01:00
Klaus Basan
2eef9288b9 Added shutting down function 2017-04-17 23:58:02 +01:00
Roland Winklmeier
e83a02b854 Set application to unit test before a call to CApplication::getSwiftApplication() 2017-04-17 23:57:39 +01:00
Klaus Basan
888375d294 refs #887, directories available via CDirectoryUtils/relative paths
* relative cache/settings paths are available relativeFilePath
* directories build in CDirectoryUtils
* directory comparison in CDirectoryUtils
* using CFileUtils to concatenate dir paths
* using URL encoded string for normalized directory (as it can be decoded)
2017-03-01 20:51:34 +01:00
Klaus Basan
92f67c7eca Qt 5.9 fixme comment, formatting 2017-03-01 20:51:29 +01:00
Mathew Sutcliffe
220c237b8c refs #884 Fixed some settings usage in CApplication. 2017-03-01 12:42:39 +00:00
Roland Winklmeier
66cf96d47f Use CEventLoop to process events until a signal is received
refs #869
2017-02-24 15:22:18 +00:00
Roland Winklmeier
7faffc520d Remove obsolete network connection checks
refs #869
2017-02-24 15:22:15 +00:00
Roland Winklmeier
64a47da67f Use CApplication::isNetworkAccessible() wherever possible
Up to now we had a mixture of different methods to detect whether
network is connected, accessible or both. Even if they implied a
different meaning, they were all doing the same and internally
referred to almost the same code. Almost, since our implementation
of CNetworkUtils::hasConnectedInterface refers to code from Qt 4.4.
However, all of them returned a boolean status whether a network
interface is generally up or not. Instead of maintaining our own
version, use Qt functions.

refs #869
2017-02-24 15:22:11 +00:00
Klaus Basan
060a10dfb6 Replaced QLatin1Literal by QLatin1String
refs #883
2017-02-24 15:22:09 +00:00
Klaus Basan
d980f99300 refs #883, support for "single application" in CApplication 2017-02-24 15:22:01 +00:00
Klaus Basan
24a9b332b0 refs #883, application class extended
* allow to register application as running (needed for launcher)
* getExecutableForApplication
* swift launcher can be started
2017-02-24 15:21:44 +00:00
Klaus Basan
7bc53ada3e refs #883, fixes and formatting
* QProcess::startDetached is static, removed startNewProcess
* QStringBuilder
2017-02-24 15:21:42 +00:00
Klaus Basan
f73ee87e13 refs #882, support redirect transparently in CApplication
* SSL client certificate functionality used from utils
* support for max redirects

Remark:
QNetworkRequest::FollowRedirectsAttribute would allow auto redirect, but we use our approach as it gives us better control
2017-02-24 15:21:35 +00:00
Klaus Basan
c1482dca36 Formatting, help text beautifyHelpMessage, improved convertToQString 2017-02-24 15:20:55 +00:00
Roland Winklmeier
47aa04b5e9 Attach swift client certificate if url is swift shared url
refs #762
2017-02-24 00:19:38 +00:00