Commit Graph

866 Commits

Author SHA1 Message Date
Roland Winklmeier
993a0a8839 Fix error due to two consecutive implicit conversions
Credits to Mat for finding the standard defect and explane it.
2014-08-05 19:01:40 +02:00
Roland Winklmeier
ff65f3f39d refs #255 update context and sample to use the new IVoiceChannel API 2014-08-03 16:09:40 +02:00
Roland Winklmeier
c05b8808b8 refs #255 move voice channel handling from CVoiceVatlib into a dedicated class CVoiceChannel 2014-08-03 16:09:39 +02:00
Roland Winklmeier
c8f41beea9 refs #255 Use QMutex and std::atomic instead of QReadWriteLock 2014-08-03 16:09:36 +02:00
Roland Winklmeier
94e0c61e97 refs #255 Rename m_voice to m_vatlib in CVoiceVatlib 2014-08-03 16:08:45 +02:00
Roland Winklmeier
ca253c00b6 refs #255 Using shared lockable vatlib pointer in CVoiceVatlib 2014-08-03 16:07:33 +02:00
Roland Winklmeier
6f661339a4 refs #53 Remove all old CMake files 2014-08-01 12:12:06 +02:00
Klaus Basan
3cf42b218a refs #306, refs #282 Thread safety of readers
In the same step:
* renaming private slots ps_xy
* doxygen
* removed outdated debug messages
2014-07-27 16:10:27 +02:00
Mathew Sutcliffe
a4b317b100 refs #290 using a CRange of iterator adaptors in implementating the tertiary predicate-based methods of the derived containers,
but preserving the return-by-copy for API stability
2014-07-13 20:30:22 +01:00
Mathew Sutcliffe
e23e418797 incidental refactoring: simplify some predicates by templating their call operators 2014-07-13 00:45:22 +01:00
Mathew Sutcliffe
5c1b608391 refs #287 Doxygen "threadsafe" alias command 2014-07-11 17:53:45 +01:00
Klaus Basan
7b546c7dba Fixes 2,4,6 refs #287
https://dev.vatsim-germany.org/issues/287#note-14
2014-07-11 15:12:44 +02:00
Klaus Basan
fde5139044 refs #289, time sync values based on settings 2014-07-11 01:21:26 +02:00
Klaus Basan
b45279857f Formatting, renaming 2014-07-11 01:21:24 +02:00
Klaus Basan
851bb70a68 refs #289, added methods for time sync in context, plugin
Remark: in the same step added methods for paused simulator
2014-07-11 01:21:04 +02:00
Klaus Basan
cd88c79f7c comparing just on name, used with plugin checks 2014-07-11 01:20:55 +02:00
Klaus Basan
ecb2a6ff66 Doxygen fixes, improvements 2014-07-11 01:20:50 +02:00
Klaus Basan
161aec96a7 Prefix ps_ for some private slots
https://dev.vatsim-germany.org/boards/22/topics/1914?r=1920#message-1920
2014-07-11 01:20:45 +02:00
Klaus Basan
b949a2635b Doxygen fixes 2014-07-11 01:20:33 +02:00
Klaus Basan
3729721fc3 refs #289, method bodys for time sync as preparation
simulator can send messages to contexts
2014-07-11 01:20:29 +02:00
Klaus Basan
76bc6f0efc Formatting, tweaks 2014-07-11 01:20:21 +02:00
Klaus Basan
bbdb8a293f refs #291, getAirportsInRange for simulator, simulator context 2014-07-11 01:20:05 +02:00
Klaus Basan
e8baa37b9d Formatting, housekeeping 2014-07-11 01:20:00 +02:00
Klaus Basan
d9a1c0cc8c refs #287 Thread safety, fix "memory access violation"
* some improved comments and information
* QMetaObject::invokeMethod in tool.cpp as thread safe invocation
* common base class for threaded readers
* removed event class, using QMetaObject::invoke instead for forcing calls in main event loop
* stop methods for readers, as used for graceful shutdown (preparing for thread safe destruction of objects)
* graceful shutdown for network context
* calls in tool now via inkoke for thread safety (only thread safe methods called directly)
2014-07-11 01:15:18 +02:00
Klaus Basan
8d08417f67 refs #237, load first plugin if settings do not match, provide a warning if no plugin is loaded 2014-06-28 20:01:53 +02:00
Klaus Basan
ef0877b116 refs #237, fixed typo and naming (driver->plugin) 2014-06-28 18:02:20 +02:00
Klaus Basan
8ad0d4bb68 refs #273, fixed delegation to simulator settings 2014-06-28 18:02:19 +02:00
Klaus Basan
88c656ee61 refs #273, runtime context
* added send status message for convenience
* order in graceful shutdown
2014-06-28 18:02:17 +02:00
Klaus Basan
e17157e963 refs #273, simulator context
* fixed loading of plugins
* sorting filenames, and plugin names
* better status messages when loading plugins
2014-06-28 18:02:16 +02:00
Klaus Basan
2a9f3d6039 Tweaks
* check if parent is null
* comments
* icon in column
* nullptr check in runtime based component
2014-06-28 18:02:14 +02:00
Klaus Basan
4694c23f87 refs #273, added support for loading plugin from settings 2014-06-28 18:02:10 +02:00
Klaus Basan
42db1fe9ae refs #273, added settings for simulator
* added class
* adjusted settings context
* adjusted "global" methods as register metadata
* improved settings utility
* renamed "settingsallclasses" as settings can also be in other namespaces, settingsallclasses now in core
2014-06-28 18:01:55 +02:00
Klaus Basan
abd2d6d86d Some fixes / tweaks / Doxygen:
* helper method to detect disconnected state
* clear ATC info if disconnected or not available
* unit test for "finders"
* added Doxygen file
* formatting frequency in text message tabs
2014-06-28 18:01:54 +02:00
Mathew Sutcliffe
e2c37b2f16 fixed foolish mistake 2014-06-26 23:30:04 +01:00
Mathew Sutcliffe
997eb17f96 paranoid check in case of recurrence of race described in refs #270 2014-06-25 23:18:11 +01:00
Mathew Sutcliffe
fede3fc4c7 refs #270 don't call CRuntime::gracefulShutdown from a different thread;
connect it to the QCoreApplication::aboutToQuit signal instead
2014-06-25 23:18:10 +01:00
Klaus Basan
42d8c53290 Minor tweaks,
* formatting
* Startup screen tool window removed (as requested by RW)
2014-06-23 01:26:29 +02:00
Klaus Basan
5da3f55886 refs #277, removed QAudioOutput as discussed
(was used to work around a bug with muted sound)
2014-06-23 01:19:47 +02:00
Mathew Sutcliffe
e7c14e2c1c moved enum metadata registration out of static methods of QObject-derived classes, which fixes #280 (GCC linker errors) 2014-06-23 01:19:42 +02:00
Klaus Basan
97b8ee8c32 refs #277, slow auio init
* fixed QHostInfo::localHostName()
* move to BlackMisc, as it can be used elsewhere
* temp. change, moved methods in body until refs #278, #277 is fixed/ resolved
2014-06-23 01:19:38 +02:00
Klaus Basan
2ecef24c91 Register ENUMs in ISimulator like it is done in IVoice 2014-06-23 01:19:37 +02:00
Klaus Basan
ca8cbc4a0a refs #274, pending connection state detection and disallowing further connection states while pending 2014-06-23 01:19:31 +02:00
Klaus Basan
427dd83a6a Doxygen, formatting, tweaks 2014-06-23 01:19:30 +02:00
Klaus Basan
a867a490e6 Improved details on the readers, regarding timestamp 2014-06-23 01:19:29 +02:00
Klaus Basan
568fc46003 Fix after merge with latest master, renamed method 2014-06-23 01:19:25 +02:00
Mathew Sutcliffe
072667b3b4 fixes #269 added parameter to CDBusServer constructor to choose a different service name,
allows two servers running on the same bus, needed when running xbus and sample_blackcore
2014-06-17 21:20:15 +01:00
Roland Winklmeier
2e485a324c Move settings loading into factory method, since read should not be called
by DBus proxy.
2014-06-15 20:24:40 +02:00
Roland Winklmeier
a131e8c91c Move IKeyboard and subclasses to new library BlackInput
refs #256
2014-06-15 19:22:59 +02:00
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