xref: /haiku/src/preferences/bluetooth/ExtendedLocalDeviceView.h (revision 372a66634410cf0450e426716c14ad42d40c0da4)
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 EXTENDEDLOCALDEVICEVIEW_H_
6 #define EXTENDEDLOCALDEVICEVIEW_H_
7 
8 #include <View.h>
9 #include <Message.h>
10 #include <Invoker.h>
11 #include <Box.h>
12 #include <Bitmap.h>
13 
14 #include <bluetooth/LocalDevice.h>
15 
16 #include "BluetoothDeviceView.h"
17 
18 class BStringView;
19 class BitmapView;
20 class BCheckBox;
21 
22 class ExtendedLocalDeviceView : public BView
23 {
24 public:
25 	ExtendedLocalDeviceView(BRect frame, LocalDevice* bDevice,
26 		uint32 resizingMode = B_FOLLOW_LEFT | B_FOLLOW_TOP,
27 		uint32 flags = B_WILL_DRAW);
28 	~ExtendedLocalDeviceView(void);
29 
30 	void SetLocalDevice(LocalDevice* lDevice);
31 
32 
33 	virtual void MessageReceived(BMessage* message);
34 	virtual void AttachedToWindow();
35 	virtual void SetTarget(BHandler* target);
36 	virtual void SetEnabled(bool value);
37 			void ClearDevice();
38 
39 protected:
40 	LocalDevice*		fDevice;
41 	BCheckBox*			fAuthentication;
42 	BCheckBox*			fDiscoverable;
43 	BCheckBox*			fVisible;
44 	BluetoothDeviceView* fDeviceView;
45 	uint8 fScanMode;
46 
47 };
48 
49 
50 #endif
51