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 BLUETOOTHDEVICEVIEW_H_ 696455f01SOliver Ruiz Dorantes #define BLUETOOTHDEVICEVIEW_H_ 796455f01SOliver Ruiz Dorantes 896455f01SOliver Ruiz Dorantes #include <Box.h> 996455f01SOliver Ruiz Dorantes #include <Bitmap.h> 10155fa31eSOliver Ruiz Dorantes #include <Invoker.h> 11155fa31eSOliver Ruiz Dorantes #include <Message.h> 12155fa31eSOliver Ruiz Dorantes #include <View.h> 1396455f01SOliver Ruiz Dorantes 1496455f01SOliver Ruiz Dorantes #include <bluetooth/BluetoothDevice.h> 1596455f01SOliver Ruiz Dorantes 1696455f01SOliver Ruiz Dorantes 1796455f01SOliver Ruiz Dorantes class BStringView; 1896455f01SOliver Ruiz Dorantes class BitmapView; 1996455f01SOliver Ruiz Dorantes 2096455f01SOliver Ruiz Dorantes class BluetoothDeviceView : public BView 2196455f01SOliver Ruiz Dorantes { 2296455f01SOliver Ruiz Dorantes public: 23deaef0ebSAugustin Cavalier BluetoothDeviceView(BluetoothDevice* bDevice, 2496455f01SOliver Ruiz Dorantes uint32 flags = B_WILL_DRAW); 25*9080758aSAugustin Cavalier ~BluetoothDeviceView(); 2696455f01SOliver Ruiz Dorantes 2717836d5eSOliver Ruiz Dorantes void SetBluetoothDevice(BluetoothDevice* bDevice); 2896455f01SOliver Ruiz Dorantes 2917836d5eSOliver Ruiz Dorantes virtual void MessageReceived(BMessage* message); 3017836d5eSOliver Ruiz Dorantes virtual void SetTarget(BHandler* target); 3196455f01SOliver Ruiz Dorantes virtual void SetEnabled(bool value); 3296455f01SOliver Ruiz Dorantes 3396455f01SOliver Ruiz Dorantes protected: 3496455f01SOliver Ruiz Dorantes BluetoothDevice* fDevice; 3596455f01SOliver Ruiz Dorantes 3696455f01SOliver Ruiz Dorantes BStringView* fName; 3796455f01SOliver Ruiz Dorantes BStringView* fBdaddr; 3896455f01SOliver Ruiz Dorantes BStringView* fClassService; 3996455f01SOliver Ruiz Dorantes BStringView* fClass; 403c80fd53SOliver Ruiz Dorantes 413c80fd53SOliver Ruiz Dorantes BStringView* fHCIVersionProperties; 423c80fd53SOliver Ruiz Dorantes BStringView* fLMPVersionProperties; 433c80fd53SOliver Ruiz Dorantes BStringView* fManufacturerProperties; 443c80fd53SOliver Ruiz Dorantes 4517836d5eSOliver Ruiz Dorantes BStringView* fACLBuffersProperties; 4617836d5eSOliver Ruiz Dorantes BStringView* fSCOBuffersProperties; 4796455f01SOliver Ruiz Dorantes 48155fa31eSOliver Ruiz Dorantes BView* fIcon; 4996455f01SOliver Ruiz Dorantes }; 5096455f01SOliver Ruiz Dorantes 5196455f01SOliver Ruiz Dorantes 5296455f01SOliver Ruiz Dorantes #endif 53