10963754eSOliver Ruiz Dorantes /* 20963754eSOliver Ruiz Dorantes * Copyright 2008 Oliver Ruiz Dorantes, oliver.ruiz.dorantes_at_gmail.com 30963754eSOliver Ruiz Dorantes * All rights reserved. Distributed under the terms of the MIT License. 40963754eSOliver Ruiz Dorantes */ 50963754eSOliver Ruiz Dorantes #ifndef _BLUETOOTH_DEVICE_H 60963754eSOliver Ruiz Dorantes #define _BLUETOOTH_DEVICE_H 70963754eSOliver Ruiz Dorantes 8*36cb67b2SOliver Ruiz Dorantes #include <bluetooth/bdaddrUtils.h> 90963754eSOliver Ruiz Dorantes #include <bluetooth/bluetooth.h> 100963754eSOliver Ruiz Dorantes #include <bluetooth/DeviceClass.h> 110963754eSOliver Ruiz Dorantes 120963754eSOliver Ruiz Dorantes #include <Message.h> 13*36cb67b2SOliver Ruiz Dorantes #include <Messenger.h> 140963754eSOliver Ruiz Dorantes #include <String.h> 150963754eSOliver Ruiz Dorantes 160963754eSOliver Ruiz Dorantes 170963754eSOliver Ruiz Dorantes namespace Bluetooth { 180963754eSOliver Ruiz Dorantes 190963754eSOliver Ruiz Dorantes class BluetoothDevice { 200963754eSOliver Ruiz Dorantes 210963754eSOliver Ruiz Dorantes public: BluetoothDevice()2237c7d5d8SOliver Ruiz Dorantes BluetoothDevice() 2337c7d5d8SOliver Ruiz Dorantes : 2437c7d5d8SOliver Ruiz Dorantes fBdaddr(bdaddrUtils::NullAddress()), 2537c7d5d8SOliver Ruiz Dorantes fDeviceClass() 2637c7d5d8SOliver Ruiz Dorantes { 2737c7d5d8SOliver Ruiz Dorantes 2837c7d5d8SOliver Ruiz Dorantes } 290963754eSOliver Ruiz Dorantes 300963754eSOliver Ruiz Dorantes virtual BString GetFriendlyName()=0; 310963754eSOliver Ruiz Dorantes virtual DeviceClass GetDeviceClass()=0; 320963754eSOliver Ruiz Dorantes 330963754eSOliver Ruiz Dorantes virtual BString GetProperty(const char* property)=0; 343fdaa5bfSOliver Ruiz Dorantes virtual status_t GetProperty(const char* property, uint32* value)=0; 350963754eSOliver Ruiz Dorantes 360963754eSOliver Ruiz Dorantes virtual bdaddr_t GetBluetoothAddress()=0; 370963754eSOliver Ruiz Dorantes 380963754eSOliver Ruiz Dorantes protected: 390963754eSOliver Ruiz Dorantes bdaddr_t fBdaddr; 400963754eSOliver Ruiz Dorantes DeviceClass fDeviceClass; 410963754eSOliver Ruiz Dorantes }; 420963754eSOliver Ruiz Dorantes 430963754eSOliver Ruiz Dorantes } 440963754eSOliver Ruiz Dorantes 4537c7d5d8SOliver Ruiz Dorantes 460963754eSOliver Ruiz Dorantes #ifndef _BT_USE_EXPLICIT_NAMESPACE 470963754eSOliver Ruiz Dorantes using Bluetooth::BluetoothDevice; 480963754eSOliver Ruiz Dorantes #endif 490963754eSOliver Ruiz Dorantes 50001662aeSOliver Ruiz Dorantes #endif // _BLUETOOTH_DEVICE_H 51