/* * Copyright 2009, Oliver Ruiz Dorantes, * All rights reserved. Distributed under the terms of the MIT License. */ #ifndef DEVICELISTITEM_H_ #define DEVICELISTITEM_H_ #include #include #include #include class BluetoothDevice; namespace Bluetooth { class DeviceListItem : public BListItem { public: DeviceListItem(BluetoothDevice* bDevice); DeviceListItem(bdaddr_t bdaddr, DeviceClass dClass, int32 rssi = 0); ~DeviceListItem(); void DrawItem(BView *, BRect, bool = false); void Update(BView *owner, const BFont *font); static int Compare(const void *firstArg, const void *secondArg); void SetDevice(BluetoothDevice* bDevice); private: BluetoothDevice* fDevice; bdaddr_t fAddress; DeviceClass fClass; BString fName; int32 fRSSI; }; } #endif