1 /* 2 * Copyright 2008-09, Oliver Ruiz Dorantes, <oliver.ruiz.dorantes_at_gmail.com> 3 * All rights reserved. Distributed under the terms of the MIT License. 4 */ 5 #ifndef BLUETOOTH_SETTINGS_VIEW_H 6 #define BLUETOOTH_SETTINGS_VIEW_H 7 8 9 #include <View.h> 10 11 class BBox; 12 class BMenuField; 13 class BPopUpMenu; 14 class BSlider; 15 16 class ExtendedLocalDeviceView; 17 18 class BluetoothSettingsView : public BView { 19 public: 20 BluetoothSettingsView(const char* name); 21 virtual ~BluetoothSettingsView(); 22 23 virtual void AttachedToWindow(); 24 virtual void MessageReceived(BMessage* message); 25 26 27 private: 28 void _BuildConnectionPolicy(); 29 void _BuildClassMenu(); 30 void _BuildLocalDevicesMenu(); 31 bool _SetDeviceClass(uint8 major, uint8 minor 32 , uint16 service); 33 34 protected: 35 float fDivider; 36 37 BMenuField* fPolicyMenuField; 38 BPopUpMenu* fPolicyMenu; 39 BMenuField* fClassMenuField; 40 BPopUpMenu* fClassMenu; 41 BMenuField* fLocalDevicesMenuField; 42 BPopUpMenu* fLocalDevicesMenu; 43 44 ExtendedLocalDeviceView* fExtDeviceView; 45 46 BSlider* fInquiryTimeControl; 47 48 }; 49 50 #endif // BLUETOOTH_SETTINGS_VIEW_H 51