AlexaClientSDK  3.0.0
A cross-platform, modular SDK for interacting with the Alexa Voice Service
BluetoothMediaInputTransformer.h
Go to the documentation of this file.
1 /*
2  * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
3  *
4  * Licensed under the Apache License, Version 2.0 (the "License").
5  * You may not use this file except in compliance with the License.
6  * A copy of the License is located at
7  *
8  * http://aws.amazon.com/apache2.0/
9  *
10  * or in the "license" file accompanying this file. This file is distributed
11  * on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either
12  * express or implied. See the License for the specific language governing
13  * permissions and limitations under the License.
14  */
15 
16 #ifndef ACSDKBLUETOOTH_BLUETOOTHMEDIAINPUTTRANSFORMER_H_
17 #define ACSDKBLUETOOTH_BLUETOOTHMEDIAINPUTTRANSFORMER_H_
18 
19 #include <memory>
20 #include <mutex>
21 
25 
26 namespace alexaClientSDK {
27 namespace acsdkBluetooth {
28 
33  : public std::enable_shared_from_this<BluetoothMediaInputTransformer>
35 public:
44  static std::shared_ptr<BluetoothMediaInputTransformer> create(
45  std::shared_ptr<avsCommon::utils::bluetooth::BluetoothEventBus> eventBus,
46  std::shared_ptr<avsCommon::sdkInterfaces::PlaybackRouterInterface> playbackRouter);
47 
48 protected:
53 
54 private:
62  std::shared_ptr<avsCommon::utils::bluetooth::BluetoothEventBus> eventBus,
63  std::shared_ptr<avsCommon::sdkInterfaces::PlaybackRouterInterface> playbackRouter);
64 
70  bool init();
71 
73  std::shared_ptr<avsCommon::utils::bluetooth::BluetoothEventBus> m_eventBus;
74 
76  std::shared_ptr<avsCommon::sdkInterfaces::PlaybackRouterInterface> m_playbackRouter;
77 };
78 
79 } // namespace acsdkBluetooth
80 } // namespace alexaClientSDK
81 
82 #endif // ACSDKBLUETOOTH_BLUETOOTHMEDIAINPUTTRANSFORMER_H_
Whether or not curl logs should be emitted.
Definition: AVSConnectionManager.h:36
void onEventFired(const avsCommon::utils::bluetooth::BluetoothEvent &event) override
Definition: BluetoothMediaInputTransformer.h:32
static std::shared_ptr< BluetoothMediaInputTransformer > create(std::shared_ptr< avsCommon::utils::bluetooth::BluetoothEventBus > eventBus, std::shared_ptr< avsCommon::sdkInterfaces::PlaybackRouterInterface > playbackRouter)
Base class for a BluetoothEvent.
Definition: BluetoothEvents.h:66

AlexaClientSDK 3.0.0 - Copyright 2016-2022 Amazon.com, Inc. or its affiliates. All Rights Reserved. Licensed under the Apache License, Version 2.0