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(BRect frame, BluetoothDevice* bDevice, 24 uint32 resizingMode = B_FOLLOW_LEFT | B_FOLLOW_TOP, 25 uint32 flags = B_WILL_DRAW); 26 ~BluetoothDeviceView(void); 27 28 void SetBluetoothDevice(BluetoothDevice* bDevice); 29 30 virtual void MessageReceived(BMessage* message); 31 virtual void SetTarget(BHandler* target); 32 virtual void SetEnabled(bool value); 33 34 protected: 35 BluetoothDevice* fDevice; 36 37 BStringView* fName; 38 BStringView* fBdaddr; 39 BStringView* fClassService; 40 BStringView* fClass; 41 42 BStringView* fHCIVersionProperties; 43 BStringView* fLMPVersionProperties; 44 BStringView* fManufacturerProperties; 45 46 BStringView* fACLBuffersProperties; 47 BStringView* fSCOBuffersProperties; 48 49 BView* fIcon; 50 }; 51 52 53 #endif 54