Klaus Basan
53ed37d7fd
Changed shutdown order in facade
...
* audio first, with disconnect
* then network
rational: logoff from the network first
2020-06-12 18:42:42 +01:00
Klaus Basan
08c004e69b
[AFV] Connect the network status change signal on both sides (core+UI),
...
as both sides can have independent audio (AFV) clients
This solves the issue that users have to restart audio on a "remote" swift GUI
2020-01-25 16:55:19 +00:00
Klaus Basan
ecf5d45993
Use qint64 for times as all QTimer values are qint64 (avoid warnings)
2020-01-24 21:11:57 +01:00
Mat Sutcliffe
4a0d8e9864
Fixed most Qt 5.14 deprecation warnings
2020-01-07 19:57:25 +00:00
Klaus Basan
383352f79c
[AFV] Ref T739, remove implementation details from IContextAudio to keep the DBus interface "pure"
...
* This was an approach to avoid registration of "local signals"
* that part DID NOT work as planned, as all object's signals are registered
* the refactoring itself nevertheless is NOT a bad idea and has been kept
* as the audio context has this special "concept" and CAfvClient can run on both sides (proxy AND impl.side)
2019-10-18 10:36:23 +02:00
Klaus Basan
f69edff5c0
Ref T730, context shutdown
...
* virtual function for "about to shutdown"
* graceful shutdown
2019-10-11 19:00:43 +01:00
Klaus Basan
401c89aa63
Ref T730, style and log messages
2019-10-11 19:00:42 +01:00
Klaus Basan
f09e99333f
Ref T739, changed core modes which no longer make sense like "audio in core"
2019-10-11 19:00:37 +01:00
Klaus Basan
66968ff3a5
Ref T739, style
2019-10-11 19:00:36 +01:00
Klaus Basan
6071e77b7f
Ref T730, removed voice room related funcions from audio context
2019-10-11 18:59:59 +01:00
Roland Rossgotterer
b5a2f2ad13
AFV initial commit
2019-10-11 18:58:47 +01:00
Klaus Basan
d9948af103
Ref T609, fixed signal/slot connection of cross context hookup
...
* audio can be local or remote special case
* so we have to hookup on core or remote side depending on that
2019-09-16 22:41:24 +01:00
Klaus Basan
03096f8f7e
Ref T609, adjusted audio context to support changed COM units and muted transmission if muted in COM unit
2019-09-16 22:41:08 +01:00
Klaus Basan
0767deb41d
Ref T701, IAircraftModelSetProvider 1st version
...
* added to matcher
* and simulator context
* in facade changed init order, as we need getCContextOwnAircraft() / getCContextSimulator()
Remark: Need 2 contexts is not ideal, but accepted for the moment
2019-09-16 22:40:26 +01:00
Klaus Basan
71e09b008f
Ref T681, renamed to rememberElevationAndSimulatorCG and style
2019-09-16 22:38:08 +01:00
Mat Sutcliffe
e9a4c49d68
Ref T547 Update license masthead in all source code files.
2019-02-22 20:36:43 +00:00
Mat Sutcliffe
fe7a45afcf
Ref T516 Update CStatusMessage call sites to use new syntax.
2019-02-22 20:35:51 +00:00
Klaus Basan
73e566a76e
ChangedModel in ownAircraft context was not really used.
...
However, there are cases where the "own model" is changed via own model context, mostly in the emulated driver.
* made changedModel -> ps_changedModel a "private" signal
* connected it to simulator context
* used identifier to avoid roundtrips
So the "ownAircraftModelChanged" signal of the simulator context is to be used
2019-02-22 20:35:45 +00:00
Klaus Basan
d669f7c370
Style
2019-02-22 20:35:43 +00:00
Mat Sutcliffe
225ff81252
Ref T485 Adjust CLogMessage and CStatusMessage call sites to use the new API.
2019-02-22 20:34:55 +00:00
Klaus Basan
7788410a8d
Ref T412, Ref T227, cross context signals
2018-11-04 17:42:47 +01:00
Roland Winklmeier
28302feea0
Remove unnecessary updating of voice room callsigns
...
The voice room callsign will be set from the current context values right
before a new connection is made. Therefore all updates in between are not
necessary and can be removed.
ref T354
2018-10-03 03:03:40 +02:00
Klaus Basan
5c165c4fe7
Ref T373, style
2018-09-25 03:47:46 +02:00
Klaus Basan
4ced6b4f97
Formatting
2018-05-18 00:24:58 +02:00
Klaus Basan
f94fb8e7fb
Use Qt::QueuedConnection for cross context (xCtx) to decouple
2018-05-08 16:06:41 +02:00
Klaus Basan
dcc348c9d9
Ref T260, correctly set simulation environment provider
2018-05-08 16:06:34 +02:00
Klaus Basan
c1ee159ff9
Ref T232, some formatting
...
* made "private slots" -> "slots"
* cross context slots marked with "xCtx" prefix
2018-01-30 20:30:14 +01:00
Klaus Basan
8bb47a555c
Formatting comments and "private slots" -> "private"
2018-01-15 22:50:26 +01:00
Klaus Basan
d2b84af1b6
Ref T192, use BLACK_VERIFY
2017-12-21 19:47:00 +01:00
Klaus Basan
9cb06c4d56
Ref T192, DBus utility functions, Service name empty for P2P
2017-12-21 19:46:51 +01:00
Klaus Basan
d01893a18a
Ref T192, formatting
2017-12-21 19:45:32 +01:00
Klaus Basan
22c34f4e23
Ref T189, "private slot" -> "private"
2017-12-21 19:44:52 +01:00
Mathew Sutcliffe
0cf6034a29
Don't use member access notation to call static methods.
2017-10-10 00:56:54 +01:00
Klaus Basan
988a4791ab
Ref T167, improved tryToReconnectWithDBus
...
* use exit to abort (close might fail)
* core facade init() now private
* CCoreFacade::getDBusAddress
* display DBusAddress
2017-10-10 00:27:14 +01:00
Klaus Basan
ed51d3c5dd
Ref T167, allow to re-init facade
...
(a first approach to reconnect with DBus core)
* Changes are supposed to be backward compliant. Maybe re-init fails, but there should be no regression for the 1st init
* keep config as member to allow restart
* disconnect from DBus before connecting (allows reconnect)
* delete contexts if they are re-created
* function CCoreFacade::tryToReconnectWithDBus
2017-10-10 00:27:06 +01:00
Klaus Basan
9748b5a442
Formatting, comments, Doxygen, minor tweaks
2017-10-10 00:27:03 +01:00
Klaus Basan
c5381b01c6
Ref T166, fixed parse command line: audio context can be empty
2017-09-29 23:26:23 +02:00
Klaus Basan
71fa0fc7b8
Ref T111, handle SELCAL in simulator context (fix, was missing so far)
2017-09-24 19:51:59 +01:00
Klaus Basan
d918ee4cfd
refs #883 , class for storing the launcher state
...
* removed DBus setting (causing crash as it was shared among launcher/pilot client, so using cache)
* also remember UI values
2017-02-24 15:21:54 +00:00
Klaus Basan
17b9d95a8a
refs #849 , connect cross context signals to update statistics
2017-01-10 23:47:03 +00:00
Klaus Basan
15020b2d5f
refs #848 , parse command line in simulator context
...
* forward to driver if applicable
* hook up with facade to receive command lines
2017-01-10 23:46:20 +00:00
Klaus Basan
ec5bbc37ad
refs #801 , shutdown flag in runtime
...
(can be used to skip functions/tasks no longer make sense during shutdown)
2016-12-13 19:00:03 +01:00
Klaus Basan
72fdf7c5bc
refs #793 , added function to reset model (after it was manually changed)
...
* located in context since context owns matcher object
* call from GUI
* some code formatting to indicate the cross simulator slots connected in runtime
refs #780
2016-12-06 09:34:56 +01:00
Klaus Basan
d782839cb8
refs #703 , moved context to subdir
...
* ns: Context
* adjusted using classes
2016-07-14 18:49:08 +02:00
Klaus Basan
83eca195a8
refs #702 , access to reverse lookup log messages per callsign
...
* added functions in airspace / context
* allow to retrieve "aircraft in range" callsigns
2016-07-14 18:49:05 +02:00
Mathew Sutcliffe
9bef6854ca
Caches: rename "get" to "getThreadLocal" and rename "getCopy" to get.
2016-06-08 18:21:01 +02:00
Roland Winklmeier
933271b828
Fix BlackCore header includes
...
* Include only what is used
* Use forward declaration when possible
* Sorted includes
refs #598
2016-05-13 17:06:00 +02:00
Mathew Sutcliffe
d7a63c15d4
refs #644 Move initial settings load to CApplication::start.
2016-04-27 18:30:28 +01:00
Klaus Basan
96913c6dc1
refs #485 , load settings in core facade
...
Idea: settings will be automatically available
2016-03-18 01:08:18 +00:00
Klaus Basan
d9aac6427b
refs #485 , renamed (CContextRuntime) to CCoreFacade
...
https://dev.vatsim-germany.org/issues/485#note-6
2016-03-18 01:07:58 +00:00