fat: Greatly simplify and clean up dosfs_get_file_map().
[haiku.git] / src / preferences / bluetooth / DeviceListItem.h
blob5f72fd39f58a1d7149ac2af31cbba20073a43c92
1 /*
2 * Copyright 2009, Oliver Ruiz Dorantes, <oliver.ruiz.dorantes_at_gmail.com>
3 * All rights reserved. Distributed under the terms of the MIT License.
4 */
5 #ifndef DEVICELISTITEM_H_
6 #define DEVICELISTITEM_H_
8 #include <ListItem.h>
9 #include <String.h>
11 #include <bluetooth/bluetooth.h>
12 #include <bluetooth/DeviceClass.h>
14 class BluetoothDevice;
16 namespace Bluetooth {
18 class DeviceListItem : public BListItem
20 public:
21 DeviceListItem(BluetoothDevice* bDevice);
23 ~DeviceListItem();
25 void DrawItem(BView*, BRect, bool = false);
26 void Update(BView* owner, const BFont* font);
28 static int Compare(const void* firstArg, const void* secondArg);
29 void SetDevice(BluetoothDevice* bDevice);
30 BluetoothDevice* Device() const;
32 private:
33 BluetoothDevice* fDevice;
34 bdaddr_t fAddress;
35 DeviceClass fClass;
36 BString fName;
37 int32 fRSSI;
44 #endif