46 #ifndef X_RDKCENTRAL_COM_XBLUETOOTH_H_
47 #define X_RDKCENTRAL_COM_XBLUETOOTH_H_
49 #ifdef USE_XRDK_BT_PROFILE
51 #include "hostIf_utils.h"
52 #include "hostIf_tr69ReqHandler.h"
53 #include "hostIf_updateHandler.h"
60 #define X_BT_ROOT_OBJ "Device.DeviceInfo.X_RDKCENTRAL-COM_xBlueTooth."
61 #define BT_ENABLE_STRING "enable"
62 #define BT_DISCOVERY_ENABLED_STRING "DiscoveryEnabled"
63 #define BT_DISCOVERY_DEVICE_CNT_STRING "DiscoveredDeviceCnt"
64 #define BT_PAIRED_DEVICE_CNT_STRING "PairedDeviceCnt"
65 #define BT_CONNECTED_DEVICE_CNT_STRING "ConnectedDeviceCnt"
66 #define BT_LIMIT_BEACON_DETECTION_STRING "LimitBeaconDetection"
68 #define X_BT_DISCOVERED_DEV_OBJ "Device.DeviceInfo.X_RDKCENTRAL-COM_xBlueTooth.DiscoveredDevice"
69 #define X_BT_PAIRED_DEV_OBJ "Device.DeviceInfo.X_RDKCENTRAL-COM_xBlueTooth.PairedDevice"
70 #define X_BT_CONNECTED_DEV_OBJ "Device.DeviceInfo.X_RDKCENTRAL-COM_xBlueTooth.ConnectedDevice"
71 #define X_BT_DEVICEINFO_OBJ "Device.DeviceInfo.X_RDKCENTRAL-COM_xBlueTooth.DeviceInfo"
72 #define X_BT_LIMITBEACONDETECTION_OBJ "Device.DeviceInfo.X_RDKCENTRAL-COM_xBlueTooth.LimitBeaconDetection"
74 #ifdef BLE_TILE_PROFILE
76 #define BT_TILE_ID_STRING "BLE.Tile.Ring.Id"
77 #define BT_TILE_SESSION_ID_STRING "BLE.Tile.Ring.SessionId"
78 #define BT_TILE_TRIGGER_STRING "BLE.Tile.Ring.Trigger"
79 #define BT_TILE_CMD_REQUEST_STRING "BLE.Tile.Cmd.Request"
80 #define BT_TILE_CMD_NOTIFY_STRING "BLE.Tile.Cmd.Notify"
83 #define BT_DEV_NAME_STRING "Name"
84 #define BT_DEV_DEVICE_ID_STRING "DeviceID"
85 #define BT_DEV_LOWENERGYENABLED_STRING "LowEnergyEnabled"
86 #define BT_DEV_ACTIVE_STRING "Active"
87 #define BT_DEV_CONNECTED_STRING "Connected"
88 #define BT_DEV_DEVICE_TYPE_STRING "DeviceType"
89 #define BT_DEV_PAIRED_STRING "Paired"
91 #define BT_DEV_GETDEVICEINFO_STRING "GetDeviceInfo"
92 #define BT_DEV_INFO_DEVICE_ID_STRING "DeviceInfo.DeviceID"
93 #define BT_DEV_INFO_PROFILE_STRING "DeviceInfo.Profile"
94 #define BT_DEV_INFO_MAC_STRING "DeviceInfo.MAC"
95 #define BT_DEV_INFO_MANUFACTURER_STRING "DeviceInfo.Manufacturer"
96 #define BT_DEV_INFO_RSSI_STRING "DeviceInfo.RSSI"
97 #define BT_DEV_INFO_SIGNALLEVEL_STRING "DeviceInfo.SignalStrength"
103 class hostIf_DeviceInfoRdk_xBT
106 hostIf_DeviceInfoRdk_xBT();
107 ~hostIf_DeviceInfoRdk_xBT() {};
111 static hostIf_DeviceInfoRdk_xBT* m_instance;
112 static int noOfDiscoveredDevice;
113 static int noOfPairedDevice;
114 static int noOfConnectedDevices;
120 static updateCallback mUpdateCallback;
125 int do_Ring_A_Tile(
bool );
171 #ifdef BLE_TILE_PROFILE
176 static void fetch_Bluetooth_DiscoveredDevicesList();
177 static void fetch_Bluetooth_PairedDevicesList();
178 static void fetch_Bluetooth_ConnectedDevicesList();
180 void notifyValueChangeEvent(updateCallback mUpdateCallback);
184 static hostIf_DeviceInfoRdk_xBT *getInstance();
185 static void closeInstance();
189 static void registerUpdateCallback(updateCallback cb);
190 static void checkForUpdates();