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>
12 #include <NetworkSettings.h>
16 using namespace BNetworkKit
;
21 class ServiceView
: public BView
{
23 ServiceView(const char* name
,
24 const char* executable
, const char* title
,
25 const char* description
,
26 BNetworkSettings
& settings
);
27 virtual ~ServiceView();
29 bool IsRevertable() const;
32 void SettingsUpdated(uint32 which
);
34 virtual void AttachedToWindow();
35 virtual void MessageReceived(BMessage
* message
);
38 virtual bool IsEnabled() const;
39 virtual void Enable();
40 virtual void Disable();
44 void _UpdateEnableButton();
48 const char* fExecutable
;
49 BNetworkSettings
& fSettings
;
50 BButton
* fEnableButton
;
55 #endif // SERVICE_VIEW_H