2 * Copyright 2014-2015 Haiku Inc. All rights reserved.
3 * Distributed under the terms of the MIT License.
6 * Adrien Destugues, pulkomandy@pulkomandy.tk
8 #ifndef DNS_SETTINGS_VIEW_H
9 #define DNS_SETTINGS_VIEW_H
12 #include <NetworkSettingsAddOn.h>
13 #include <StringList.h>
17 using namespace BNetworkKit
;
24 class DNSSettingsView
: public BView
{
26 DNSSettingsView(BNetworkSettingsItem
* item
);
30 bool IsRevertable() const;
32 virtual void AttachedToWindow();
33 virtual void MessageReceived(BMessage
* message
);
36 status_t
_LoadDNSConfiguration();
37 status_t
_SaveDNSConfiguration();
42 BListView
* fServerListView
;
43 BStringList fRevertList
;
44 BTextControl
* fTextControl
;
45 BTextControl
* fDomain
;
48 BButton
* fRemoveButton
;
51 BButton
* fApplyButton
;
55 #endif // DNS_SETTINGS_VIEW_H