RDK Documentation (Open Sourced RDK Components)
XrdkCentralComRFC.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 2018 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 #ifndef XRDKCENTRALCOMRFC_H
20 #define XRDKCENTRALCOMRFC_H
21 
22 #include "hostIf_tr69ReqHandler.h"
23 #include "IniFile.h"
24 #include <string>
25 
26 using namespace std;
27 
29 {
30 public:
31  XRFCStorage();
32  void clearAll();
33  int getValue(HOSTIF_MsgData_t *stMsgData);
34  int setValue(HOSTIF_MsgData_t *stMsgData);
35 
36  string getRawValue(const string &key);
37  bool setRawValue(const string &key, const string &value);
38 
39 private:
40  bool init();
41  IniFile m_storage;
42  string m_storageFile;
43  bool m_storageLoaded;
44 };
45 
46 #endif // XRDKCENTRALCOMRFC_H
XRFCStorage
Definition: XrdkCentralComRFC.h:28
_HostIf_MsgData_t
Definition: hostIf_tr69ReqHandler.h:170
IniFile
Definition: IniFile.h:26