docs/ikteam: Delete most files.
[haiku.git] / src / preferences / bluetooth / DeviceListItem.h
blob254bc2f6e5df191dd5ce3eb6da66127326a255c1
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 namespace Bluetooth {
16 class DeviceListItem : public BListItem
18 public:
19 DeviceListItem(BluetoothDevice* bDevice);
21 ~DeviceListItem();
23 void DrawItem(BView*, BRect, bool = false);
24 void Update(BView* owner, const BFont* font);
26 static int Compare(const void* firstArg, const void* secondArg);
27 void SetDevice(BluetoothDevice* bDevice);
28 BluetoothDevice* Device() const;
30 private:
31 BluetoothDevice* fDevice;
32 bdaddr_t fAddress;
33 DeviceClass fClass;
34 BString fName;
35 int32 fRSSI;
42 #endif