RDK Documentation (Open Sourced RDK Components)
Device_WiFi_AccessPoint_WPS.h
1 /*
2  * If not stated otherwise in this file or this component's Licenses.txt file the
3  * following copyright and licenses apply:
4  *
5  * Copyright 2016 RDK Management
6  *
7  * Licensed under the Apache License, Version 2.0 (the "License");
8  * you may not use this file except in compliance with the License.
9  * You may obtain a copy of the License at
10  *
11  * http://www.apache.org/licenses/LICENSE-2.0
12  *
13  * Unless required by applicable law or agreed to in writing, software
14  * distributed under the License is distributed on an "AS IS" BASIS,
15  * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
16  * See the License for the specific language governing permissions and
17  * limitations under the License.
18 */
19 
20 /**
21  * @defgroup TR69_HOSTIF_WIFI_AP_WPS TR-069 Object (Device.WiFi.AccessPoint.{i}.WPS.) Public APIs
22  * This module provides interface functions related to Wi-Fi Protected Setup [WPSv1.0] for this access point.
23  * @ingroup TR69_HOSTIF_WIFI
24  */
25 
26 
27 /**
28 * @defgroup tr69hostif
29 * @{
30 * @defgroup hostif
31 * @{
32 **/
33 
34 
35 #ifndef DEVICE_WIFI_ACCESSPOINT_WPS_H_
36 #define DEVICE_WIFI_ACCESSPOINT_WPS_H_
37 
38 #include "hostIf_main.h"
39 #include "hostIf_utils.h"
40 #include "hostIf_tr69ReqHandler.h"
41 #include "hostIf_updateHandler.h"
42 
43 
45 
46  static GHashTable *ifHash;
47  static GMutex* m_mutex;
48  int dev_id;
49  hostIf_WiFi_AccessPoint_WPS(int dev_id);
51 
52 public:
53  static class hostIf_WiFi_AccessPoint_WPS *getInstance(int dev_id);
54  static GList* getAllInstances();
55  static void closeInstance(hostIf_WiFi_AccessPoint_WPS *);
56  static void closeAllInstances();
57 
58  bool Enable;
59  char ConfigMethodsSupported[100];
60  char ConfigMethodsEnabled[64];
61 
62 
63  /**
64  * @ingroup TR69_HOSTIF_WIFI_AP_WPS
65  * @{
66  */
67  /**
68  * @brief Enables or disables WPS functionality for this access point.
69  *
70  * @param[out] stMsgData TR-069 Host interface message request.
71  *
72  * @return Returns 0 on success, otherwise will return the appropriate error code.
73  */
75 
76  /**
77  * @brief This function provides the comma-separated list of strings, which indicates WPS configuration
78  * methods supported by the device.
79  *
80  * Each list item is an enumeration of:
81  * - USBFlashDrive
82  * - Ethernet
83  * - ExternalNFCToken
84  * - IntegratedNFCToken
85  * - NFCInterface
86  * - PushButton
87  * - PIN
88  * This parameter corresponds directly to the "Config Methods" attribute of the WPS specification [WPSv1.0].
89  * The PushButton and PIN methods MUST be supported.
90  *
91  * @param[out] stMsgData TR-069 Host interface message request.
92  *
93  * @return Returns 0 on success, otherwise will return the appropriate error code.
94  */
96 
97  /**
98  * @brief This function provides the comma-separated list of strings.
99  * Each list item MUST be a member of the list reported by the ConfigMethodsSupported parameter.
100  * Indicates WPS configuration methods enabled on the device.
101  *
102  * @param[out] stMsgData TR-069 Host interface message request.
103  *
104  * @return Returns 0 on success, otherwise will return the appropriate error code.
105  */
107 
108  /** @} */ // End of doxygen tag TR69_HOSTIF_WIFI_AP_WPS
109 };
110 
111 
112 
113 #endif /* DEVICE_WIFI_ACCESSPOINT_WPS_H_ */
114 
115 
116 /** @} */
117 /** @} */
hostIf_WiFi_AccessPoint_WPS::get_hostIf_WiFi_AccessPoint_WPS_ConfigMethodsSupported
int get_hostIf_WiFi_AccessPoint_WPS_ConfigMethodsSupported(HOSTIF_MsgData_t *stMsgData)
This function provides the comma-separated list of strings, which indicates WPS configuration methods...
_HostIf_MsgData_t
Definition: hostIf_tr69ReqHandler.h:170
hostIf_WiFi_AccessPoint_WPS::get_hostIf_WiFi_AccessPoint_WPS_Enable
int get_hostIf_WiFi_AccessPoint_WPS_Enable(HOSTIF_MsgData_t *stMsgData)
Enables or disables WPS functionality for this access point.
hostIf_main.h
hostIf_main API.
hostIf_WiFi_AccessPoint_WPS
Definition: Device_WiFi_AccessPoint_WPS.h:44
hostIf_WiFi_AccessPoint_WPS::get_hostIf_WiFi_AccessPoint_WPS_ConfigMethodsEnabled
int get_hostIf_WiFi_AccessPoint_WPS_ConfigMethodsEnabled(HOSTIF_MsgData_t *stMsgData)
This function provides the comma-separated list of strings. Each list item MUST be a member of the li...