2 * Copyright 2004-2015 Haiku, Inc. All rights reserved.
3 * Distributed under the terms of the MIT License.
6 * Axel Dörfler, <axeld@pinc-software.de>
7 * Alexander von Gluck, kallisti5@unixzen.com
8 * John Scipione, jscipione@gmail.com
10 #ifndef INTERFACE_VIEW_H
11 #define INTERFACE_VIEW_H
14 #include <GroupView.h>
15 #include <NetworkInterface.h>
24 class InterfaceView
: public BGroupView
{
27 virtual ~InterfaceView();
29 void SetTo(const char* name
);
31 virtual void MessageReceived(BMessage
* message
);
32 virtual void AttachedToWindow();
36 status_t
_Update(bool updateWirelessNetworks
= true);
37 void _EnableFields(bool enabled
);
40 BNetworkInterface fInterface
;
43 BStringView
* fStatusField
;
44 BStringView
* fMacAddressField
;
45 BStringView
* fLinkSpeedField
;
46 BStringView
* fLinkTxField
;
47 BStringView
* fLinkRxField
;
49 BMenuField
* fNetworkMenuField
;
51 BButton
* fToggleButton
;
52 BButton
* fRenegotiateButton
;
56 #endif // INTERFACE_HARDWARE_VIEW_H