Commit Graph

1218 Commits

Author SHA1 Message Date
Roland Winklmeier
14e9e01b90 Fix reading settings with factory created object.
Before we had factory methods, the allocated CContextSettings object
was reused. The temporary one can be deleted.
2014-06-15 19:02:46 +02:00
Mathew Sutcliffe
9d087dba44 refs #246 fixed a GCC warning 2014-06-14 21:56:44 +01:00
Mathew Sutcliffe
9b27b93de0 refs #246 refactored construction of all remaining contexts into factory methods 2014-06-14 16:52:52 +01:00
Mathew Sutcliffe
a6cd44be8d refs #246 added ISimulator::aircraftModelChanged signal which can be sent via the contexts to CAirspaceMonitor, which needs the model when sending FSIPI(R) custom packets 2014-06-14 16:52:50 +01:00
Mathew Sutcliffe
2e23f2fd8d refs #246 refactored FSIPI(R) custom packet encode/decode into INetwork 2014-06-14 16:52:50 +01:00
Mathew Sutcliffe
46e28a64dd refs #246 now context_network_atc.cpp is so short that it should be merged into context_network_impl.cpp 2014-06-14 16:52:49 +01:00
Mathew Sutcliffe
d2bb36a322 refs #246 moved network context logic concerned with monitoring other airspace entities (aircraft, ATC) into a support class to which the context can delegate,
following the separation of concerns principle and making class invariants easier to identify and verify
2014-06-14 16:52:48 +01:00
Mathew Sutcliffe
837964fe20 refs #246 fixed mistake 2014-06-14 16:52:48 +01:00
Mathew Sutcliffe
8dccc8d792 refs #246 renamed host to server to avoid ambiguity 2014-06-14 16:52:47 +01:00
Mathew Sutcliffe
ab72dce8b5 refs #246 removed unused private methods 2014-06-14 16:52:47 +01:00
Mathew Sutcliffe
cdca7343e4 refs #246 refactored construction of the network context into a factory method 2014-06-14 16:52:46 +01:00
Mathew Sutcliffe
695eb5c41c refs #246 reordered CContextNetwork constructor to keep related things close together 2014-06-14 16:52:45 +01:00
Mathew Sutcliffe
ac80bce171 refs #246 added comments to highlight issues of dependencies and large number of scenarios 2014-06-14 16:52:45 +01:00
Mathew Sutcliffe
81c6805822 refs #246 refactored isSlotLogForNetworkEnabled conditionals into CRuntime 2014-06-14 16:52:44 +01:00
Mathew Sutcliffe
26c270c9a6 refs #246 passing c++11 brace-initialized QStringList to CRuntime::logSlot 2014-06-14 16:52:44 +01:00
Mathew Sutcliffe
cdd0ae6324 refs #246 refactor setting of timer intervals 2014-06-14 16:52:43 +01:00
Mathew Sutcliffe
6ee14128bd refs #246 style: using c++11 brace initialization of QStringList 2014-06-14 16:52:42 +01:00
Mathew Sutcliffe
415e0d6542 refs #246 refactor validation flow in CContextNetwork::connectToNetwork 2014-06-14 16:52:42 +01:00
Mathew Sutcliffe
c479b7f6e3 refs #246 style: remove "query" where it makes no sense 2014-06-14 16:52:41 +01:00
Mathew Sutcliffe
ef1c5d0d77 refs #246 style: rename package to packet 2014-06-14 16:52:41 +01:00
Klaus Basan
c8bf23bf86 Small fixes in init voice context, found during "merge testing" 2014-06-13 13:51:06 +02:00
Roland Winklmeier
01f6b9c156 Add method in ISimulator to get aircraft model
Route AircraftModel requests from Context Simulator to ISimulator

refs #235
2014-06-13 01:01:16 +02:00
Klaus Basan
2325881c91 Finetuning
* Improved reloading of booked stations
* Improved error reporting in data file reader
* Finetuning of network context, mostly reg. VATSIM data file
2014-06-09 14:44:29 +02:00
Klaus Basan
3ae93190ae Round trip protection as described in (4)
https://dev.vatsim-germany.org/boards/22/topics/1792?r=1801#message-1801

* Individual context id
* Allows to connect >1 GUIs with core, works for cockpit so far
2014-06-09 14:44:26 +02:00
Klaus Basan
251fe70dc9 Minor Tweaks
* renamed methods in aircraft class, new helper method
* renamed method in aircraft list
* renamed method in datafile reader
2014-06-09 14:44:25 +02:00
Klaus Basan
63b0fac72f Some bugfixes
* Missing registration
* wrong frequency in text messages, also some minor tweaks in text message
2014-06-09 14:44:23 +02:00
Klaus Basan
dac556c6e9 refs #262, fix update of aircraft position
Described here (3): https://dev.vatsim-germany.org/boards/22/topics/1792?r=1801#message-1801

