RDK Documentation (Open Sourced RDK Components)
Device_IP_Diagnostics_SpeedTest.h
1 /*
2  * If not stated otherwise in this file or this component's LICENSE file the
3  * following copyright and licenses apply:
4  *
5  * Copyright 2019 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  * author: Derric_Lynns@cable.comcast.com
20  *
21 */
22 
23 /**
24 * @defgroup tr69hostif
25 * @{
26 * @defgroup hostif
27 * @{
28 **/
29 
30 #ifndef DEVICE_IP_DIAGNOSTICS_SPEEDTEST_H_
31 #define DEVICE_IP_DIAGNOSTICS_SPEEDTEST_H_
32 
33 #include "hostIf_tr69ReqHandler.h"
34 #include "IniFile.h"
35 
37 {
38 
39 public:
40 
41  static const char* SpeedTestProfile;
43 
45  void operator= (hostIf_IP_Diagnostics_SpeedTest const&) = delete;
46 
47  int handleGetMsg (HOSTIF_MsgData_t* stMsgData);
48  int handleSetMsg (HOSTIF_MsgData_t* stMsgData);
49 
50 private:
51 
52  IniFile dbStore;
54  void processMsg (HOSTIF_MsgData_t* stMsgData);
55  bool bCalledEnable;
56  bool bCalledRun;
57 };
58 
59 #endif /* DEVICE_IP_DIAGNOSTICS_SPEEDTEST_H_ */
60 
61 
62 /** @} */
63 /** @} */
hostIf_IP_Diagnostics_SpeedTest::processMsg
void processMsg(HOSTIF_MsgData_t *stMsgData)
This function processes the set message for triggering speedtest-client It checks for Enable_Speedtes...
Definition: Device_IP_Diagnostics_SpeedTest.cpp:186
_HostIf_MsgData_t
Definition: hostIf_tr69ReqHandler.h:170
hostIf_IP_Diagnostics_SpeedTest::handleSetMsg
int handleSetMsg(HOSTIF_MsgData_t *stMsgData)
This function sets the profile parameter data It sets the values of Enable_Speedtest,...
Definition: Device_IP_Diagnostics_SpeedTest.cpp:137
hostIf_IP_Diagnostics_SpeedTest::hostIf_IP_Diagnostics_SpeedTest
hostIf_IP_Diagnostics_SpeedTest()
The constructor checks for the database file at TR69DIR and loads the database It checks for the data...
Definition: Device_IP_Diagnostics_SpeedTest.cpp:56
hostIf_IP_Diagnostics_SpeedTest::getInstance
static hostIf_IP_Diagnostics_SpeedTest & getInstance()
This function provides single instance of hostIF_IP_Diagnostics_SpeedTest.
Definition: Device_IP_Diagnostics_SpeedTest.cpp:80
hostIf_IP_Diagnostics_SpeedTest
Definition: Device_IP_Diagnostics_SpeedTest.h:36
hostIf_IP_Diagnostics_SpeedTest::handleGetMsg
int handleGetMsg(HOSTIF_MsgData_t *stMsgData)
This function is called when profile parameter needs to be read It gets the values of Enable_Speedtes...
Definition: Device_IP_Diagnostics_SpeedTest.cpp:98
IniFile
Definition: IniFile.h:26