Commit Graph

198 Commits

Author SHA1 Message Date
Klaus Basan
5096df034b Ref T314, thread CContinuousWorker::finish
- use application thread if there is no owner
- use QPointer for owner
- more detailled error message
2018-08-31 20:08:06 +02:00
Klaus Basan
755455e8a4 Style, in CGuiApplication sGui can be used as guard (no QPointer needed) 2018-08-16 14:33:54 +02:00
Klaus Basan
0327776edd Ref T295, based on bug report of RP (no WIFI detected) creating a network report
* network report when starting swift
* also ignore inactive configs when checking for "the bearer bug"

references:
https://stackoverflow.com/questions/51824242/disable-qt-bearer-management-at-runtime
https://swift-project.slack.com/archives/G7GD2UP9C/p1534181224000115
https://swift-project.slack.com/archives/G96QTUBEG/p1534162173000320
2018-08-16 14:33:52 +02:00
Klaus Basan
c0ca56ee93 Ref T295, fix for the "no network config" issue
* details: https://stackoverflow.com/questions/51686943/no-qnetworkconfiguration-although-i-can-connect-to-wifi
* network accessibility check can be disabled if network config looks suspicious
* using QNetworkConfigurationManager
2018-08-09 01:25:18 +02:00
Klaus Basan
c282d4e1f8 Ref T295, network watchdog optimizations
* constructor can pass network accessibility as default
* ping URL now constructed in global setup
* watchdog will prevent unnecessary signals by checking if state has really changed (there are redundant QAM signals for QNetworkAccessManager::networkAccessibleChanged)
* refactorings, thread checks
2018-07-31 01:43:32 +02:00
Klaus Basan
5966a1ead4 Display platform in title bar (easier to identify screenshot) 2018-07-27 23:33:14 +02:00
Klaus Basan
a6ee6d4b72 Ref T292, Ref T285 minor style improvements, renamings 2018-07-26 04:32:38 +02:00
Klaus Basan
6f8d980d2c Exclude some more cmd line args. from being passed from launcher 2018-06-13 13:59:47 +02:00
Klaus Basan
87b96f8910 Cleanup: toFormattedQString was not really used and just redirecting toQString
* marked deprecated
* and replaced by toQString
2018-06-13 13:59:35 +02:00
Roland Winklmeier
4aaccb44c3 Cleanup the enabled modules in all sub projects
Most modules were just enabled to add include path for dependent headers
2018-06-02 02:08:46 +02:00
Klaus Basan
c7f77c6892 Load settings before contexts are loaded, see https://swift-project.slack.com/archives/G7GD2UP9C/p1527537764000022
* load local settings before core facade is created
* or load it in the next step, in case there are no contexts
2018-06-01 01:30:50 +02:00
Klaus Basan
f7a0c69fc8 Ref T270, push front for sequence and unified "insert" -> "push_back"
Remark: "CSequence::insert" is a synonym "push_back". This makes it clearer that push_back is used.
2018-06-01 01:30:33 +02:00
Klaus Basan
4eeaf1adc4 Smaller adjustments of unit test and application 2018-06-01 01:30:26 +02:00
Klaus Basan
fc35e8b654 Formatting, style 2018-05-22 13:23:47 +02:00
Klaus Basan
7965f67455 Ref T264, better display of other installed swift versions
* improved CApplicationInfo, added property support
* renamed functions
2018-05-22 13:20:13 +02:00
Klaus Basan
35d78b641a Fix clang warnings as discussed here: https://swift-project.slack.com/archives/G7GD2UP9C/p1526463295000266
Reported in CLANG test build here: https://build.swift-project.org/job/macos_test_job/4/warnings10Result/
2018-05-22 13:20:02 +02:00
Klaus Basan
58bdbac7b6 Ref T270, "about to shutdown" in CApplication 2018-05-18 00:25:12 +02:00
Klaus Basan
eb0fa92e7e Ref T260, function to add an offset to received situations for testing
* "dot" command
* context function
* provider functions
2018-05-08 16:06:40 +02:00
Klaus Basan
b6b37c9c0f DB watchdog also emits URL in signal (allows to display the failed URL) 2018-05-04 23:03:18 +02:00
Klaus Basan
d6fd53287f Improved graceful shutdown, added "m_shutdownInProgress"
* no assert when wait is called in same thread, just ignore wait
* quitAndWait readers, also works if not already noved in new thread (see above)
2018-04-13 23:36:49 +02:00
Klaus Basan
0101e31db2 Ref T237, find latest DB cache ts and only init caches if there are no or old cache data 2018-01-30 23:34:12 +01:00
Klaus Basan
801b584c87 Ref T237, init DB caches from installer files 2018-01-30 20:35:34 +01:00
Klaus Basan
301eb79eca Renamings and adjustments of developer flag 2018-01-30 20:34:50 +01:00
Klaus Basan
ee8ea8e599 Ref T228, some renamings 2018-01-30 20:29:20 +01:00
Klaus Basan
c42b325d54 Watchdog allows to obtain info string about the statistics 2018-01-17 05:00:09 +01:00
Klaus Basan
4c39b8923e Ref T220, set application name earlier and use member to get application name 2018-01-14 18:47:06 +01:00
Klaus Basan
23f48a866d Display VATLIB version in "about swift" 2018-01-14 18:45:45 +01:00
Klaus Basan
7be04f19d8 Quit own event loop when "shutting down" 2018-01-13 05:03:59 +01:00
Klaus Basan
be05afa542 Ref T199, data directory will be tagged
A information JSON file will be written into the data directory.
This can be used to display other swift versions.
2017-12-25 13:12:56 +01:00
Klaus Basan
8b74acb3a9 Ref T210, moved "guess" into CApplicationInfo
* core unit test, set correct type
* guess application type now in CApplicationInfo
2017-12-21 19:50:09 +01:00
Klaus Basan
fcd4f8cde9 Ref T210, adjusting application class
* unit test flag is redundant
* added own distribution
2017-12-21 19:49:55 +01:00
Klaus Basan
6701266a66 Made QTemporaryDir object static const 2017-12-21 19:49:24 +01:00
Klaus Basan
a220c15042 Using EXIT_SUCCESS 2017-12-21 19:49:18 +01:00
Klaus Basan
7cf5dcdd8a Ref T203, renamings and improved messages in setup reader 2017-12-21 19:48:44 +01:00
Klaus Basan
0daf4ba087 Ref T203, renamings to "update info" and "settings" 2017-12-21 19:48:30 +01:00
Klaus Basan
f33c198d5d Ref T195, application restart functions
* allow to get current arguments joined with new ones
* removed old inheritedArguments function
* unregisterAsRunning (for restart)
* restart function
2017-12-21 19:45:55 +01:00
Klaus Basan
8bdfb2474b Ref T192, starting launcher inherites CMD arguments 2017-12-21 19:45:35 +01:00
Roland Winklmeier
f53ec46d20 Change the operating system name from OSX to MacOS everywhere
Summary:
- Changed the name in all build artifacts
- Everywhere in C++

Reviewers: #swift_pilot_client, kbasan

Reviewed By: #swift_pilot_client, kbasan

Subscribers: jenkins

Maniphest Tasks: T205

Differential Revision: https://dev.swift-project.org/D69
2017-12-06 22:50:19 +01:00
Klaus Basan
482023b2c0 Ref T180, dot commands to set rendering setup
* enable parts/debug messages via dot command
* allow to log to console via application context
2017-11-06 22:20:59 +01:00
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