xref: /haiku/src/preferences/bluetooth/ExtendedLocalDeviceView.h (revision aa0020bf0746210dd6b2a78ccef4558a8d7cde11)
196455f01SOliver Ruiz Dorantes /*
296455f01SOliver Ruiz Dorantes  * Copyright 2008-09, Oliver Ruiz Dorantes, <oliver.ruiz.dorantes_at_gmail.com>
396455f01SOliver Ruiz Dorantes  * All rights reserved. Distributed under the terms of the MIT License.
496455f01SOliver Ruiz Dorantes  */
596455f01SOliver Ruiz Dorantes #ifndef EXTENDEDLOCALDEVICEVIEW_H_
696455f01SOliver Ruiz Dorantes #define EXTENDEDLOCALDEVICEVIEW_H_
796455f01SOliver Ruiz Dorantes 
896455f01SOliver Ruiz Dorantes #include <View.h>
996455f01SOliver Ruiz Dorantes #include <Message.h>
1096455f01SOliver Ruiz Dorantes #include <Invoker.h>
1196455f01SOliver Ruiz Dorantes #include <Box.h>
1296455f01SOliver Ruiz Dorantes #include <Bitmap.h>
1396455f01SOliver Ruiz Dorantes 
1496455f01SOliver Ruiz Dorantes #include <bluetooth/LocalDevice.h>
1596455f01SOliver Ruiz Dorantes 
1696455f01SOliver Ruiz Dorantes #include "BluetoothDeviceView.h"
1796455f01SOliver Ruiz Dorantes 
1896455f01SOliver Ruiz Dorantes class BStringView;
1996455f01SOliver Ruiz Dorantes class BitmapView;
2096455f01SOliver Ruiz Dorantes class BCheckBox;
2196455f01SOliver Ruiz Dorantes 
2296455f01SOliver Ruiz Dorantes class ExtendedLocalDeviceView : public BView
2396455f01SOliver Ruiz Dorantes {
2496455f01SOliver Ruiz Dorantes public:
25*aa0020bfSAugustin Cavalier 	ExtendedLocalDeviceView(LocalDevice* bDevice,
2696455f01SOliver Ruiz Dorantes 		uint32 flags = B_WILL_DRAW);
27*aa0020bfSAugustin Cavalier 	~ExtendedLocalDeviceView();
2896455f01SOliver Ruiz Dorantes 
2996455f01SOliver Ruiz Dorantes 	void SetLocalDevice(LocalDevice* lDevice);
3096455f01SOliver Ruiz Dorantes 
3196455f01SOliver Ruiz Dorantes 
32c2ee80e5SOliver Ruiz Dorantes 	virtual void MessageReceived(BMessage* message);
3396455f01SOliver Ruiz Dorantes 	virtual void AttachedToWindow();
34c2ee80e5SOliver Ruiz Dorantes 	virtual void SetTarget(BHandler* target);
3596455f01SOliver Ruiz Dorantes 	virtual void SetEnabled(bool value);
367a74a5dfSFredrik Modéen 			void ClearDevice();
3796455f01SOliver Ruiz Dorantes 
3896455f01SOliver Ruiz Dorantes protected:
3996455f01SOliver Ruiz Dorantes 	LocalDevice*		fDevice;
40c2ee80e5SOliver Ruiz Dorantes 	BCheckBox*			fAuthentication;
4196455f01SOliver Ruiz Dorantes 	BCheckBox*			fDiscoverable;
4296455f01SOliver Ruiz Dorantes 	BCheckBox*			fVisible;
4396455f01SOliver Ruiz Dorantes 	BluetoothDeviceView* fDeviceView;
4496455f01SOliver Ruiz Dorantes 	uint8 fScanMode;
4596455f01SOliver Ruiz Dorantes 
4696455f01SOliver Ruiz Dorantes };
4796455f01SOliver Ruiz Dorantes 
4896455f01SOliver Ruiz Dorantes 
4996455f01SOliver Ruiz Dorantes #endif
50