class BluetoothDevice
{
public:
- BluetoothDevice(bt_adapter_device_discovery_info_s *discoveryInfo);
- BluetoothDevice(bt_device_info_s *deviceInfo);
+ BluetoothDevice(bt_adapter_device_discovery_info_s *discoveryInfo, char *devicePath = NULL);
+ BluetoothDevice(bt_device_info_s *deviceInfo, char *devicePath = NULL);
virtual ~BluetoothDevice();
void updateInfo(bt_device_info_s *deviceInfo);
std::string getName() const;
std::string getAddress() const;
+ char* getDevicePath() const {return mDevicePath;}
JSValueRef getDeviceClass(JSContextRef context);
bool isBonded() const;
bool isTrusted() const;
private:
char *getDefaultAdapter() const;
+ char *deviceFromAddress() const;
char *getDevice() const;
private:
std::string mName;
std::string mAddress;
+ char *mDevicePath;
BluetoothClassSharedPtr mDeviceClass;
std::vector<std::string> mUUIDs;
- //Common::PropertyBag mLocalProperty;
bool isUpdated;
};