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