2 * Copyright 2015 Haiku, Inc. All rights reserved.
3 * Distributed under the terms of the MIT License.
6 * Axel Dörfler, <axeld@pinc-software.de>
8 #ifndef SERVICE_LIST_ITEM_H
9 #define SERVICE_LIST_ITEM_H
13 #include <NetworkSettings.h>
14 #include <NetworkSettingsAddOn.h>
17 using namespace BNetworkKit
;
20 class ServiceListItem
: public BListItem
,
21 public BNetworkKit::BNetworkSettingsListener
{
23 ServiceListItem(const char* name
,
25 const BNetworkSettings
& settings
);
26 virtual ~ServiceListItem();
28 const char* Label() const { return fLabel
; }
30 virtual void DrawItem(BView
* owner
,
31 BRect bounds
, bool complete
);
32 virtual void Update(BView
* owner
, const BFont
* font
);
34 inline const char* Name() const { return fName
; }
36 virtual void SettingsUpdated(uint32 type
);
39 virtual bool IsEnabled();
44 const BNetworkSettings
&
53 #endif // SERVICE_LIST_ITEM_H