2008-07-03 00:01:02 +04:00
|
|
|
/*
|
|
|
|
* Copyright 2008 Oliver Ruiz Dorantes, oliver.ruiz.dorantes_at_gmail.com
|
|
|
|
* All rights reserved. Distributed under the terms of the MIT License.
|
|
|
|
*/
|
|
|
|
#ifndef _BLUETOOTH_DEVICE_H
|
|
|
|
#define _BLUETOOTH_DEVICE_H
|
|
|
|
|
|
|
|
#include <bluetooth/bluetooth.h>
|
|
|
|
#include <bluetooth/DeviceClass.h>
|
|
|
|
|
|
|
|
#include <Messenger.h>
|
|
|
|
#include <Message.h>
|
|
|
|
|
|
|
|
#include <String.h>
|
|
|
|
|
|
|
|
|
|
|
|
namespace Bluetooth {
|
|
|
|
|
|
|
|
class BluetoothDevice {
|
2008-08-01 01:08:27 +04:00
|
|
|
|
|
|
|
public:
|
2008-07-03 00:01:02 +04:00
|
|
|
|
|
|
|
virtual BString GetFriendlyName()=0;
|
2008-08-01 01:08:27 +04:00
|
|
|
virtual DeviceClass GetDeviceClass()=0;
|
|
|
|
|
|
|
|
virtual BString GetProperty(const char* property)=0;
|
|
|
|
virtual void GetProperty(const char* property, uint32* value)=0;
|
|
|
|
|
|
|
|
virtual bdaddr_t GetBluetoothAddress()=0;
|
2008-07-03 00:01:02 +04:00
|
|
|
|
|
|
|
protected:
|
2008-08-01 01:08:27 +04:00
|
|
|
bdaddr_t fBdaddr;
|
|
|
|
DeviceClass fDeviceClass;
|
2008-07-03 00:01:02 +04:00
|
|
|
};
|
2008-08-01 01:08:27 +04:00
|
|
|
|
2008-07-03 00:01:02 +04:00
|
|
|
}
|
|
|
|
|
|
|
|
#ifndef _BT_USE_EXPLICIT_NAMESPACE
|
|
|
|
using Bluetooth::BluetoothDevice;
|
|
|
|
#endif
|
|
|
|
|
2008-08-03 01:15:02 +04:00
|
|
|
#endif // _BLUETOOTH_DEVICE_H
|