AlexaClientSDK  1.26.0
A cross-platform, modular SDK for interacting with the Alexa Voice Service
EqualizerRuntimeSetup.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 ALEXA_CLIENT_SDK_APPLICATIONUTILITIES_DEFAULTCLIENT_INCLUDE_DEFAULTCLIENT_EQUALIZERRUNTIMESETUP_H_
17 #define ALEXA_CLIENT_SDK_APPLICATIONUTILITIES_DEFAULTCLIENT_INCLUDE_DEFAULTCLIENT_EQUALIZERRUNTIMESETUP_H_
18 
25 
26 #include <list>
27 #include <memory>
28 
29 namespace alexaClientSDK {
30 namespace defaultClient {
31 
36 public:
46  static std::shared_ptr<EqualizerRuntimeSetupInterface> createEqualizerRuntimeSetupInterface(
47  const std::shared_ptr<acsdkEqualizerInterfaces::EqualizerConfigurationInterface>& equalizerConfiguration,
48  const std::shared_ptr<acsdkEqualizerInterfaces::EqualizerStorageInterface>& equalizerStorage,
49  const std::shared_ptr<acsdkEqualizerInterfaces::EqualizerModeControllerInterface>& equalizerModeController);
50 
56  EqualizerRuntimeSetup(bool isEnabled = true);
57 
60  std::shared_ptr<acsdkEqualizerInterfaces::EqualizerConfigurationInterface> getConfiguration() override;
61 
62  std::shared_ptr<acsdkEqualizerInterfaces::EqualizerStorageInterface> getStorage() override;
63 
64  std::shared_ptr<acsdkEqualizerInterfaces::EqualizerModeControllerInterface> getModeController() override;
65 
66  bool addEqualizer(std::shared_ptr<acsdkEqualizerInterfaces::EqualizerInterface> equalizer) override;
67 
69  std::shared_ptr<acsdkEqualizerInterfaces::EqualizerControllerListenerInterface> listener) override;
70 
71  std::list<std::shared_ptr<acsdkEqualizerInterfaces::EqualizerInterface>> getAllEqualizers() override;
72 
73  std::list<std::shared_ptr<acsdkEqualizerInterfaces::EqualizerControllerListenerInterface>>
75 
76  bool isEnabled() override;
78 
84  void setConfiguration(std::shared_ptr<acsdkEqualizerInterfaces::EqualizerConfigurationInterface> configuration);
85 
91  void setStorage(std::shared_ptr<acsdkEqualizerInterfaces::EqualizerStorageInterface> storage);
92 
98  void setModeController(std::shared_ptr<acsdkEqualizerInterfaces::EqualizerModeControllerInterface> modeController);
99 
100 private:
102  std::shared_ptr<acsdkEqualizerInterfaces::EqualizerConfigurationInterface> m_configuration;
103 
105  std::shared_ptr<acsdkEqualizerInterfaces::EqualizerModeControllerInterface> m_modeController;
106 
108  std::shared_ptr<acsdkEqualizerInterfaces::EqualizerStorageInterface> m_storage;
109 
111  std::list<std::shared_ptr<acsdkEqualizerInterfaces::EqualizerInterface>> m_equalizers;
112 
114  std::list<std::shared_ptr<acsdkEqualizerInterfaces::EqualizerControllerListenerInterface>>
115  m_equalizerControllerListeners;
116 
118  bool m_isEnabled;
119 };
120 
121 } // namespace defaultClient
122 } // namespace alexaClientSDK
123 
124 #endif // ALEXA_CLIENT_SDK_APPLICATIONUTILITIES_DEFAULTCLIENT_INCLUDE_DEFAULTCLIENT_EQUALIZERRUNTIMESETUP_H_
bool addEqualizer(std::shared_ptr< acsdkEqualizerInterfaces::EqualizerInterface > equalizer) override
Definition: EqualizerRuntimeSetup.cpp:76
Definition: EqualizerRuntimeSetup.h:35
std::shared_ptr< acsdkEqualizerInterfaces::EqualizerConfigurationInterface > getConfiguration() override
Definition: EqualizerRuntimeSetup.cpp:56
bool isEnabled() override
Definition: EqualizerRuntimeSetup.cpp:104
EqualizerRuntimeSetup(bool isEnabled=true)
Definition: EqualizerRuntimeSetup.cpp:108
void setConfiguration(std::shared_ptr< acsdkEqualizerInterfaces::EqualizerConfigurationInterface > configuration)
Definition: EqualizerRuntimeSetup.cpp:52
std::shared_ptr< acsdkEqualizerInterfaces::EqualizerStorageInterface > getStorage() override
Definition: EqualizerRuntimeSetup.cpp:60
static std::shared_ptr< EqualizerRuntimeSetupInterface > createEqualizerRuntimeSetupInterface(const std::shared_ptr< acsdkEqualizerInterfaces::EqualizerConfigurationInterface > &equalizerConfiguration, const std::shared_ptr< acsdkEqualizerInterfaces::EqualizerStorageInterface > &equalizerStorage, const std::shared_ptr< acsdkEqualizerInterfaces::EqualizerModeControllerInterface > &equalizerModeController)
Definition: EqualizerRuntimeSetup.cpp:36
std::list< std::shared_ptr< acsdkEqualizerInterfaces::EqualizerInterface > > getAllEqualizers() override
Definition: EqualizerRuntimeSetup.cpp:85
Whether or not curl logs should be emitted.
Definition: AVSConnectionManager.h:36
bool addEqualizerControllerListener(std::shared_ptr< acsdkEqualizerInterfaces::EqualizerControllerListenerInterface > listener) override
Definition: EqualizerRuntimeSetup.cpp:89
std::shared_ptr< acsdkEqualizerInterfaces::EqualizerModeControllerInterface > getModeController() override
Definition: EqualizerRuntimeSetup.cpp:72
std::list< std::shared_ptr< acsdkEqualizerInterfaces::EqualizerControllerListenerInterface > > getAllEqualizerControllerListeners() override
Definition: EqualizerRuntimeSetup.cpp:100
void setModeController(std::shared_ptr< acsdkEqualizerInterfaces::EqualizerModeControllerInterface > modeController)
Definition: EqualizerRuntimeSetup.cpp:68
void setStorage(std::shared_ptr< acsdkEqualizerInterfaces::EqualizerStorageInterface > storage)
Definition: EqualizerRuntimeSetup.cpp:64

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