forked from rdkcentral/networkmanager
-
Notifications
You must be signed in to change notification settings - Fork 0
/
NetworkManagerJsonEnum.h
99 lines (86 loc) · 6.9 KB
/
NetworkManagerJsonEnum.h
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
#pragma once
#include <core/Enumerate.h>
#include "INetworkManager.h"
namespace WPEFramework {
ENUM_CONVERSION_BEGIN(Exchange::INetworkManager::InterfaceType)
{ Exchange::INetworkManager::InterfaceType::INTERFACE_TYPE_ETHERNET, _TXT("ETHERNET") },
{ Exchange::INetworkManager::InterfaceType::INTERFACE_TYPE_WIFI, _TXT("WIFI") },
{ Exchange::INetworkManager::InterfaceType::INTERFACE_TYPE_P2P, _TXT("P2P") },
ENUM_CONVERSION_END(Exchange::INetworkManager::InterfaceType)
ENUM_CONVERSION_BEGIN(Exchange::INetworkManager::IPVersion)
{ Exchange::INetworkManager::IPVersion::IP_ADDRESS_V4, _TXT("IPv4") },
{ Exchange::INetworkManager::IPVersion::IP_ADDRESS_V6, _TXT("IPv6") },
ENUM_CONVERSION_END(Exchange::INetworkManager::IPVersion)
ENUM_CONVERSION_BEGIN(Exchange::INetworkManager::InternetStatus)
{ Exchange::INetworkManager::InternetStatus::INTERNET_NOT_AVAILABLE, _TXT("NO_INTERNET") },
{ Exchange::INetworkManager::InternetStatus::INTERNET_LIMITED, _TXT("LIMITED_INTERNET") },
{ Exchange::INetworkManager::InternetStatus::INTERNET_CAPTIVE_PORTAL, _TXT("CAPTIVE_PORTAL") },
{ Exchange::INetworkManager::InternetStatus::INTERNET_FULLY_CONNECTED, _TXT("FULLY_CONNECTED") },
{ Exchange::INetworkManager::InternetStatus::INTERNET_UNKNOWN, _TXT("UNKNOWN") },
ENUM_CONVERSION_END(Exchange::INetworkManager::InternetStatus)
ENUM_CONVERSION_BEGIN(Exchange::INetworkManager::WIFISecurityMode)
{ Exchange::INetworkManager::WIFISecurityMode::WIFI_SECURITY_NONE, _TXT("0") },
{ Exchange::INetworkManager::WIFISecurityMode::WIFI_SECURITY_WEP_64, _TXT("1") },
{ Exchange::INetworkManager::WIFISecurityMode::WIFI_SECURITY_WEP_128, _TXT("2") },
{ Exchange::INetworkManager::WIFISecurityMode::WIFI_SECURITY_WPA_PSK_TKIP, _TXT("3") },
{ Exchange::INetworkManager::WIFISecurityMode::WIFI_SECURITY_WPA_PSK_AES, _TXT("4") },
{ Exchange::INetworkManager::WIFISecurityMode::WIFI_SECURITY_WPA2_PSK_TKIP, _TXT("5") },
{ Exchange::INetworkManager::WIFISecurityMode::WIFI_SECURITY_WPA2_PSK_AES, _TXT("6") },
{ Exchange::INetworkManager::WIFISecurityMode::WIFI_SECURITY_WPA_ENTERPRISE_TKIP, _TXT("7") },
{ Exchange::INetworkManager::WIFISecurityMode::WIFI_SECURITY_WPA_ENTERPRISE_AES, _TXT("8") },
{ Exchange::INetworkManager::WIFISecurityMode::WIFI_SECURITY_WPA2_ENTERPRISE_TKIP, _TXT("9") },
{ Exchange::INetworkManager::WIFISecurityMode::WIFI_SECURITY_WPA2_ENTERPRISE_AES, _TXT("10") },
{ Exchange::INetworkManager::WIFISecurityMode::WIFI_SECURITY_WPA_WPA2_PSK, _TXT("11") },
{ Exchange::INetworkManager::WIFISecurityMode::WIFI_SECURITY_WPA_WPA2_ENTERPRISE, _TXT("12") },
{ Exchange::INetworkManager::WIFISecurityMode::WIFI_SECURITY_WPA3_PSK_AES, _TXT("13") },
{ Exchange::INetworkManager::WIFISecurityMode::WIFI_SECURITY_WPA3_SAE, _TXT("14") },
ENUM_CONVERSION_END(Exchange::INetworkManager::WIFISecurityMode)
ENUM_CONVERSION_BEGIN(Exchange::INetworkManager::WiFiWPS)
{ Exchange::INetworkManager::WiFiWPS::WIFI_WPS_PBC, _TXT("PBC") },
{ Exchange::INetworkManager::WiFiWPS::WIFI_WPS_PIN, _TXT("PIN") },
{ Exchange::INetworkManager::WiFiWPS::WIFI_WPS_SERIALIZED_PIN, _TXT("SERIALIZED_PIN") },
ENUM_CONVERSION_END(Exchange::INetworkManager::WiFiWPS)
ENUM_CONVERSION_BEGIN(Exchange::INetworkManager::WiFiState)
{ Exchange::INetworkManager::WiFiState::WIFI_STATE_UNINSTALLED, _TXT("WIFI_STATE_UNINSTALLED") },
{ Exchange::INetworkManager::WiFiState::WIFI_STATE_DISABLED, _TXT("WIFI_STATE_DISABLED") },
{ Exchange::INetworkManager::WiFiState::WIFI_STATE_DISCONNECTED, _TXT("WIFI_STATE_DISCONNECTED") },
{ Exchange::INetworkManager::WiFiState::WIFI_STATE_PAIRING, _TXT("WIFI_STATE_PAIRING") },
{ Exchange::INetworkManager::WiFiState::WIFI_STATE_CONNECTING, _TXT("WIFI_STATE_CONNECTING") },
{ Exchange::INetworkManager::WiFiState::WIFI_STATE_CONNECTED, _TXT("WIFI_STATE_CONNECTED") },
{ Exchange::INetworkManager::WiFiState::WIFI_STATE_SSID_NOT_FOUND, _TXT("WIFI_STATE_SSID_NOT_FOUND") },
{ Exchange::INetworkManager::WiFiState::WIFI_STATE_SSID_CHANGED, _TXT("WIFI_STATE_SSID_CHANGED") },
{ Exchange::INetworkManager::WiFiState::WIFI_STATE_CONNECTION_LOST, _TXT("WIFI_STATE_CONNECTION_LOST") },
{ Exchange::INetworkManager::WiFiState::WIFI_STATE_CONNECTION_FAILED, _TXT("WIFI_STATE_CONNECTION_FAILED") },
{ Exchange::INetworkManager::WiFiState::WIFI_STATE_CONNECTION_INTERRUPTED, _TXT("WIFI_STATE_CONNECTION_INTERRUPTED") },
{ Exchange::INetworkManager::WiFiState::WIFI_STATE_INVALID_CREDENTIALS, _TXT("WIFI_STATE_INVALID_CREDENTIALS") },
{ Exchange::INetworkManager::WiFiState::WIFI_STATE_AUTHENTICATION_FAILED, _TXT("WIFI_STATE_AUTHENTICATION_FAILED") },
{ Exchange::INetworkManager::WiFiState::WIFI_STATE_ERROR, _TXT("WIFI_STATE_ERROR") },
{ Exchange::INetworkManager::WiFiState::WIFI_STATE_INVALID, _TXT("WIFI_STATE_INVALID") },
ENUM_CONVERSION_END(Exchange::INetworkManager::WiFiState)
ENUM_CONVERSION_BEGIN(Exchange::INetworkManager::WiFiSignalQuality)
{ Exchange::INetworkManager::WiFiSignalQuality::WIFI_SIGNAL_DISCONNECTED, _TXT("Disconnected") },
{ Exchange::INetworkManager::WiFiSignalQuality::WIFI_SIGNAL_WEAK, _TXT("Weak") },
{ Exchange::INetworkManager::WiFiSignalQuality::WIFI_SIGNAL_FAIR, _TXT("Fair") },
{ Exchange::INetworkManager::WiFiSignalQuality::WIFI_SIGNAL_GOOD, _TXT("Good") },
{ Exchange::INetworkManager::WiFiSignalQuality::WIFI_SIGNAL_EXCELLENT, _TXT("Excellent") },
ENUM_CONVERSION_END(Exchange::INetworkManager::WiFiSignalQuality)
ENUM_CONVERSION_BEGIN(Exchange::INetworkManager::Logging)
{ Exchange::INetworkManager::Logging::LOG_LEVEL_FATAL, _TXT("LOG_LEVEL_FATAL") },
{ Exchange::INetworkManager::Logging::LOG_LEVEL_ERROR, _TXT("LOG_LEVEL_ERROR") },
{ Exchange::INetworkManager::Logging::LOG_LEVEL_WARNING, _TXT("LOG_LEVEL_WARNING") },
{ Exchange::INetworkManager::Logging::LOG_LEVEL_INFO, _TXT("LOG_LEVEL_INFO") },
{ Exchange::INetworkManager::Logging::LOG_LEVEL_DEBUG, _TXT("LOG_LEVEL_DEBUG") },
ENUM_CONVERSION_END(Exchange::INetworkManager::Logging)
ENUM_CONVERSION_BEGIN(Exchange::INetworkManager::InterfaceState)
{ Exchange::INetworkManager::InterfaceState::INTERFACE_ADDED, _TXT("INTERFACE_ADDED") },
{ Exchange::INetworkManager::InterfaceState::INTERFACE_LINK_UP, _TXT("INTERFACE_LINK_UP") },
{ Exchange::INetworkManager::InterfaceState::INTERFACE_LINK_DOWN, _TXT("INTERFACE_LINK_DOWN") },
{ Exchange::INetworkManager::InterfaceState::INTERFACE_ACQUIRING_IP, _TXT("INTERFACE_ACQUIRING_IP") },
{ Exchange::INetworkManager::InterfaceState::INTERFACE_REMOVED, _TXT("INTERFACE_REMOVED") },
{ Exchange::INetworkManager::InterfaceState::INTERFACE_DISABLED, _TXT("INTERFACE_DISABLED") },
ENUM_CONVERSION_END(Exchange::INetworkManager::InterfaceState)
ENUM_CONVERSION_BEGIN(Exchange::INetworkManager::IPStatus)
{ Exchange::INetworkManager::IPStatus::IP_LOST, _TXT("LOST") },
{ Exchange::INetworkManager::IPStatus::IP_ACQUIRED, _TXT("ACQUIRED") },
ENUM_CONVERSION_END(Exchange::INetworkManager::IPStatus)
}