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
Klaus Basan
301db27945
refs #865 , make log directory available for blackmisc
2017-02-24 00:18:52 +00:00
Roland Winklmeier
c260af7b11
Update externals
2017-02-24 00:18:30 +00:00
Klaus Basan
04e980a6ae
refs #857 , monitor accessible network in application
2017-02-24 00:08:53 +00:00
Mathew Sutcliffe
51c3ae8c25
refs #815 Catch and handle CJsonException when calling convertFromJson.
2017-01-10 23:46:36 +00:00
Klaus Basan
2821cd5213
Minor improvements at startup
...
Found due to expiry date
2017-01-10 23:46:26 +00:00
Klaus Basan
235673123d
refs #846 , improved start and waitForSetup
...
* directly wait for setup after triggering read
* use more detailed status messages
* in case of severe issues directly stop application
2017-01-10 23:46:05 +00:00
Klaus Basan
83dad62d4b
refs #846 , return CStatusMessageList instead bool, more detailed info
...
* renamed to ps_setupHandlingCompleted
* removed m_startUpCompleted
2017-01-10 23:46:04 +00:00
Klaus Basan
d6235d901e
refs #846 , allow to display cmdLineErrorMessage by BlackMisc::CStatusMessageList
...
Improved formatting and HTL escape message
2017-01-10 23:46:01 +00:00
Mathew Sutcliffe
26498ca916
refs #847 Use a local static QTempDirectory so it is not destroyed too early.
2017-01-10 23:45:13 +00:00
Klaus Basan
fc3ac8b323
refs #787 , MS review items + discussion on slack
...
https://dev.vatsim-germany.org/issues/787#note-4
2016-12-13 19:01:39 +01:00
Klaus Basan
ff394f4785
refs #787 , support for Header / shared files in database reader / web services
...
* split JsonDatastoreResponse in subclass HeaderResponse
* support for request newtwork request duration ("started") in application
* removed ps_setupChanged because it was unused
2016-12-06 09:35:02 +01:00
Klaus Basan
a1bea9703d
refs #777 , using feature in launcher
...
plus bug fix in application
2016-12-06 09:34:44 +01:00
Mathew Sutcliffe
fa76b5411e
refs #777 CApplication methods for detecting already running applications.
2016-12-06 09:33:50 +01:00
Mathew Sutcliffe
cf9b6f039c
refs #777 Moved enum CApplication::SwiftApplication to CApplicationInfo::Application.
2016-12-06 09:33:47 +01:00
Klaus Basan
fdc6f481d4
Changed assert message
2016-12-06 09:33:36 +01:00
Mathew Sutcliffe
cafd724aaf
Performance: avoid long sleep in processEvents loop.
2016-10-17 14:34:26 +01:00
Klaus Basan
44258a97fa
Use temp dir. for cache when a unit test is performed
...
* the temp. dir can also be used for other purposes
2016-09-19 16:18:55 +02:00
Roland Winklmeier
3603bbabe2
Rename CApplication member function to be better readable
...
The combination of the method's name 'signalStartupAutomatically'
and the default argument, I completely misunderstood the purpose
of the method in case the argument was skipped.
'a.signalStartupAutomatically()' actually disabled automatic signaling.
2016-08-26 21:05:26 +01:00
Michał Garapich
39dae7ed45
Fix possible memleak in CDatabaseWriter
...
* CApplication network methods cleanup
2016-08-26 00:18:41 +02:00
Michał Garapich
1032b2f506
refs #650 Implement CAirportDataReader
...
* Add BlackCore::CAirportDataReader class
* Add cache traits for airport list
* Add corresponding WebReaderFlag
* Add CAirport::convertFromDatabaseJson()
* Add CApplication::headerFromNetwork() to handle HTTP HEAD method
2016-08-26 00:18:41 +02:00
Roland Winklmeier
78eeecf052
Make crash dump uploading configurable
...
refs #490
2016-08-09 17:52:10 +02:00
Roland Winklmeier
e47aec223e
Integrate Crashpad crash handler into CApplication
...
Crash handler launches an external crash handler executable called
swift_crashpad_handler. It monitores the parent process and produces
a local dump in case of a crash.
For release builds, the dump is also uploaded to a crash report server.
refs #490
2016-08-09 17:51:57 +02:00
Klaus Basan
31b03fe2e1
refs #712 , signals when all DB data are read / the web services are started
...
(useful for GUI as it can be used to init only when data are available)
2016-07-28 21:08:24 +02:00
Klaus Basan
ade581fd50
Avoid issues during shutdown
2016-07-14 18:49:29 +02:00
Klaus Basan
19040af654
refs #704 , moved VATSIM specific stuff to ns VATSIM/subdir
2016-07-14 18:49:11 +02:00