Commit Graph

703 Commits

Author SHA1 Message Date
Roland Winklmeier
c5a2136ebd refs #448 Use new METAR source in context and gui
Previously the metar source used to be the FSD connection. Since
all METARs are also available via a webservice, use this source
instead. This allows to retrieve and use METARs even if we are
not connected.
2015-11-19 20:57:48 +00:00
Roland Winklmeier
20ebb07723 refs #448 worker to download and decode VATSIM metars 2015-11-19 20:57:47 +00:00
Roland Winklmeier
e9c362f8ac Fix DBus signal signature in CContextNetworkProxy 2015-11-19 20:57:41 +00:00
Klaus Basan
d8e0ff83e6 refs #445, as discussed with #445 added receiver
(QObject:connec robust to threading issues)
2015-11-19 20:57:33 +00:00
Klaus Basan
938c0f3dc8 refs #445, settings for global network/readers values 2015-11-19 20:57:32 +00:00
Klaus Basan
c760f1d424 refs #445, encapsulated web service based reading in CWebDataReader
* the reader will be used in context, but can also be used standalone (ie mapping GUI) GUI
* adjustments in context/airspace as required
** for web reader
** livery
* base class for database based reading (via JSON/web)
* model data reader for models
2015-11-19 20:57:22 +00:00
Klaus Basan
4fcf9efab7 Some fixes and formatting
* CTime::switchUnit(CTimeUnit::hms());
* Coordinate canHandleIndex protected
* copyright
2015-11-19 20:57:19 +00:00
Mathew Sutcliffe
6688a87ece refs #297, #50 Added network setting for FSD wire text codec. 2015-11-19 20:51:32 +00:00
Mathew Sutcliffe
eb594e5397 refs #297 Doxygen. 2015-11-19 20:51:31 +00:00
Mathew Sutcliffe
3037daed1d refs #297 Removed old network settings. 2015-11-19 20:51:30 +00:00
Mathew Sutcliffe
bacf771a15 refs #297 Added new network settings. 2015-11-19 20:51:29 +00:00
Mathew Sutcliffe
d971b073b7 refs #297 Removed old simulator settings, which were not even used. 2015-11-19 20:51:28 +00:00
Mathew Sutcliffe
dace9e4da5 refs #297 Added CSettingsCache singleton derived class of CValueCache
for core settings, with context signal and slot for relay.
2015-11-19 20:51:27 +00:00
Michał Garapich
2a3dc05fb0 Use thread instance comparison to check whether the listener is set up
or not
2015-11-19 20:51:14 +00:00
Michał Garapich
15cc23a43c refs #442 Add CPluginManagerSimulator class 2015-11-19 20:51:11 +00:00
Michał Garapich
2c55fe2306 refs #442 Add CPluginManager class 2015-11-19 20:51:10 +00:00
Mathew Sutcliffe
d4d862927e refs #441 Rename COriginator to CIdentifier and rename COriginatorAware to CIdentifiable. 2015-06-06 18:02:16 +01:00
Klaus Basan
d603b28697 refs #438, plugin loading testing session + meeting results
* simulator common, many members now private (info -> read only)
* renamed printDirectPlayError -> logDirectPlayError
* (re)added ASSERT for FS9
* removed parent from listener (with parent no moveToThread)
* removed QFuture / QConcurrent as we have agreed to do
* unloading a plugin no longer automatically restarts all listeners
  this allows a user to set one particualar simulator in the GUI and ony wait for that
