Alexa Auto SDK  2.3.1
FocusState.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_FOCUS_STATE_H
17 #define AACE_ALEXA_FOCUS_STATE_H
18 
19 #include <iostream>
20 
26 namespace aace {
27 
31 namespace alexa {
32 
36 enum class FocusState {
37 
41  FOREGROUND,
42 
46  BACKGROUND,
47 
51  NONE
52 };
53 
54 inline std::ostream& operator<<(std::ostream& stream, const FocusState& state) {
55  switch (state) {
57  stream << "FOREGROUND";
58  break;
60  stream << "BACKGROUND";
61  break;
62  case FocusState::NONE:
63  stream << "NONE";
64  break;
65  }
66  return stream;
67 }
68 
69 } // namespace alexa
70 } // namespace aace
71 
72 #endif // AACE_ALEXA_FOCUS_STATE_H
Definition: AddressBook.h:26
FocusState
Definition: FocusState.h:36

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