Commit Graph

62 Commits

Author SHA1 Message Date
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
Klaus Basan
d782839cb8 refs #703, moved context to subdir
* ns: Context
* adjusted using classes
2016-07-14 18:49:08 +02:00
Klaus Basan
18112a0394 refs #693, integrated GUI close dialog
* utility function in CGuiApplication containing the logic (dialog needed, ..)
* closeEvent function
2016-07-01 14:38:33 +02:00
Mathew Sutcliffe
242e041ceb refs #679 CValueCache local signal relay moved to the point of emission, to tolerate different orders of initialization of application. 2016-06-30 02:06:16 +01:00
Mathew Sutcliffe
903abcf514 refs #679 CApplication shall ensure CSettingsCache relay signal is connected when context is not available. 2016-06-29 17:34:51 +01: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
Roland Winklmeier
4180a890e4 Write settings, logs, cache, etc. into a installation dependent subfolder
refs #668
2016-06-08 21:30:56 +02:00
Klaus Basan
f02bf0ac0a refs #649, skip reading of info objects if only caches are used and emit signals when syncronized from cache
(applied after 1st performance fix for cache was ready)
* utility functions to detect if only caches are used
* renamed some functions
* renamed some db flags and added new ones
2016-06-08 18:20:58 +02:00
Klaus Basan
8b66f595d4 refs #512, changed dock widget to use settings
* allow to load from settings / save to settings
* removed outdated members / functions
* aligned naming of some functioss
2016-06-08 18:20:55 +02:00
Klaus Basan
9606ab12db refs #649, enum to specify which swift application is running
(remark: used to check which caches will be used)
2016-06-08 03:59:05 +02:00
Roland Winklmeier
2d8f56a598 Link CBuildConfig and CVersion into static library blackconfig
CBuildConfig including private keys etc. should not be part of a
public library API. Therefore link it into a static library, which
is not available to end users.

refs #645
2016-05-24 13:12:23 +02:00
Roland Winklmeier
45b0503896 Include Mac OS X platform in installer project
refs #615
2016-05-20 01:40:04 +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
Roland Winklmeier
3d7a39ed00 Fix BlackMisc header includes
* Include only what is used
* Use forward declaration when possible
* Sorted includes

refs #630
2016-05-13 17:05:49 +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
Mathew Sutcliffe
d9d30a339a refs #644 Move the enable of settings save to the same place as the initial settings load. 2016-04-27 18:35:08 +01:00
Mathew Sutcliffe
d7a63c15d4 refs #644 Move initial settings load to CApplication::start. 2016-04-27 18:30:28 +01:00
Klaus Basan
17ce1eef34 refs #625, refs #614 integration of client id fix 2016-04-11 20:19:49 +02:00
Klaus Basan
63ddcc5d7c refs #635, init metadata in CApplication / CGuiApplication 2016-04-11 20:16:19 +02:00
Roland Winklmeier
d379f14133 Introduce build config template buildconfig.h.in
refs #625
2016-03-31 17:12:01 +02:00
Klaus Basan
87a0c75f43 refs #621, use getXX for setup members, no idea why I have not used our standard 2016-03-30 13:41:44 +02:00
Klaus Basan
c36028ca9c refs #485, Restricted<T> 2016-03-18 01:10:35 +00:00
Klaus Basan
45496ce08e refs #485, support splash screen 2016-03-18 01:10:21 +00:00