/* * Copyright 2008-2009, Oliver Ruiz Dorantes, * Copyright 2012-2013, Tri-Edge AI, * * All rights reserved. Distributed under the terms of the MIT License. */ #ifndef BLUETOOTH_SETTINGS_VIEW_H #define BLUETOOTH_SETTINGS_VIEW_H #include "BluetoothSettings.h" #include class BluetoothSettings; class ExtendedLocalDeviceView; class BBox; class BMenuField; class BPopUpMenu; class BSlider; class BOptionPopUp; class BluetoothSettingsView : public BView { public: BluetoothSettingsView(const char* name); virtual ~BluetoothSettingsView(); virtual void AttachedToWindow(); virtual void MessageReceived(BMessage* message); private: void _BuildLocalDevicesMenu(); bool _SetDeviceClass(uint8 major, uint8 minor, uint16 service); void _MarkLocalDevice(LocalDevice* lDevice); int _GetClassForMenu(); protected: BluetoothSettings fSettings; float fDivider; BOptionPopUp* fPolicyMenu; BOptionPopUp* fClassMenu; BMenuField* fLocalDevicesMenuField; BPopUpMenu* fLocalDevicesMenu; ExtendedLocalDeviceView* fExtDeviceView; BSlider* fInquiryTimeControl; }; #endif // BLUETOOTH_SETTINGS_VIEW_H