2 * Copyright 2004-2015 Haiku, Inc. All rights reserved.
3 * Distributed under the terms of the MIT License.
6 * Alexander von Gluck, kallisti5@unixzen.com
9 * John Scipione, jscipione@gmail.com
11 #ifndef INTERFACE_LIST_ITEM_H
12 #define INTERFACE_LIST_ITEM_H
16 #include <NetworkInterface.h>
17 #include <NetworkSettingsAddOn.h>
23 class InterfaceListItem
: public BListItem
,
24 public BNetworkKit::BNetworkConfigurationListener
{
26 InterfaceListItem(const char* name
);
29 void DrawItem(BView
* owner
,
30 BRect bounds
, bool complete
);
31 void Update(BView
* owner
, const BFont
* font
);
33 inline const char* Name() const { return fInterface
.Name(); }
35 virtual void ConfigurationUpdated(const BMessage
& message
);
39 void _PopulateBitmaps(const char* mediaType
);
41 BBitmap
* _StateIcon() const;
42 const char* _StateText() const;
46 BBitmap
* fIconOffline
;
47 BBitmap
* fIconPending
;
50 BNetworkInterface fInterface
;
53 float fFirstLineOffset
;
64 #endif // INTERFACE_LIST_ITEM_H