xref: /haiku/headers/os/bluetooth/BluetoothDevice.h (revision b06a48ab8f30b45916a9c157b992827779182163)
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/bluetooth.h>
9 #include <bluetooth/DeviceClass.h>
10 
11 #include <Messenger.h>
12 #include <Message.h>
13 
14 #include <String.h>
15 
16 
17 namespace Bluetooth {
18 
19 class BluetoothDevice {
20 
21 	public:
22 
23 		virtual BString GetFriendlyName()=0;
24 		virtual DeviceClass GetDeviceClass()=0;
25 
26 		virtual BString GetProperty(const char* property)=0;
27 		virtual void GetProperty(const char* property, uint32* value)=0;
28 
29 		virtual bdaddr_t GetBluetoothAddress()=0;
30 
31 	protected:
32 		bdaddr_t fBdaddr;
33 		DeviceClass fDeviceClass;
34 };
35 
36 }
37 
38 #ifndef _BT_USE_EXPLICIT_NAMESPACE
39 using Bluetooth::BluetoothDevice;
40 #endif
41 
42 #endif // _BLUETOOTH_DEVICE_H
43