c8bc2d8897
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@26228 a95241bf-73f2-0310-859d-f6bbb57e9c96
47 lines
892 B
C++
47 lines
892 B
C++
/*
|
|
* 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 {
|
|
|
|
public:
|
|
|
|
virtual BString GetFriendlyName()=0;
|
|
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;
|
|
|
|
protected:
|
|
bdaddr_t fBdaddr;
|
|
DeviceClass fDeviceClass;
|
|
};
|
|
|
|
}
|
|
|
|
#ifndef _BT_USE_EXPLICIT_NAMESPACE
|
|
using Bluetooth::BluetoothDevice;
|
|
#endif
|
|
|
|
#endif
|