Alexa Auto SDK  2.0.0
Notifications.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_NOTIFICATIONS_H
17 #define AACE_ALEXA_NOTIFICATIONS_H
18 
19 #include <AACE/Core/PlatformInterface.h>
20 #include "AlexaEngineInterfaces.h"
21 
24 namespace aace {
25 namespace alexa {
26 
39 protected:
40  Notifications() = default;
41 
42 public:
43  virtual ~Notifications();
44 
48  enum class IndicatorState {
49 
53  OFF = 0,
54 
58  ON = 1,
59 
63  UNKNOWN
64  };
65 
71  virtual void setIndicator( IndicatorState state ) = 0;
72 };
73 
74 inline std::ostream& operator<<(std::ostream& stream, const Notifications::IndicatorState& state) {
75  switch (state) {
77  stream << "OFF";
78  break;
80  stream << "ON";
81  break;
83  stream << "UNKNOWN";
84  break;
85  }
86  return stream;
87 }
88 
89 } // aace::alexa
90 } // aace
91 
92 #endif // AACE_ALEXA_NOTIFICATIONS_H
IndicatorState
Definition: Notifications.h:48
Definition: PlatformInterface.h:29
Definition: AddressBook.h:26
Definition: Notifications.h:38
virtual void setIndicator(IndicatorState state)=0

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