* Also renamed: setOwnAircraftAvionics -> setOwnCockpit to be consistent
* Removed outdated methods
2014-06-09 14:44:19 +02:00
Klaus Basan
0a7be12efa Fixes around audio "on remote computer"
* Better options to debug
* Fixes as of n2, https://dev.vatsim-germany.org/boards/22/topics/1792?r=1802#message-1802
* Doxygen
2014-06-09 14:44:14 +02:00
Klaus Basan
c3f7a7c179 Some fixes found during testing with remote black core (different computer)
* Allow anonymous access for P2P
* Fixed sound settings flags, if empty string is saved in settings
* Fixed metadata registration
2014-06-09 14:44:13 +02:00
Klaus Basan
cafc3f37f6 refs #259, parsing VATSIM files in background 2014-06-09 14:44:11 +02:00
Klaus Basan
76c2f0a5c4 refs #257, hooking up simulator and application/network context to display
* text messages
* status messages
2014-06-09 14:44:08 +02:00
Klaus Basan
db08e409e0 refs #220, fixed issue with voice room resolution (not required for changed position / situation), some refactoring 2014-06-09 14:44:06 +02:00
Klaus Basan
137bded355 refs #220, refs #219 required changes in network context
* load flight plan method
* removed public getOwnAircraft method refs #242 -> own aircraft context
* Improved handling of selected stations
* Some debug info for #refs 255, will be removed when solved
2014-06-09 14:44:05 +02:00
Klaus Basan
2b2f1af4e6 refs #220, refs #251 fixes in voice vatlib
* fixed Disconnected status
* room connected checking low-level, not on objects (fail safe)
* Remark: Still containing debug information for refs #255 , will be removed
2014-06-09 14:44:01 +02:00
Klaus Basan
6344923725 refs #220, improved voice room handling by providing join/left flag and connection handling 2014-06-09 14:43:59 +02:00
Klaus Basan
58e97b6958 refs #242, refs #257 changes for extended simulator methods and renaming one method 2014-06-09 14:43:58 +02:00
Klaus Basan
226edda23b refs #219, load flight plan
* fixed issue with parsing, only default locale is used. Now user's local possible
* allow to load FP for other callsigns as well (voice capabilities)
* Improved handling of CTime, inclusive bug fixes and time formatting
* Max. lengths for FP fields as const value (so we can change it if required)
* Load FP from GUI component
* Samples for PQ classes
* Adjusted depending classes (e.g. client)
2014-06-09 14:43:57 +02:00
Klaus Basan
e823f87bab refs #258, notification sound for voice rooms in context 2014-06-09 14:43:54 +02:00
Klaus Basan
21b88b373e refs #258, settings for voice room notifications 2014-06-09 14:43:50 +02:00
Klaus Basan
035575870b refs #242, allows to change FSX cockpit from context
* Data definitions for FSX events
* BCD conversion for COM and transponder
* Update Cockpit method in context
* Renamed setOwnAircraft -> updateOwnAircraftFromSim
2014-06-09 14:43:35 +02:00
Klaus Basan
ba217fed57 refs #242, fixed slot logging 2014-06-09 14:43:33 +02:00
Klaus Basan
1bb4c3120b Formatting, comments, minor tweaks, typos, Doxygen 2014-06-09 14:43:31 +02:00
Klaus Basan
9c5726dc13 refs #23, anticipating aircraft ICAO code from VATSIM data file
* helper methods
* renamed methods
2014-06-09 14:43:23 +02:00
Klaus Basan
a4e5e22adc refs #242, some fixes in voice vatlib
* voiceroom connection status only changed when really connected, not when trying to
* exception method changed so it sends proper status messages
* empty member callsign list when voice room is left (also in the paranoia section)
2014-06-09 14:43:19 +02:00
Klaus Basan
f2888eefbe refs #242, adjusted context simulator, updating to aircraft context 2014-06-09 14:43:15 +02:00
Klaus Basan
b6afcefd59 refs #242, adjusted network context
* some formatting
* own aircraft data used for voice room member resolution
2014-06-09 14:43:13 +02:00
Klaus Basan
421cd61195 refs #246, removed own aircraft from context
* refactored method set voice rooms
* signal changed voice rooms
2014-06-09 14:43:08 +02:00
Klaus Basan
1166bcd053 refs #246, own context for aircraft 2014-06-09 14:43:05 +02:00
Roland Winklmeier
83be80eea1 Fix missing bank and pitch interpolation
The multiplikation with -1 should not be required. Needs
to be checked. This is a workaround for the time being to
correct pitch/bank.
2014-06-09 14:42:57 +02:00
Roland Winklmeier
8341ef54d2 Remove aircrafts with time of latest update greater than 15 seks
refs #229
2014-06-09 14:42:52 +02:00