Commit Graph

49 Commits

Author SHA1 Message Date
Roland Winklmeier
d68f678cc5 Upgrade to vatlib v0.9.7 2018-01-13 05:04:21 +01:00
Klaus Basan
8c539fab0a Ref T215, FP value class
* split into prefix / aircraft ICAO / suffix
* suffix equipment code functions
* fixed FP remarks loading (JSON file)
* fixed missing sending of aircraft ICAO
2018-01-13 05:04:17 +01:00
Klaus Basan
379c53e0cc Ref T189 and review follow up, replacing the changed values seems to be 4x faster
(tested in samples)
2017-12-21 19:50:23 +01:00
Klaus Basan
e81211775b RW's review fixes Ref T202 Ref T189 Ref T210
* dmg comment and follow up issue created
* cppcheck-suppress passedByValue in cppcheck.supp
* renamed from Xsb -> XSwiftBus
* reverted wrong "static const QString dataStr"
2017-12-21 19:50:19 +01:00
Klaus Basan
0f8bbbbfc2 Ref T210, adjusting classes to use new functions 2017-12-21 19:49:52 +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
e24914cc26 Ref T190, consolidate text messages before emitting text message 2017-12-21 19:45:02 +01:00
Klaus Basan
b08e281f85 Ref T189, no need to init const values over and over again 2017-12-21 19:45:00 +01:00
Klaus Basan
0a1f5c49ae Ref T189, include order and removed unused variable 2017-12-21 19:44:55 +01:00
Klaus Basan
8df801e7cc Ref T129, use all vatlib VFR types with flight plan value object 2017-10-10 00:28:11 +01:00
Klaus Basan
b1795c77d8 Ref T129, formatting, removed namespace from signatures when "using namespace" 2017-10-10 00:27:41 +01:00
Klaus Basan
1daa640972 Ref T129, added callsign in flight plan and made flight plan timestamp interface compliant 2017-10-10 00:27:39 +01:00
Klaus Basan
4fc06cf3b0 some vatlib refactoring done along with T129
* removed useless if in CNetworkVatlib::onConnectionStatusChanged
* more frequently used pattern "auto *self = cbvar_cast(cbvar)" -> shorter lines
* added const where applicable
* added callsign hint where applicable
* added missing fromFSD where missing
* using QTimer::singleShot as discussed https://swift-project.slack.com/archives/C04J6J76N/p1506729875000004
2017-10-10 00:27:28 +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
5d4c022dc0 Ref T140, too many warnings when wrong XPDR code is received.
Demoted to debug message.

Slack: https://swift-project.slack.com/archives/C04J6J76N/p1504365879000106
2017-09-24 19:54:01 +01:00
Klaus Basan
d2d44085ba Formatting 2017-09-24 19:49:03 +01:00
Klaus Basan
36037c4c04 Ref T85, minor improvements on server type
* UI: generic generation of combobox
* UI: Read only for combobox
* CServer utility functions
2017-06-27 20:50:28 +02:00
Roland Winklmeier
5d1b5dba38 Allow to select server type in FSD settings
Summary:
With this change the server type is a dynamic setting per server and
replaces the hardcoded global server type in CNetworkVatlib. This allows
the user to select the server type in settings ui and configures
the vatlib session accordingly.
This also removes the command line argument to set the server type since
it doesn't make sense anymore.

Reviewers: msutcliffe

Reviewed By: msutcliffe

Subscribers: jenkins

Differential Revision: https://dev.swift-project.org/D24
2017-06-09 12:27:58 +02:00
Mathew Sutcliffe
5b8d76c06c Always disconnect CNetworkVatlib when shutting down. 2017-05-15 22:31:36 +01:00
Mathew Sutcliffe
d5ab73e1bc Replace QRegExp with QRegularExpression
Reviewers: kbasan, msutcliffe

Reviewed By: kbasan, msutcliffe

Subscribers: jenkins

