AlexaClientSDK  3.0.0
A cross-platform, modular SDK for interacting with the Alexa Voice Service
NotificationsCapabilityAgentState.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 ACSDKNOTIFICATIONS_NOTIFICATIONSCAPABILITYAGENTSTATE_H_
17 #define ACSDKNOTIFICATIONS_NOTIFICATIONSCAPABILITYAGENTSTATE_H_
18 
19 namespace alexaClientSDK {
20 namespace acsdkNotifications {
21 
22 #include <ostream>
23 #include <string>
24 
26  // The capability agent is awaiting directives.
27  IDLE,
28  // A call to renderNotification() has been made, but the notification has not
29  // yet finished rendering.
30  PLAYING,
31  // A call to cancelNotificationRendering() has been made, but the notification
32  // has not yet been cancelled.
34  // The capability agent is shutting down.
36  // The capability agent has finished shutting down.
37  SHUTDOWN
38 };
39 
41  switch (state) {
43  return "IDLE";
45  return "PLAYING";
47  return "CANCELING_PLAY";
49  return "SHUTTING_DOWN";
51  return "SHUTDOWN";
52  }
53  return "Unknown NotificationsCapabilityAgent State";
54 }
55 
56 inline std::ostream& operator<<(std::ostream& stream, const NotificationsCapabilityAgentState& state) {
57  return stream << stateToString(state);
58 }
59 
60 } // namespace acsdkNotifications
61 } // namespace alexaClientSDK
62 
63 #endif // ACSDKNOTIFICATIONS_NOTIFICATIONSCAPABILITYAGENTSTATE_H_
::std::string string
Definition: gtest-port.h:1097
std::string stateToString(NotificationsCapabilityAgentState state)
Definition: NotificationsCapabilityAgentState.h:40
Whether or not curl logs should be emitted.
Definition: AVSConnectionManager.h:36
NotificationsCapabilityAgentState
Definition: NotificationsCapabilityAgentState.h:25
std::ostream & operator<<(std::ostream &stream, IndicatorState state)
Definition: IndicatorState.h:56

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