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
5d81b23386
refs #883 , some UI finetuning / Doxygen comments
2017-02-24 15:21:57 +00:00
Klaus Basan
6c72f8491c
refs #883 , improved detection if core is running
...
* use proxy to really ping core (not only checking connection)
* avoid closing Qt default connections -> crash
* some refactoring
2017-02-24 15:21:55 +00:00
Klaus Basan
d918ee4cfd
refs #883 , class for storing the launcher state
...
* removed DBus setting (causing crash as it was shared among launcher/pilot client, so using cache)
* also remember UI values
2017-02-24 15:21:54 +00:00
Klaus Basan
1619a5ceb3
Formatting application context
2017-02-24 15:21:52 +00:00
Klaus Basan
dd37945625
refs #883 , added new "directories"
...
* directories for in buildconfig/globalsetup
* renamed to CBuildConfig::getSwiftShareDir
2017-02-24 15:21:47 +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
7917769802
refs #875 , adjusted using classes to use new namespaces
2017-02-24 15:21:18 +00:00
Klaus Basan
31b6ef83f0
refs #875 , moved DBus test classes to blackmisc
...
https://dev.vatsim-germany.org/issues/875#note-8
2017-02-24 15:21:14 +00:00
Klaus Basan
3c588e61fa
refs #875 , moved classes for DBus unit tests and samples to BlackCore::Test
2017-02-24 15:21:00 +00:00
Klaus Basan
5b08363179
refs #875 , unit test for proxies
...
tests init and signal connects
2017-02-24 15:20:58 +00:00
Klaus Basan
2f4c86fac4
refs #875 , DBus fixes
...
* wrong signal connection signature -> assert
* missing SELCAL in simulated aircraft
2017-02-24 15:20:56 +00:00
Klaus Basan
c1482dca36
Formatting, help text beautifyHelpMessage, improved convertToQString
2017-02-24 15:20:55 +00:00
Klaus Basan
a34be02e07
refs #617 , CActionItem supports icon
...
* standard paths for applications
* support for Qt::DecorationRole
* QMap<QString, QPixmap> m_availableActions
* Constructor for icon only
* only leafs support actions
2017-02-24 15:20:54 +00:00
Klaus Basan
6a96d14baa
Formatting, icon utility function, icon size
2017-02-24 15:20:52 +00:00
Klaus Basan
74d608b5df
refs #617 , allow to use CGuiActionBindHandler with buttons
...
* used for weather enable/disable
* use actionBindWasDestroyed when corresponding BlackCore::CActionBind is destroyed
2017-02-24 15:20:44 +00:00
Klaus Basan
8c81f2bea3
refs #617 , CActionBind extended
...
* delete callback when dtor is called (can use related receivers)
* added cpp file
* CActionBindings for multiple bindings (shared pointers)
* normalize action string
2017-02-24 15:20:40 +00:00
Klaus Basan
eeaed099f0
Formatting, typos
2017-02-24 15:20:39 +00:00
Klaus Basan
d4b2238dc6
Formatting
2017-02-24 00:20:11 +00:00
Klaus Basan
7eacb41113
refs #873 , allow to request aircraft parts (aircraft config) from network
2017-02-24 00:20:09 +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
818cdfba59
Doxygen, added link to dev wiki and fixed group
2017-02-24 00:19:11 +00:00
Klaus Basan
e3d81c6c44
refs #865 , use same function for removing outdated aircraft parts
...
* in airspace monitor
* in XP traffic.cpp
2017-02-24 00:19:09 +00:00
Klaus Basan
309d593607
refs #871 , use const values for times
2017-02-24 00:19:07 +00:00
Klaus Basan
af15929b30
refs #865 , allow to enable interpolator/parts logging
...
* removed debug messages from interpolator
* added callsign to getInterpolatedParts / getInterpolatedSituation signatures
* config for logging via CInterpolationAndRenderingSetup::addCallsignToLog etc.
2017-02-24 00:18:56 +00:00
Klaus Basan
301db27945
refs #865 , make log directory available for blackmisc
2017-02-24 00:18:52 +00:00
Klaus Basan
68dccbefa6
Formatting, renaming, Doxygen, minor UI adjustments
2017-02-24 00:18:51 +00:00
Roland Winklmeier
a7635a7e13
Force observer mode login only in shipped versions
...
The required feature to force observer login in case no simulator
is available, is only necessary in offically shipped versions.
In order to allow developer testing, limit it to shipped builds only.
refs #872
2017-02-24 00:18:33 +00:00
Roland Winklmeier
1401b2f956
Add new command line argument 'serverType'
...
ServerType allows to override the ServerType at runtime
refs #872
2017-02-24 00:18:31 +00:00
Roland Winklmeier
c260af7b11
Update externals
2017-02-24 00:18:30 +00:00
Roland Winklmeier
9ccec07c36
Process all pending NetworkVatlib tasks before logging off
2017-02-24 00:18:26 +00:00
Mathew Sutcliffe
76cc9f8ad8
refs #852 CAirspaceMonitor has no maximum number of parts per callsign,
...
but regularly prune the list based on timestamp age.
2017-02-24 00:17:53 +00:00
Mathew Sutcliffe
3e70ab1207
refs #852 Add a time offset to CAircraftParts.
2017-02-24 00:17:46 +00:00
Roland Winklmeier
372e92072c
Fall back to observer mode login in case no simulator is available
...
refs #860
2017-02-24 00:09:25 +00:00
Roland Winklmeier
f5058574d0
Add isVatsimVersion to build configuration
...
This build configuration enables Vatsim specific features.
refs #860
2017-02-24 00:09:24 +00:00
Klaus Basan
63e2743867
refs #858 , fixed todo by adding "getInterimPositionReceivers()"
2017-02-24 00:09:02 +00:00
Klaus Basan
61e7f23847
refs #858 , todo review (demoted, commented)
2017-02-24 00:09:00 +00:00
Klaus Basan
1ced7f3c0b
refs #857 , check if network is accessible in readers
...
* new read state "skipped"
* renamed to "isNetworkConnectedAndAccessible"
* checking before reading, which would only fail if network is not accessible
2017-02-24 00:08:55 +00:00
Klaus Basan
04e980a6ae
refs #857 , monitor accessible network in application
2017-02-24 00:08:53 +00:00
Klaus Basan
bed1542fe4
Update externals
...
* vatlib 0.9.6
* Partially revert 3f975838b2
2017-02-24 00:08:47 +00:00
Mathew Sutcliffe
a0e59546f0
fixed mistakes caught by clang
2017-01-11 01:28:42 +00:00
Roland Winklmeier
1a6c7fa192
Add control button to activate and deactivate swift weather
...
- GUI changes
- Context and ISimulator APIs
- Refactored settings and static weather injection in CSimulatorCommon
refs #807
2017-01-10 23:47:39 +00:00
Klaus Basan
7d9b721b87
Avoid further loading when shutting down
2017-01-10 23:47:26 +00:00
Klaus Basan
4a28807768
refs #853 , JSON exception handling in setup reader
2017-01-10 23:47:19 +00:00
Klaus Basan
e3197ce375
refs #853 , JSON exception handling adjustments for ICAO reader
2017-01-10 23:47:17 +00:00
Klaus Basan
b0bef3264c
refs #853 , JSON exception handling adjustments for model reader
2017-01-10 23:47:15 +00:00