Alexa Auto SDK  2.3.1
Notifications.h
1 /*
2  * Copyright 2017-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_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 
76  virtual void onNotificationReceived(){};
77 };
78 
79 inline std::ostream& operator<<(std::ostream& stream, const Notifications::IndicatorState& state) {
80  switch (state) {
82  stream << "OFF";
83  break;
85  stream << "ON";
86  break;
88  stream << "UNKNOWN";
89  break;
90  }
91  return stream;
92 }
93 
94 } // namespace alexa
95 } // namespace aace
96 
97 #endif // AACE_ALEXA_NOTIFICATIONS_H
IndicatorState
Definition: Notifications.h:48
Definition: PlatformInterface.h:29
Definition: AddressBook.h:26
virtual void onNotificationReceived()
Definition: Notifications.h:76
Definition: Notifications.h:38
virtual void setIndicator(IndicatorState state)=0

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