Commit Graph

63 Commits

Author SHA1 Message Date
Klaus Basan
7ae7d04548 Ref T367, do not read again when info/setup was just read (age) 2018-09-23 20:12:30 +02:00
Klaus Basan
8f286c4475 Ref T367, simplified bootstrap and update info reading 2018-09-22 01:26:41 +02:00
Klaus Basan
e1421622b1 Reset URL list and adjusted timeouts for for bootstrap file. Also avoid problems when shutting down. 2018-05-08 16:06:34 +02:00
Klaus Basan
922f12f141 Ref T199, sync. caches of setup reader 2018-01-14 18:47:35 +01:00
Klaus Basan
826760e347 Bootstrap file name encapsulated 2018-01-14 18:47:28 +01:00
Klaus Basan
0f8bbbbfc2 Ref T210, adjusting classes to use new functions 2017-12-21 19:49:52 +01:00
Klaus Basan
379357d5d5 Formatting 2017-12-21 19:49:34 +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
8103df18f7 Ref T195, formatting 2017-12-21 19:45:46 +01:00
Klaus Basan
d1898b26fc Ref T160, "private slots" to "private" in setup reader 2017-09-25 05:23:56 +02:00
Klaus Basan
071f327fca Follow up of T156, improved setup loading dialog
* allow to load the delivered setup file if there are no other data
* display setup cache information
2017-09-24 20:29:27 +01:00
Klaus Basan
428ba0975c Ref T156, setup reader adjusted
* link with watchdog Ref T150
* allow to disable URL connect checks if setup dialog is used
* refactoring of CSetupReader::parseCmdLineArguments so reparsing is possible
2017-09-24 20:28:37 +01:00
Klaus Basan
afbf3f05c8 Ref T150, utility functions in URL list
* renamed to withAppendedPath
* findByHost
* addFailed utility functions
2017-09-24 19:54:30 +01:00
Klaus Basan
8c032fb4d7 Ref T125, allow to get distribution list by JSON string. Also setup value object directly using JSON string now. 2017-09-24 19:53:13 +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
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
212bb6b485 Ref T42, setup reader
* cache can be prefilled
* renamed to ps_readDistributionInfo
* network issues -> chance to retry
2017-05-05 23:07:40 +01:00
Klaus Basan
f2d89bf56c Fixed misc. things for bootstrap file/reader
* added help URL
* added swift map URL
* fixed typo for crash report server
* added more failover servers
2017-04-19 19:30:58 +01:00
Klaus Basan
8143add432 Show distribution file URL in distribution component (tooltip) 2017-04-18 00:08:14 +01:00
Klaus Basan
9faad01c8b refs #921, changed setup/reader to distribution URL 2017-04-18 00:07:08 +01:00
Klaus Basan
ec297d5838 Formatting, typos 2017-04-18 00:06:53 +01:00
Klaus Basan
d1a72f8d62 refs #921, adjusted reader to use distribution info 2017-04-18 00:06:42 +01: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
5d81b23386 refs #883, some UI finetuning / Doxygen comments 2017-02-24 15:21:57 +00:00
Klaus Basan
4a28807768 refs #853, JSON exception handling in setup reader 2017-01-10 23:47:19 +00:00
Mathew Sutcliffe
bda0f42c60 refs #815 Mark with \todo the remaining places where CJsonException needs to be caught. 2017-01-10 23:46:37 +00:00
Klaus Basan
62f2593486 refs #846, setup reader
* save last error message
* renamed to setupHandlingCompleted
* docu
2017-01-10 23:46:00 +00:00
Klaus Basan
c02cbcb952 Updated some documentation based on a brief slack discussion with MG 2016-12-06 09:34:37 +01:00
Klaus Basan
ff1ea3826b Improved error message when bootsrap file URL is not reachable
based on slack discussion during move of "shared" directory
2016-12-06 09:33:38 +01:00
Klaus Basan
09d74c48b8 Changed some default URL to https://datastore.swift-project.org 2016-09-19 16:18:55 +02: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
8d5020d78e Some Web readers adjustemnts
* do not init shared URLs before needed
* do not load info objects when DB is unavailable
* adjust reader flags when DB is down
* airport URL available in setup
2016-07-03 13:22:26 +02:00
Klaus Basan
ce7362a9d9 refs #675 default URL for bootstrap file
* CApplication now has member function isUnitTest
* bootstrap URL has hardcoded default URL when running as unit test
* unit tests are automatically marked as "running in dev. environment"
2016-06-23 20:13:26 +02:00
Mathew Sutcliffe
9bef6854ca Caches: rename "get" to "getThreadLocal" and rename "getCopy" to get. 2016-06-08 18:21:01 +02:00
Roland Winklmeier
933271b828 Fix BlackCore header includes
* Include only what is used
* Use forward declaration when possible
* Sorted includes

refs #598
2016-05-13 17:06:00 +02:00
Klaus Basan
8da559a186 refs #642, as proposed by MS
https://dev.vatsim-germany.org/issues/642#note-4
2016-05-07 20:11:40 +02:00
Klaus Basan
d0daad7d34 refs #642, fixed setup loading, in same step refs #636 clear cache
* changed signals in setup reader
* explicit mode is default
* detailed information what is loaded
* new log pattern
* allow to add message list to log component
* allow to clear cache by cmd line arg
* consolidated cmd names
2016-05-05 20:49:13 +02:00
Klaus Basan
efe6d9f183 refs #633, cleaned up resource dir
* removed local.env.template
* fixed path in global setup class
* removed timestamp check from gloabl setup (problem when switching URLs)
2016-04-11 20:16:16 +02:00
Roland Winklmeier
d379f14133 Introduce build config template buildconfig.h.in
refs #625
2016-03-31 17:12:01 +02:00
Klaus Basan
706f8c7ae1 refs #621, adjusted reader to load also from local resource directory 2016-03-30 13:41:46 +02:00
Klaus Basan
d687255ef1 Fixed typo and exit application when parsing fails 2016-03-30 03:07:16 +02:00
Klaus Basan
bf9ea12a2b Some fixes / tweaks found during testing
* clear setup URLs
* renamed to CInfoArea::connectTopLevelChanged()
* qss, margins for menu items
2016-03-18 01:10:01 +00:00
Klaus Basan
30b5e5dade refs #485, changed to static preformatted as discussed (MS/KB) on slack 2016-03-18 01:09:42 +00:00
Klaus Basan
f4cbfc2fa9 refs #603, new CMD args, formerly passed by env.vars
* removed from CProject
* removed. env. vars menu items
* prepared for vatlib cmd. args
* prepared for eol (end of lifetime) timestamp (time bomb)
2016-03-18 01:09:31 +00:00
Klaus Basan
d7e5b5206c refs #485, adjusted setup reader
* log categories as discussed
* made some functions thread safe
2016-03-18 01:09:28 +00:00
Klaus Basan
c411f07551 refs #485, renamed to cmdLineErrorMessage (to distinguish from status messages) 2016-03-18 01:09:06 +00:00
Klaus Basan
8a7eba74d9 refs #602, threadsafe access to central QNetworkAccessManager post/get
* threadsafe (used from workers)
* added post methods
* renamed functions to better refelct post/get
* use central QNetworkAccessManager in readers, removed local readers
2016-03-18 01:08:54 +00:00
Klaus Basan
1a1e4681fe refs #600, turned CUrlList into a plain vanilla list
* bundled all load balancing in CFailoverUrlList. "Obtain" functions are non-const, no need of mutable members
2016-03-18 01:08:41 +00:00