Alexa Auto SDK  2.3.0
PlayerActivity.h
1 /*
2  * Copyright 2020 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_PLAYER_ACTIVITY_H
17 #define AACE_ALEXA_PLAYER_ACTIVITY_H
18 
19 #include <iostream>
20 
26 namespace aace {
27 
31 namespace alexa {
32 
36 enum class PlayerActivity {
37 
41  IDLE,
42 
46  PLAYING,
47 
51  STOPPED,
52 
56  PAUSED,
57 
62 
66  FINISHED
67 };
68 
69 inline std::ostream& operator<<(std::ostream& stream, const PlayerActivity& activity) {
70  switch (activity) {
72  stream << "IDLE";
73  break;
75  stream << "PLAYING";
76  break;
78  stream << "STOPPED";
79  break;
81  stream << "PAUSED";
82  break;
84  stream << "BUFFER_UNDERRUN";
85  break;
87  stream << "FINISHED";
88  break;
89  }
90  return stream;
91 }
92 
93 } // namespace alexa
94 } // namespace aace
95 
96 #endif // AACE_ALEXA_PLAYER_ACTIVITY_H
PlayerActivity
Definition: PlayerActivity.h:36
Definition: AddressBook.h:26

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