swift
Loading...
Searching...
No Matches
contextaudioimpl.h
Go to the documentation of this file.
1// SPDX-FileCopyrightText: Copyright (C) 2013 swift Project Community / Contributors
2// SPDX-License-Identifier: GPL-3.0-or-later OR LicenseRef-swift-pilot-client-1
3
5
6#ifndef SWIFT_CORE_CONTEXT_CONTEXTAUDIO_IMPL_H
7#define SWIFT_CORE_CONTEXT_CONTEXTAUDIO_IMPL_H
8
9#include <QMap>
10#include <QString>
11
16
17// clazy:excludeall=const-signal-or-slot
18
19namespace swift::core
20{
21 class CCoreFacade;
22
23 namespace context
24 {
27 {
30
31 friend class swift::core::CCoreFacade;
32 friend class IContextAudio;
33
34 public slots:
37
40
43
46
49 const swift::misc::CIdentifier &identifier) override;
50
53 const swift::misc::CIdentifier &identifier) override;
54
56 bool hasRegisteredAudioCallsign(const swift::misc::aviation::CCallsign &callsign) const override;
57
58 protected:
60 CContextAudio(CCoreFacadeConfig::ContextMode mode, CCoreFacade *runtime);
61
62 private:
63 misc::audio::CAudioDeviceInfoList m_registeredDevices;
65 };
66 } // namespace context
67} // namespace swift::core
68
69#endif // SWIFT_CORE_CONTEXT_CONTEXTAUDIO_IMPL_H
ContextMode
How to handle a given context.
The class providing facades (the contexts) for all DBus relevant operations.
Definition corefacade.h:57
CContextAudioBase(CCoreFacadeConfig::ContextMode mode, CCoreFacade *runtime)
Constructor.
CContextAudio(CCoreFacadeConfig::ContextMode mode, CCoreFacade *runtime)
Constructor.
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).
const CIdentifier & identifier() const
Get identifier.
Value object encapsulating information identifying a component of a modular distributed swift process...
Definition identifier.h:29
Value object encapsulating a list of audio devices.
Value object encapsulating information of a callsign.
Definition callsign.h:30
#define SWIFT_CORE_CONTEXTAUDIO_INTERFACENAME
DBus interface for context.
Backend services of the swift project, like dealing with the network or the simulators.
Definition actionbind.cpp:7
Q_CLASSINFO(Name, Value)
Q_OBJECTQ_OBJECT
#define SWIFT_CORE_EXPORT
Export a class or function from the library.