RDK Documentation (Open Sourced RDK Components)
Helper.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 #ifndef _HELPER_H_
21 #define _HELPER_H_
22 
23 #include <stdint.h>
24 #include <errno.h>
25 #include <stdlib.h>
26 #include <map>
27 #include <string>
28 #include <string.h>
29 #include <iostream>
30 #include <list>
31 #include <string>
32 
34 {
35 
38 
39 public:
40  static void init();
41  static TRMMgrHelperImpl &getInstance();
42  bool getVersion(uint32_t *length,char *responseMsg);
43  bool getTunerReservationsList(uint32_t *length,char *responseMsg);
44  bool getConnectedDeviceIdList(uint32_t *length,char *responseMsg);
45  bool getTRMConnectionEventList(uint32_t *length,char *responseMsg);
46  bool getNumofTRMErrors(uint32_t *errCount);
47 
48 private:
49  static TRMMgrHelperImpl* TRMMgrHelperInstance;
50  static bool inited;
51 };
52 
53 #endif
54 
TRMMgrHelperImpl::getInstance
static TRMMgrHelperImpl & getInstance()
Instance of TRMMgrHelperImpl object.
Definition: Helper.cpp:182
TRMMgrHelperImpl::init
static void init()
Init and connect with TRM.
Definition: Helper.cpp:155
TRMMgrHelperImpl::getConnectedDeviceIdList
bool getConnectedDeviceIdList(uint32_t *length, char *responseMsg)
Send a TRM Request to get all connected Device IDs Get the Response and send to TRM Mgr.
Definition: Helper.cpp:303
TRMMgrHelperImpl::getTRMConnectionEventList
bool getTRMConnectionEventList(uint32_t *length, char *responseMsg)
Send a TRM Request to get all connected Device IDs Get the Response and send to TRM Mgr.
Definition: Helper.cpp:430
TRMMgrHelperImpl::getTunerReservationsList
bool getTunerReservationsList(uint32_t *length, char *responseMsg)
Send a TRM Request to get all Reservation Get the Response and send to TRM Mgr.
Definition: Helper.cpp:257
TRMMgrHelperImpl::getVersion
bool getVersion(uint32_t *length, char *responseMsg)
Get TRM Version Number.
Definition: Helper.cpp:194
TRMMgrHelperImpl
Definition: Helper.h:33