14 using namespace swift::misc::audio;
15 using namespace swift::misc::aviation;
16 using namespace swift::core::afv::clients;
18 namespace swift::core::context
24 Qt::QueuedConnection);
29 if (devices.
isEmpty()) {
return; }
45 m_registeredCallsigns.insert(
identifier, callsign);
56 for (
const CCallsign &cs : m_registeredCallsigns.values())
58 if (callsign == cs) {
return true; }
ContextMode
How to handle a given context.
The class providing facades (the contexts) for all DBus relevant operations.
Audio context base class.
void changedLocalAudioDevices(const swift::misc::audio::CAudioDeviceInfoList &devices)
Changed audio devices (e.g. device enabled/disable)
void registerAudioCallsign(const swift::misc::aviation::CCallsign &callsign, const swift::misc::CIdentifier &identifier)
Register an audio callsign (used with AFV)
void unRegisterDevices(const swift::misc::audio::CAudioDeviceInfoList &devices)
Unregister devices.
void registerDevices(const swift::misc::audio::CAudioDeviceInfoList &devices)
Register a device on a machine (for core/GUI it will return all known devices on all machines)
void unRegisterDevicesFor(const swift::misc::CIdentifier &identifier)
Remove all devices for identifier (i.e. "a machine")
void unRegisterAudioCallsign(const swift::misc::aviation::CCallsign &callsign, const swift::misc::CIdentifier &identifier)
Un-register an audio callsign (used with AFV)
misc::audio::CAudioDeviceInfoList getRegisteredDevices() const
All registered devices.
bool hasRegisteredAudioCallsign(const swift::misc::aviation::CCallsign &callsign) const
Un-register an audio callsign (used with AFV)
void onChangedLocalDevices(const swift::misc::audio::CAudioDeviceInfoList &devices)
Devices have been changed.
const CIdentifier & identifier() const
Get identifier.
Value object encapsulating information identifying a component of a modular distributed swift process...
bool isEmpty() const
Synonym for empty.
Value object encapsulating a list of audio devices.
void unRegisterDevices(const CAudioDeviceInfoList &devices)
Un-register devices.
void registerDevices(const CAudioDeviceInfoList &devices)
Register devices.
Value object encapsulating information of a callsign.
Free functions in swift::misc.