1 /* 2 * Copyright 2008 Oliver Ruiz Dorantes, oliver.ruiz.dorantes_at_gmail.com 3 * 4 * All rights reserved. Distributed under the terms of the MIT License. 5 * 6 */ 7 8 #ifndef _BLUETOOTH_DEVICE_H 9 #define _BLUETOOTH_DEVICE_H 10 11 #include <bluetooth/bluetooth.h> 12 #include <bluetooth/DeviceClass.h> 13 14 15 #include <Messenger.h> 16 #include <Message.h> 17 18 #include <String.h> 19 20 21 namespace Bluetooth { 22 23 class BluetoothDevice { 24 25 public: 26 27 virtual BString GetFriendlyName()=0; 28 virtual DeviceClass GetDeviceClass()=0; 29 30 virtual BString GetProperty(const char* property)=0; 31 virtual void GetProperty(const char* property, uint32* value)=0; 32 33 virtual bdaddr_t GetBluetoothAddress()=0; 34 35 protected: 36 bdaddr_t fBdaddr; 37 DeviceClass fDeviceClass; 38 }; 39 40 } 41 42 #ifndef _BT_USE_EXPLICIT_NAMESPACE 43 using Bluetooth::BluetoothDevice; 44 #endif 45 46 #endif 47