xref: /haiku/src/preferences/bluetooth/BluetoothSettings.h (revision 20308ad6a7acd17d4a5c93c2b4248497468b2044)
1 /*
2  * Copyright 2008-2009, Oliver Ruiz Dorantes, <oliver.ruiz.dorantes@gmail.com>
3  * Copyright 2012-2013, Tri-Edge AI <triedgeai@gmail.com>
4  * Copyright 2021, Haiku, Inc.
5  * Distributed under the terms of the MIT License.
6  *
7  * Authors:
8  * 		Fredrik Modéen <fredrik_at_modeen.se>
9  */
10 
11 #ifndef BLUETOOTH_SETTINGS_H
12 #define BLUETOOTH_SETTINGS_H
13 
14 #include <bluetooth/bdaddrUtils.h>
15 #include <bluetooth/LocalDevice.h>
16 
17 #include <File.h>
18 #include <FindDirectory.h>
19 #include <Path.h>
20 
21 class BluetoothSettings
22 {
23 public:
24 	struct {
25 		bdaddr_t 			PickedDevice;
26 		DeviceClass			LocalDeviceClass;
27 		int32				Policy;
28 		int32				InquiryTime;
29 	} Data;
30 
31 							BluetoothSettings();
32 							~BluetoothSettings();
33 
34 	void 					Defaults();
35 	void 					Load();
36 	void 					Save();
37 
38 private:
39 	BPath 					fPath;
40 	BFile* 					fFile;
41 };
42 
43 #endif // BLUETOOTH_SETTINGS_H
44