* stop listener from own signal
2015-06-04 23:44:50 +02:00
Klaus Basan
91bcba6a0c refs #438, added plug info to listeners
* listener signal can be directly used without mapping
* (during debugging) it is much easier to identify a listener
2015-06-03 16:26:49 +02:00
Klaus Basan
c6364f2bb0 refs #438, revised context plugin handling
* only 2 public interface functions start/stopSimulatorPlugin
* internal functions like starting the listeners private
* removed loading from settings, it does not make any sense as auto will find the running sim
* only 2 central functions in impl: un/loadSimulatorPlugin - rest is handled automatically from there
* graceful shutdown when runtime goes down
* utility function getSimulatorStatusEnum()
2015-06-03 16:26:39 +02:00
Klaus Basan
631814bcbd refs #438 minor tweaks
* removed unused include
* status to enum utility function
* disconnect signals in network context
2015-06-03 16:26:35 +02:00
Klaus Basan
d3d2d4eb63 refs #438, renamed file to simulatorplugininfolist 2015-06-02 20:22:46 +02:00
Roland Winklmeier
e4f2c9e88a Replace occurrences of CVariant::toCVariant() with CVariant::from() 2015-05-30 16:59:51 +02:00
Michał Garapich
28d2561a48 Fix duplicate line 2015-05-30 10:41:42 +02:00
Michał Garapich
23761fad13 refs #417 Remove ISimulator::asyncConnectTo() for x-plane 2015-05-29 22:03:06 +02:00
Michał Garapich
e3bb701d7b refs #417 Rename ISimulator::SimulatorStatus to SimulatorStatusFlag 2015-05-29 22:01:45 +02:00
Klaus Basan
76993ab394 Fixed some signature const / & issues causing malfunctions with DBus 2015-05-29 16:53:46 +02:00
Klaus Basan
94eb33d228 refs #431, infinite recursion in driver unload
* Trivial changes to avoid changedStatus signal when nothing changed
* Do not reload plugin when already loaded
2015-05-29 16:53:39 +02:00
Klaus Basan
d8d0eca3d8 refs #395, improved snapshot handling
* disabled sets distance and max.aircraft to 0
* fixed changed snapshot detection
* added rendering enabled to signal, only one function to decide (instead of duplicated logic)
2015-05-29 16:53:31 +02:00
Klaus Basan
718b10d9f6 refs #434, fixes issue described 2015-05-29 03:49:20 +02:00
Klaus Basan
6c06ff5d46 refs #432, adjusted originators 2015-05-29 03:49:16 +02:00
Klaus Basan
a66cd14031 refs #432, register and unregister functions in GUI
* removed old ping functions
* removed old notify functions, replace by new ones
2015-05-29 00:51:29 +02:00
Klaus Basan
e695987fa2 refs #432 Doxygen, formatting, added new file types in *.pro
Minor tweaks:
* GUI infobar minimum size
* toogle lock protected
* removed unused function
* ASSERT_X
* object name
2015-05-28 23:57:14 +02:00
Roland Winklmeier
0e52c3b4a8 Do not assert on external data 2015-05-28 22:46:29 +02:00
Roland Winklmeier
5e4fe4d5d7 refs #409 permanent plugin storage 2015-05-28 21:33:49 +02:00
Roland Winklmeier
2300895176 Let vatlib take an ephemeral voice port 2015-05-25 16:09:39 +02:00
Roland Winklmeier
141d256306 Fix CContextNetworkProxy::parseCommandLine calling wrong DBus method 2015-05-25 16:06:46 +02:00
Roland Winklmeier
ee0bfd62fa refs #428 Use COriginator instead of QString in internal API 2015-05-25 16:06:44 +02:00
Roland Winklmeier
a7d27c7234 refs #428 Move COriginator from Event into BlackMisc namespace 2015-05-23 18:51:14 +02:00
Klaus Basan
2d20f5bf9c refs #420, MS review
Fixes as described here https://dev.vatsim-germany.org/issues/420#note-5
2015-05-22 03:08:29 +02:00
Klaus Basan
880a954db9 refs #395, improvements for snapshot / restricted aircraft handling
* fixed isCurrentThreadCreatingThread and renamed to isCurrentThreadObjectThread (this check was never working), added 2 more thread checks
* changed remove aircraft function to return number of returned aircraft (like with the containers this allows to avoid unnecessary signals)
* removed unused function ps_recalculateRenderedAircraft() / SimulatorCommon
* using Queued airspaceAircraftSnapshot signal for binding (functor connect does not provide connection type)
* extened ASSERTs to check threads
* simulator: initial situation function with return value (success?)
* simulator: avoid unneccessary copy and provide correct rendered flag in add aircraft function
2015-05-22 03:08:16 +02:00
Roland Winklmeier
7bc7b72c68 Dont assert on external data 2015-05-21 01:37:39 +02:00
Klaus Basan
6d5c3d85a1 refs #420, refs #421, finetuning of FSX shutdown and crash detection 2015-05-18 12:56:08 +02:00
Klaus Basan
25c0cea575 refs #417, made the isConnected, isRunning, isPaused functions protected.
They should be only used with the drivers.
2015-05-17 23:56:29 +02:00
Klaus Basan
e53395412a refs #420, refs #417, removes canConnect as it is not consumed, just generated. 2015-05-17 20:29:34 +02:00
Klaus Basan
0ea07e28e0 refs #420, refs #417, allow to return combined simulator status, removed unneeded functions
This should be further improved with #417
2015-05-17 20:29:14 +02:00
Klaus Basan
104122023c Aircraft ICAO data should use ICAO code as attribute, this somehow got lost in the merge session, re-applied 2015-05-17 20:29:06 +02:00
Klaus Basan
c380b8df23 Fixes / improvements found during testing
* Redundant "simulatorStatusChanged" signal in proxy
* invokeMethod for timer
* removed redundant this->buildNavigator(1)
* Shortcut in GUI
* comment in variant
2015-05-16 03:26:37 +02:00
Klaus Basan
de43caf451 refs #420, refs #421 Adjusted FSX driver to emit correct status flags and unloading
* added unload function to disconnect signals / slots and simulator
* changed remote provider to return signal/slot connections to manually disconnect functor connects
* flag so pause can freeze or continue AI aircraft
* slightly changed unload behaviour in simulator context

Remark: Tested for FSX only
Solves #424 for FSX
2015-05-16 03:26:30 +02:00
Michał Garapich
8c46a3f6d4 refs #422 Take care of failed ISimulator::connectTo() 2015-05-12 23:13:47 +01:00