xref: /haiku/headers/os/bluetooth/LocalDevice.h (revision 6e927a5fc080cb934e7584454f472cacf4c3e361)
1 /*
2  * Copyright 2007 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 _LOCAL_DEVICE_H
9 #define _LOCAL_DEVICE_H
10 
11 #include <bluetooth/bluetooth.h>
12 #include <bluetooth/DeviceClass.h>
13 
14 #include <String.h>
15 
16 namespace Bluetooth {
17 
18 class DiscoveryAgent;
19 
20 class LocalDevice {
21 
22     public:
23         /* Possible throwing */
24         static   LocalDevice* GetLocalDevice();
25         static   LocalDevice* GetLocalDevice(uint8 dev);
26         static   LocalDevice* GetLocalDevice(bdaddr_t bdaddr);
27 
28                  DiscoveryAgent* GetDiscoveryAgent();
29                  BString GetFriendlyName();
30                  DeviceClass GetDeviceClass();
31         /* Possible throwing */
32                  bool SetDiscoverable(int mode);
33 
34                  BString GetProperty(const char* property);
35                  void GetProperty(const char* property, uint32* value);
36 
37                  int GetDiscoverable();
38                  BString GetBluetoothAddress();
39 				 /*
40                  ServiceRecord getRecord(Connection notifier);
41                  void updateRecord(ServiceRecord srvRecord);
42 				 */
43     private:
44         LocalDevice();
45 };
46 
47 }
48 
49 #endif
50