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