Alexa Auto SDK  2.3.0
NetworkEngineInterfaces.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_NETWORK_NETWORK_ENGINE_INTERFACES_H
17 #define AACE_NETWORK_NETWORK_ENGINE_INTERFACES_H
18 
21 #include <iostream>
22 
23 namespace aace {
24 namespace network {
25 
30 public:
34  enum class NetworkStatus {
35 
39  UNKNOWN,
51  CONNECTED,
56  };
57 
58  virtual void networkInfoChanged(NetworkStatus status, int wifiSignalStrength) = 0;
59 };
60 
61 inline std::ostream& operator<<(std::ostream& stream, const NetworkInfoProviderEngineInterface::NetworkStatus& status) {
62  switch (status) {
64  stream << "UNKNOWN";
65  break;
67  stream << "DISCONNECTED";
68  break;
70  stream << "DISCONNECTING";
71  break;
73  stream << "CONNECTED";
74  break;
76  stream << "CONNECTING";
77  break;
78  }
79  return stream;
80 }
81 
82 } // namespace network
83 } // namespace aace
84 
85 #endif // AACE_NETWORK_NETWORK_ENGINE_INTERFACES_H
NetworkStatus
Definition: NetworkEngineInterfaces.h:34
Definition: AddressBook.h:26
Definition: NetworkEngineInterfaces.h:29

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