Alexa Auto SDK  2.0.0
NetworkEngineInterfaces.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_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:
31 
35  enum class NetworkStatus {
36 
40  UNKNOWN,
52  CONNECTED,
57  };
58 
59  virtual void networkInfoChanged( NetworkStatus status, int wifiSignalStrength ) = 0;
60 };
61 
62 inline std::ostream& operator<<(std::ostream& stream, const NetworkInfoProviderEngineInterface::NetworkStatus& status) {
63  switch (status) {
65  stream << "UNKNOWN";
66  break;
68  stream << "DISCONNECTED";
69  break;
71  stream << "DISCONNECTING";
72  break;
74  stream << "CONNECTED";
75  break;
77  stream << "CONNECTING";
78  break;
79  }
80  return stream;
81 }
82 
83 } // aace::network
84 } // aace
85 
86 #endif // AACE_NETWORK_NETWORK_ENGINE_INTERFACES_H
NetworkStatus
Definition: NetworkEngineInterfaces.h:35
Definition: AddressBook.h:26
Definition: NetworkEngineInterfaces.h:29

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