AlexaClientSDK  3.0.0
A cross-platform, modular SDK for interacting with the Alexa Voice Service
AlexaPlaybackControllerInterface.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 ACSDKALEXAPLAYBACKCONTROLLERINTERFACES_ALEXAPLAYBACKCONTROLLERINTERFACE_H_
17 #define ACSDKALEXAPLAYBACKCONTROLLERINTERFACES_ALEXAPLAYBACKCONTROLLERINTERFACE_H_
18 
19 #include <string>
20 
22 
26 
27 namespace alexaClientSDK {
28 namespace acsdkAlexaPlaybackControllerInterfaces {
29 
45 public:
53  struct Response {
57  enum class Type {
59  SUCCESS,
60 
63 
67 
71 
75  };
76 
81 
89  responseType{responseType},
91 
94 
98  };
99 
103  virtual ~AlexaPlaybackControllerInterface() = default;
104 
111  virtual Response play() = 0;
112 
119  virtual Response pause() = 0;
120 
127  virtual Response stop() = 0;
128 
135  virtual Response startOver() = 0;
136 
143  virtual Response previous() = 0;
144 
151  virtual Response next() = 0;
152 
159  virtual Response rewind() = 0;
160 
167  virtual Response fastForward() = 0;
168 
180 
187  virtual std::set<acsdkAlexaPlaybackControllerInterfaces::PlaybackOperation> getSupportedOperations() = 0;
188 
201  virtual bool addObserver(const std::weak_ptr<AlexaPlaybackControllerObserverInterface>& observer) = 0;
202 
208  virtual void removeObserver(const std::weak_ptr<AlexaPlaybackControllerObserverInterface>& observer) = 0;
209 };
210 
211 } // namespace acsdkAlexaPlaybackControllerInterfaces
212 } // namespace alexaClientSDK
213 
214 #endif // ACSDKALEXAPLAYBACKCONTROLLERINTERFACES_ALEXAPLAYBACKCONTROLLERINTERFACE_H_
virtual std::set< acsdkAlexaPlaybackControllerInterfaces::PlaybackOperation > getSupportedOperations()=0
virtual void removeObserver(const std::weak_ptr< AlexaPlaybackControllerObserverInterface > &observer)=0
::std::string string
Definition: gtest-port.h:1097
Type responseType
The AlexaPlaybackController response type.
Definition: AlexaPlaybackControllerInterface.h:90
Response(Type responseType, const std::string &errorMessage)
Definition: AlexaPlaybackControllerInterface.h:88
Whether or not curl logs should be emitted.
Definition: AVSConnectionManager.h:36
virtual acsdkAlexaPlaybackControllerInterfaces::PlaybackState getPlaybackState()=0
virtual bool addObserver(const std::weak_ptr< AlexaPlaybackControllerObserverInterface > &observer)=0

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