swift
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 
13 #include "core/corefacadeconfig.h"
14 #include "core/swiftcoreexport.h"
15 #include "misc/network/userlist.h"
16 
17 // clazy:excludeall=const-signal-or-slot
18 
19 namespace swift::core
20 {
21  class CCoreFacade;
22 
23  namespace context
24  {
27  {
28  Q_CLASSINFO("D-Bus Interface", SWIFT_CORE_CONTEXTAUDIO_INTERFACENAME)
29  Q_OBJECT
30 
31  friend class swift::core::CCoreFacade;
32  friend class IContextAudio;
33 
34  public slots:
36  misc::audio::CAudioDeviceInfoList getRegisteredDevices() const override;
37 
39  void registerDevices(const swift::misc::audio::CAudioDeviceInfoList &devices) override;
40 
42  void unRegisterDevices(const swift::misc::audio::CAudioDeviceInfoList &devices) override;
43 
45  void unRegisterDevicesFor(const swift::misc::CIdentifier &identifier) override;
46 
48  void registerAudioCallsign(const swift::misc::aviation::CCallsign &callsign,
49  const swift::misc::CIdentifier &identifier) override;
50 
52  void unRegisterAudioCallsign(const swift::misc::aviation::CCallsign &callsign,
53  const swift::misc::CIdentifier &identifier) override;
54 
56  bool hasRegisteredAudioCallsign(const swift::misc::aviation::CCallsign &callsign) const override;
57 
58  protected:
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
Audio context implementation.
Audio context interface.
Definition: contextaudio.h:61
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.
Definition: contextaudio.h:39
Backend services of the swift project, like dealing with the network or the simulators.
Definition: actionbind.cpp:7
#define SWIFT_CORE_EXPORT
Export a class or function from the library.