RDK Documentation (Open Sourced RDK Components)
hostIf_EthernetClient_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 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  * @file hostIf_EthernetClient_ReqHandler.h
22  * @brief The header file provides HostIf Ethernet client request handler information APIs.
23  */
24 
25 /**
26  * @defgroup TR-069HOSTIF_ETHERNETCLIENT_REQHANDLER_CLASSES Ethernet Client RequestHandler Public Classes
27  * Describe the details about classes used in TR-069 EthernetClient request handler.
28  * @ingroup TR-069HOSTIF_DEVICECLIENT_HANDLER
29  */
30 
31 
32 /**
33  * It allows moca client applications to communicate by sending Get operation
34  * from Ethernet library.
35  *
36  */
37 
38 /**
39 * @defgroup tr69hostif
40 * @{
41 * @defgroup hostif
42 * @{
43 **/
44 
45 
46 #ifndef HOSTIF_ETHERNETCLIENT_REQHANDLER_H_
47 #define HOSTIF_ETHERNETCLIENT_REQHANDLER_H_
48 
49 #include "hostIf_msgHandler.h"
50 #include "hostIf_updateHandler.h"
51 
52 /**
53  * @brief This class provides the interface for getting Ethernet client request handler information.
54  * @ingroup TR-069HOSTIF_ETHERNETCLIENT_REQHANDLER_CLASSES
55  */
57 {
60  static class EthernetClientReqHandler *pInstance;
61  static updateCallback mUpdateCallback;
62 
63  static int curNumOfDevices[10];
64 public:
65  virtual bool init();
66  virtual bool unInit();
67  virtual int handleSetMsg(HOSTIF_MsgData_t *stMsgData);
68  virtual int handleGetMsg(HOSTIF_MsgData_t *stMsgData);
69  virtual int handleGetAttributesMsg(HOSTIF_MsgData_t *stMsgData);
70  virtual int handleSetAttributesMsg(HOSTIF_MsgData_t *stMsgData);
71  static msgHandler* getInstance();
72  static void registerUpdateCallback(updateCallback cb);
73  static void checkForUpdates();
74  static void reset();
75 };
76 
77 #endif /* HOSTIF_ETHERNETCLIENT_REQHANDLER_H_ */
78 /* End of HOSTIF_ETHERNETCLIENT_REQHANDLER_H_ doxygen group */
79 /**
80  * @}
81  */
82 
83 
84 /** @} */
85 /** @} */
_HostIf_MsgData_t
Definition: hostIf_tr69ReqHandler.h:170
EthernetClientReqHandler::handleSetMsg
virtual int handleSetMsg(HOSTIF_MsgData_t *stMsgData)
This function is used to handle the set message request of ethernet interface attribute such as "Enab...
Definition: hostIf_EthernetClient_ReqHandler.cpp:107
EthernetClientReqHandler::handleGetMsg
virtual int handleGetMsg(HOSTIF_MsgData_t *stMsgData)
This function is used to handle the get message request of ethernet interface attributes such as "Ena...
Definition: hostIf_EthernetClient_ReqHandler.cpp:170
EthernetClientReqHandler
This class provides the interface for getting Ethernet client request handler information.
Definition: hostIf_EthernetClient_ReqHandler.h:56
EthernetClientReqHandler::unInit
virtual bool unInit()
This function is used to close all the instances of ethernet interface and ethernet interface stats.
Definition: hostIf_EthernetClient_ReqHandler.cpp:84
EthernetClientReqHandler::init
virtual bool init()
This function is used to initialize. Currently not implemented.
Definition: hostIf_EthernetClient_ReqHandler.cpp:67
msgHandler
Definition: hostIf_msgHandler.h:103
hostIf_msgHandler.h
The header file provides HostIf message handler information APIs.