RDK Documentation (Open Sourced RDK Components)
hostIf_SNMPClient_ReqHandler.h
Go to the documentation of this file.
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 2017 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  * @file hostIf_SNMPClient_ReqHandler.h
22  * @brief The header file provides HostIf SNMP client request handler information APIs.
23  */
24 
25 
26 /**
27  * @file hostIf_SNMPClient_ReqHandler.h
28  *
29  * @brief HOST-IF SNMPClient Request Handler interface API.
30  *
31  * This API defines the device setting Client ReqHandler Interface operations for STBService defined under Host If
32  *
33  * @par Document
34  * Document reference.
35  *
36  * @par Open Issues (in no particular order)
37  * -# None
38  *
39  * @par Assumptions
40  * -# None
41  *
42  * @par Abbreviations
43  * - BE: ig-Endian.
44  * - cb: allback function (suffix).
45  * - DS: Device Settings.
46  * - FPD: Front-Panel Display.
47  * - HAL: Hardware Abstraction Layer.
48  * - LE: Little-Endian.
49  * - LS: Least Significant.
50  * - MBZ: Must be zero.
51  * - MS: Most Significant.
52  * - RDK: Reference Design Kit.
53  * - _t: Type (suffix).
54  *
55  * @par Implementation Notes
56  * -# None
57  *
58  */
59 
60 /**
61  * deviceClient -interface is a platform agnostic IARM communication interface. It allows
62  * ds client applications to communicate by sending Get and Set operation
63  *
64  */
65 
66 
67 /**
68 * @defgroup tr69hostif
69 * @{
70 * @defgroup hostif
71 * @{
72 **/
73 
74 #ifndef HOSTIF_SNMPCLIENT_REQHANDLER_H_
75 #define HOSTIF_SNMPCLIENT_REQHANDLER_H_
76 
77 #include "hostIf_msgHandler.h"
78 #include "hostIf_updateHandler.h"
79 
80 /**
81  * @brief This class provides the interface for getting SNMP client request handler information.
82  * @ingroup TR-069HOSTIF_SNMPCLIENT_REQHANDLER_CLASSES
83  */
85 {
88  static class SNMPClientReqHandler *pInstance;
89  static updateCallback mUpdateCallback;
90 
91 public:
92  virtual bool init();
93  virtual bool unInit();
94  virtual int handleSetMsg(HOSTIF_MsgData_t *stMsgData);
95  virtual int handleGetMsg(HOSTIF_MsgData_t *stMsgData);
96  virtual int handleGetAttributesMsg(HOSTIF_MsgData_t *stMsgData);
97  virtual int handleSetAttributesMsg(HOSTIF_MsgData_t *stMsgData);
98  static msgHandler* getInstance();
99  static void registerUpdateCallback(updateCallback cb);
100  static void checkForUpdates();
101  static void reset();
102 };
103 
104 #endif /* HOSTIF_SNMPCLIENT_REQHANDLER_H_ */
105 /* End of HOSTIF_SNMPCLIENT_REQHANDLER_H_ doxygen group */
106 /**
107  * @}
108  */
109 
110 
111 /** @} */
112 /** @} */
SNMPClientReqHandler::handleGetMsg
virtual int handleGetMsg(HOSTIF_MsgData_t *stMsgData)
This function is used to set the SNMP get.
Definition: hostIf_SNMPClient_ReqHandler.cpp:128
SNMPClientReqHandler::init
virtual bool init()
This function is used to initialize all the current process and processor to '0' using memset.
Definition: hostIf_SNMPClient_ReqHandler.cpp:51
SNMPClientReqHandler::unInit
virtual bool unInit()
This function is used to close all the instances of SNMP.
Definition: hostIf_SNMPClient_ReqHandler.cpp:66
_HostIf_MsgData_t
Definition: hostIf_tr69ReqHandler.h:170
SNMPClientReqHandler::handleSetMsg
virtual int handleSetMsg(HOSTIF_MsgData_t *stMsgData)
This function is used to set the SNMP set.
Definition: hostIf_SNMPClient_ReqHandler.cpp:83
msgHandler
Definition: hostIf_msgHandler.h:103
hostIf_msgHandler.h
The header file provides HostIf message handler information APIs.
SNMPClientReqHandler
This class provides the interface for getting SNMP client request handler information.
Definition: hostIf_SNMPClient_ReqHandler.h:84