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