Commit Graph

850 Commits

Author SHA1 Message Date
Mathew Sutcliffe
a4ca75c5c7 refs #438 Use compare_exchange_strong to avoid spurious failures. 2015-06-06 18:02:15 +01:00
Klaus Basan
5faa0d144c refs #438, gcc fix std::atomic<InitState> 2015-06-05 02:29:44 +02:00
Klaus Basan
dbce887946 refs #438, allow to stop and reinit parser/matcher
* plugin changes, mapper/parser will be stopped.
  make sure worker is properly shutdown
* restarted FS/FSX. Allow to reset mapper/parser data from store
2015-06-05 01:35:23 +02: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
e822c9f7d2 Using first or default #414 2015-06-03 16:26:59 +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
8e56a14caf refs #438, allow to cancel parser
* added flag for parsing success
* unload driver cancels parsing
* assert for invoke
* using waitForFinished
2015-06-03 16:25:53 +02:00
Klaus Basan
e861eb7bcd refs #438, adjusted plugin info
* removed ==
* auto info object
* removed unused .h files
2015-06-02 20:22:49 +02:00
Klaus Basan
d3d2d4eb63 refs #438, renamed file to simulatorplugininfolist 2015-06-02 20:22:46 +02:00
Mathew Sutcliffe
732903b243 refs #439 Adjust noexcept specification of worker methods commonly used in destructors. 2015-06-02 18:54:08 +01:00
Mathew Sutcliffe
17c1742bec refs #439 CWorkerBase::waitForFinished(). 2015-06-02 18:54:08 +01:00
Mathew Sutcliffe
d8091df47d refs #414 Efficient findFirstBy methods in CRangeBase. 2015-06-02 18:53:33 +01:00
Mathew Sutcliffe
ada03ee513 refs #434 CPropertyIndexVariantMap: removed operator templates and replaced CVariant comparison operators with a named method, matches(). 2015-06-01 21:35:00 +01:00
Mathew Sutcliffe
e76015004b refs #434 Removed CVariant comparison operator templates. 2015-06-01 21:34:59 +01:00
Mathew Sutcliffe
8db8fdef94 refs #437 Adjust static assert, caught one more case of CVariant containing CVariant. 2015-06-01 18:00:16 +01:00
Mathew Sutcliffe
6a2af9d387 Fixed broken include guard, detected by clang. 2015-05-31 21:00:16 +01:00
Mathew Sutcliffe
d4c5dff17a qint32 -> int replacements to make implementations consistent with headers. 2015-05-31 17:27:05 +01:00
Mathew Sutcliffe
90d7771ca3 No \file doxygen command in cpp file. 2015-05-31 17:23:23 +01:00
Mathew Sutcliffe
62418931b0 Removed Mixin::MetaTypeAndQList. 2015-05-31 17:22:24 +01:00
Mathew Sutcliffe
47cac09e81 refs #437 Removed toQVariant and convertFromQVariant. 2015-05-31 17:21:17 +01:00
Klaus Basan
e04ada3a7c refs #437, remove convertFromCVariant 2015-05-31 01:31:09 +02:00
Roland Winklmeier
b6e9d6f0d1 Static assert in CVariant::from to if value type is CVariant 2015-05-30 18:06:19 +02:00
Roland Winklmeier
e4f2c9e88a Replace occurrences of CVariant::toCVariant() with CVariant::from() 2015-05-30 16:59:51 +02:00
Klaus Basan
ff87b3e9ae Application icon
http://doc.qt.io/qt-4.8/appicon.html
2015-05-29 16:53:43 +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
a62cf48e18 refs #432 Originator aware utility class 2015-05-29 00:51:45 +02:00
Klaus Basan
73164b2ffc refs #428, refs #432 some changes to COriginator / containers
* originator, machine name, timestamp based, connect with QObject's &QObject::objectNameChanged
* list
2015-05-28 23:57:05 +02:00
Roland Winklmeier
4db7e558bf refs #430 First version of a file logger 2015-05-28 22:46:35 +02:00
Roland Winklmeier
46cff6bce8 Add doxygen note to CWorker 2015-05-28 22:46:32 +02:00
Roland Winklmeier
74dd50b787 refs #409 Remove obsolete code 2015-05-28 22:46:26 +02:00
Roland Winklmeier
ddb02608e0 refs #409 aircraft model matcher 2015-05-28 21:34:04 +02:00
Roland Winklmeier
9e274badf1 refs #409 Rename ISimulatorModelMappings to IModelMappingsProvider
The reason is that the previous name sounded more like a value
object. But instead it does read the mappings from somwhere.
2015-05-28 21:33:56 +02:00
Roland Winklmeier
6275e06b4f refs #409 CAircraftCfgParser to parse aircraft.cfg files
Previously value class CAircraftCfgEntriesList was in charge of
parsing the cfg files. Moving it into its own class breaks up some
coupling issues.
2015-05-28 21:33:54 +02:00
Roland Winklmeier
5e4fe4d5d7 refs #409 permanent plugin storage 2015-05-28 21:33:49 +02:00
Roland Winklmeier
f27d003f61 refs #409 Read FS9 installation directory from registry 2015-05-25 20:43:00 +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
136587f564 refs #428 Add additional COriginator constructors and methods
One constructor will accept a QString argument directly and use
it as the originator name. The other one accepting the a pointer
to QObject will use QObject's objectName.
2015-05-25 16:06:43 +02:00
Roland Winklmeier
a7d27c7234 refs #428 Move COriginator from Event into BlackMisc namespace 2015-05-23 18:51:14 +02:00
Klaus Basan
c885c6d933 No hashing for some callsign attributes, avoid issues in maps 2015-05-22 03:08:22 +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
Klaus Basan
bad3ed3ea8 refs #415, mixin style lists 2015-05-18 20:33:34 +02:00
Klaus Basan
2d506a4962 refs #426 unmarshalling fix 2015-05-17 20:29:10 +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
257430bbbe Fixed missing metadata registrations 2015-05-16 18:35:27 +02:00
Klaus Basan
779a2987dc Reverted volume to int, this somehow got lost in the merge session 2015-05-16 18:35:24 +02:00
Klaus Basan
d78f38b672 More tests for DBus (samples DBus) 2015-05-16 18:34:50 +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
Mathew Sutcliffe
eeb0d17dcb Fixed failing test by adding calls to CUser::derivedHomeBaseFromCallsign which were missing. 2015-05-13 02:50:27 +01:00
Mathew Sutcliffe
a5529516a8 Fixed Jenkins GCC protected destructor error. 2015-05-13 01:41:04 +01:00