2 * Copyright 2008-2009, Oliver Ruiz Dorantes, <oliver.ruiz.dorantes@gmail.com>
3 * Copyright 2012-2013, Tri-Edge AI, <triedgeai@gmail.com>
5 * All rights reserved. Distributed under the terms of the MIT License.
8 #ifndef BLUETOOTH_SETTINGS_VIEW_H
9 #define BLUETOOTH_SETTINGS_VIEW_H
11 #include "BluetoothSettings.h"
15 class BluetoothSettings
;
16 class ExtendedLocalDeviceView
;
23 class BluetoothSettingsView
: public BView
{
25 BluetoothSettingsView(const char* name
);
26 virtual ~BluetoothSettingsView();
28 virtual void AttachedToWindow();
29 virtual void MessageReceived(BMessage
* message
);
33 void _BuildConnectionPolicy();
34 void _BuildClassMenu();
35 void _BuildLocalDevicesMenu();
36 bool _SetDeviceClass(uint8 major
, uint8 minor
,
38 void _MarkLocalDevice(LocalDevice
* lDevice
);
41 BluetoothSettings fSettings
;
45 BMenuField
* fPolicyMenuField
;
46 BPopUpMenu
* fPolicyMenu
;
47 BMenuField
* fClassMenuField
;
48 BPopUpMenu
* fClassMenu
;
49 BMenuField
* fLocalDevicesMenuField
;
50 BPopUpMenu
* fLocalDevicesMenu
;
52 ExtendedLocalDeviceView
* fExtDeviceView
;
54 BSlider
* fInquiryTimeControl
;
58 #endif // BLUETOOTH_SETTINGS_VIEW_H