xref: /haiku/src/preferences/bluetooth/BluetoothDeviceView.h (revision 9080758a2454c9ab6b1d4d08c6f6f932df682ae9)
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 BLUETOOTHDEVICEVIEW_H_
6 #define BLUETOOTHDEVICEVIEW_H_
7 
8 #include <Box.h>
9 #include <Bitmap.h>
10 #include <Invoker.h>
11 #include <Message.h>
12 #include <View.h>
13 
14 #include <bluetooth/BluetoothDevice.h>
15 
16 
17 class BStringView;
18 class BitmapView;
19 
20 class BluetoothDeviceView : public BView
21 {
22 public:
23 	BluetoothDeviceView(BluetoothDevice* bDevice,
24 		uint32 flags = B_WILL_DRAW);
25 	~BluetoothDeviceView();
26 
27 			void SetBluetoothDevice(BluetoothDevice* bDevice);
28 
29 	virtual void MessageReceived(BMessage* message);
30 	virtual void SetTarget(BHandler* target);
31 	virtual void SetEnabled(bool value);
32 
33 protected:
34 	BluetoothDevice*	fDevice;
35 
36 	BStringView*		fName;
37 	BStringView*		fBdaddr;
38 	BStringView*		fClassService;
39 	BStringView*		fClass;
40 
41 	BStringView*		fHCIVersionProperties;
42 	BStringView*		fLMPVersionProperties;
43 	BStringView*		fManufacturerProperties;
44 
45 	BStringView*		fACLBuffersProperties;
46 	BStringView*		fSCOBuffersProperties;
47 
48 	BView*				fIcon;
49 };
50 
51 
52 #endif
53