Alexa Auto SDK  2.0.0
PlaybackController.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_PLAYBACK_CONTROLLER_H
17 #define AACE_ALEXA_PLAYBACK_CONTROLLER_H
18 
19 #include <memory>
20 
21 #include "AACE/Core/PlatformInterface.h"
22 #include "AlexaEngineInterfaces.h"
23 
26 namespace aace {
27 namespace alexa {
28 
40 protected:
41  PlaybackController() = default;
42 
43 public:
44  virtual ~PlaybackController();
45 
50 
55 
62  void buttonPressed(PlaybackButton button);
63 
71  void togglePressed(PlaybackToggle toggle, bool action);
72 
79  void setEngineInterface( std::shared_ptr<aace::alexa::PlaybackControllerEngineInterface> playbackControllerEngineInterface );
80 
81 private:
82  std::weak_ptr<aace::alexa::PlaybackControllerEngineInterface> m_playbackControllerEngineInterface;
83 };
84 
85 } // aace::alexa
86 } // aace
87 
88 #endif // AACE_ALEXA_PLAYBACK_CONTROLLER_H
Definition: PlaybackController.h:39
Definition: PlatformInterface.h:29
void togglePressed(PlaybackToggle toggle, bool action)
Definition: PlaybackController.cpp:29
PlaybackButton
Definition: AlexaEngineInterfaces.h:136
Definition: AddressBook.h:26
PlaybackToggle
Definition: AlexaEngineInterfaces.h:166
void buttonPressed(PlaybackButton button)
Definition: PlaybackController.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