Alexa Auto SDK  2.0.0
AlexaSpeaker.h
1 /*
2  * Copyright 2017-2019 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 AACE_ALEXA_ALEXA_SPEAKER_H
17 #define AACE_ALEXA_ALEXA_SPEAKER_H
18 
19 #include <stdint.h>
20 
21 #include "AACE/Core/PlatformInterface.h"
22 #include "AlexaEngineInterfaces.h"
23 
26 namespace aace {
27 namespace alexa {
28 
33 protected:
34  AlexaSpeaker() = default;
35 
36 public:
37  virtual ~AlexaSpeaker();
38 
40 
57  virtual void speakerSettingsChanged( SpeakerType type, bool local, int8_t volume, bool mute );
58 
69  void localSetVolume( SpeakerType type, int8_t volume );
70 
82  void localAdjustVolume( SpeakerType type, int8_t delta );
83 
94  void localSetMute( SpeakerType type, bool mute );
95 
102  void setEngineInterface( std::shared_ptr<aace::alexa::AlexaSpeakerEngineInterface> alexaSpeakerEngineInterface );
103 
104 private:
105  std::weak_ptr<aace::alexa::AlexaSpeakerEngineInterface> m_alexaSpeakerEngineInterface;
106 };
107 
108 } // aace::alexa
109 } // aace
110 
111 #endif // AACE_ALEXA_ALEXA_SPEAKER_H
void localSetMute(SpeakerType type, bool mute)
Definition: AlexaSpeaker.cpp:38
Definition: PlatformInterface.h:29
Definition: AddressBook.h:26
void localSetVolume(SpeakerType type, int8_t volume)
Definition: AlexaSpeaker.cpp:26
void localAdjustVolume(SpeakerType type, int8_t delta)
Definition: AlexaSpeaker.cpp:32
SpeakerType
Definition: AlexaEngineInterfaces.h:39
Definition: AlexaSpeaker.h:32
virtual void speakerSettingsChanged(SpeakerType type, bool local, int8_t volume, bool mute)
Definition: AlexaSpeaker.cpp:23

Alexa Auto SDK 2.0.0 - Copyright 2017-2019 Amazon.com, Inc. or its affiliates. All Rights Reserved. Licensed under the Apache License, Version 2.0