Differential Revision: https://dev.swift-project.org/D11
2017-05-05 23:08:35 +01:00
Mathew Sutcliffe
e3fe8ec39f refs #937 Resolved clazy warnings: miscellaneous. 2017-04-19 19:31:50 +01:00
Mathew Sutcliffe
2134b4e874 refs #937 Resolved clazy warnings: wrong usage of emit keyword. 2017-04-19 19:31:48 +01:00
Mathew Sutcliffe
3ea9e33e6b refs #937 Resolved clazy warnings: pass-by-value/reference. 2017-04-19 19:31:42 +01:00
Mathew Sutcliffe
b7f69c6887 refs #937 Resolved clazy warnings: unnecessary memory allocation. 2017-04-19 19:31:39 +01:00
Klaus Basan
d475246941 refs #935, add log. categories for vatlib 2017-04-19 19:31:00 +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
cbf69d9847 refs #921, remove UpdateInfo class (now distribution list) 2017-04-18 00:06:37 +01:00
Mathew Sutcliffe
5b5e80e67f refs #914 Ignore FSIP2PR packets. 2017-04-18 00:00:18 +01:00
Roland Winklmeier
ba1122533f Remove deprecated custom packet API from INetwork
Usage of this API was already discouraged, since all official
VATSIM packet handling should be in vatlib itself or for custom defined
packets in CNetworkVatlib. If a new custom packet needs to be added,
it should go into CNetworkVatlib directly and made available via normal
API methods to abstract the packets custom nature. The fact that
custom packets exist, should be kept internal. However, a debug message
is raised in case of an unknown custom packet in order to allow
detection and debugging.

refs #870
2017-04-17 23:57:37 +01:00
Klaus Basan
d4b2238dc6 Formatting 2017-02-24 00:20:11 +00:00
Klaus Basan
309d593607 refs #871, use const values for times 2017-02-24 00:19:07 +00:00
Klaus Basan
68dccbefa6 Formatting, renaming, Doxygen, minor UI adjustments 2017-02-24 00:18:51 +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
9ccec07c36 Process all pending NetworkVatlib tasks before logging off 2017-02-24 00:18:26 +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
bed1542fe4 Update externals
* vatlib 0.9.6
* Partially revert 3f975838b2
2017-02-24 00:08:47 +00:00
Klaus Basan
3fb374cc75 refs #849, signal when network data are received, for statistics
checks what data we support vs. data we have received
2017-01-10 23:46:54 +00:00
Klaus Basan
5f18707c9c Minor fixes: Formatting, string generation 2017-01-10 23:46:47 +00:00
Mathew Sutcliffe
7e85422da7 refs #837 CAircraftSituation altitude is part of its position. 2017-01-10 23:44:40 +00:00
Mathew Sutcliffe
544a1cca45 refs #837 Don't misuse coordinate height as ground elevation, use a separate member instead. 2017-01-10 23:44:31 +00:00
Klaus Basan
3f975838b2 refs #821, exchanged true/pressure altitude in CNetworkVatlib::onPilotPositionUpdate 2016-12-13 19:01:54 +01:00
Klaus Basan
add3aa5a74 Minor formatting/tweaks 2016-12-13 19:01:47 +01:00
Klaus Basan
224b534684 refs #816, set timestamp in text message 2016-12-13 19:01:20 +01:00
Klaus Basan
356e91c22f refs #789, fixed wrong geodetic height for onGround guessing
use null unit instead
2016-12-13 18:59:53 +01:00
Roland Winklmeier
dd0d9f1133 Fix cmd line arguments to allow passing client id and key pair
Before this commit, a user was able to pass a FSD key only via command
line arguments. However, changing the key itself is not enough. The key
always needs to be set together with its corresponding id.

refs #795
2016-12-06 09:46:48 +01:00
Klaus Basan
64fa88da72 refs #707, renamed to FSInn / FSInnData 2016-07-14 18:49:17 +02:00
Klaus Basan
19040af654 refs #704, moved VATSIM specific stuff to ns VATSIM/subdir 2016-07-14 18:49:11 +02:00