6#include <QDBusConnection>
7#include <QLatin1String>
16using namespace swift::misc::audio;
17using namespace swift::misc::network;
18using namespace swift::misc::aviation;
19using namespace swift::core::afv::clients;
21namespace swift::core::context
29 this->relaySignals(serviceName, connection);
35 void CContextAudioProxy::unitTestRelaySignals()
49 m_dBusInterface->callDBus(
QLatin1String(
"registerDevices"), devices);
58 m_dBusInterface->callDBus(
QLatin1String(
"unRegisterDevices"), devices);
78 return m_dBusInterface->callDBusRet<
bool>(
QLatin1String(
"hasRegisteredAudioCallsign"), callsign);
ContextMode
How to handle a given context.
@ Remote
context runs in a different process.
void changedLocalAudioDevices(const swift::misc::audio::CAudioDeviceInfoList &devices)
Changed audio devices (e.g. device enabled/disable).
CContextAudioBase(CCoreFacadeConfig::ContextMode mode, CCoreFacade *runtime)
Constructor.
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 unRegisterDevices(const swift::misc::audio::CAudioDeviceInfoList &devices)
Unregister devices.
bool hasRegisteredAudioCallsign(const swift::misc::aviation::CCallsign &callsign) const
Un-register an audio callsign (used with AFV).
CContextAudioProxy(CCoreFacadeConfig::ContextMode mode, CCoreFacade *runtime)
Contructor.
void registerAudioCallsign(const swift::misc::aviation::CCallsign &callsign, const swift::misc::CIdentifier &identifier)
Register an audio callsign (used with AFV).
swift::misc::audio::CAudioDeviceInfoList getRegisteredDevices() const
All registered devices.
void unRegisterAudioCallsign(const swift::misc::aviation::CCallsign &callsign, const swift::misc::CIdentifier &identifier)
Un-register an audio callsign (used with AFV).
void unRegisterDevicesFor(const swift::misc::CIdentifier &identifier)
Remove all devices for identifier (i.e. "a machine").
void onChangedLocalDevices(const swift::misc::audio::CAudioDeviceInfoList &devices)
Devices have been changed.
static const QString & InterfaceName()
Interface name.
static const QString & ObjectPath()
Object path.
void voiceClientFailure(const swift::misc::CStatusMessage &msg)
Authentication failed, ....
void relayBaseClassSignals(const QString &serviceName, QDBusConnection &connection, const QString &objectPath, const QString &interfaceName)
Relay signals from this class.
static const QString & coreServiceName()
Default service name.
Used for hand written interface based on virtual methods.
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.
Streamable status message, e.g.
Value object encapsulating a list of audio devices.
Value object encapsulating information of a callsign.
Free functions in swift::misc.
QDBusConnection sessionBus()
QMetaObject::Connection connect(const QObject *sender, PointerToMemberFunction signal, Functor functor)