* Remove unneeded files

* Make all but DialupAddOn add-ons build. 

Not that usefull though, as Services, Dummy and Multi add-ons are totally 
useless. Status/Overview add-on show interface status, allow to change their 
configuration like NetworkStatus replicant does. 
But it doesn't watch (yet) for interface/link status change notifications.



git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@33161 a95241bf-73f2-0310-859d-f6bbb57e9c96
This commit is contained in:
Philippe Houdoin 2009-09-18 01:18:48 +00:00
parent 1720217701
commit 7fecee2ccb
20 changed files with 27 additions and 38 deletions

View File

@ -1,4 +1,4 @@
SubDir OBOS_TOP src tests kits net preflet DialUpAddOn ; SubDir HAIKU_TOP src tests kits net preflet DialUpAddOn ;
# set some additional defines # set some additional defines
{ {
@ -15,18 +15,18 @@ SubDir OBOS_TOP src tests kits net preflet DialUpAddOn ;
UsePrivateHeaders net ; UsePrivateHeaders net ;
# For NetworkSetupAddOn.h, to be moved to private once... # For NetworkSetupAddOn.h, to be moved to private once...
UseHeaders [ FDirName $(OBOS_TOP) src tests kits net preflet ] ; UseHeaders [ FDirName $(HAIKU_TOP) src tests kits net preflet ] ;
UseHeaders [ FDirName $(OBOS_TOP) src add-ons kernel network ppp shared libppp headers ] ; UseHeaders [ FDirName $(HAIKU_TOP) src add-ons kernel network ppp shared libppp headers ] ;
UseHeaders [ FDirName $(OBOS_TOP) src add-ons kernel network ppp shared libkernelppp headers ] ; UseHeaders [ FDirName $(HAIKU_TOP) src add-ons kernel network ppp shared libkernelppp headers ] ;
# additonal headers for built-in add-ons: # additonal headers for built-in add-ons:
UseHeaders [ FDirName $(OBOS_TOP) src add-ons kernel network ppp pppoe ] ; # PPPoE UseHeaders [ FDirName $(HAIKU_TOP) src add-ons kernel network ppp pppoe ] ; # PPPoE
UseHeaders [ FDirName $(OBOS_TOP) src add-ons kernel network ppp ipcp ] ; # IPCP UseHeaders [ FDirName $(HAIKU_TOP) src add-ons kernel network ppp ipcp ] ; # IPCP
AddResources DialUp : DialUpPreflet.rdef ; AddResources DialUp : DialUpPreflet.rdef ;
Addon DialUp : network_setup : Addon DialUp :
AddOn.cpp AddOn.cpp
DialUpView.cpp DialUpView.cpp

View File

@ -1 +0,0 @@
../NetworkSetup

View File

@ -1,26 +1,15 @@
SubDir HAIKU_TOP src tests kits net preflet ; SubDir HAIKU_TOP src tests kits net preflet ;
SimpleTest Network_Setup : SimpleTest NetworkSetup :
NetworkSetup.cpp NetworkSetup.cpp
NetworkSetupWindow.cpp NetworkSetupWindow.cpp
NetworkSetupProfile.cpp NetworkSetupProfile.cpp
NetworkSetupAddOn.cpp NetworkSetupAddOn.cpp
: be root : be root $(TARGET_LIBSTDC++)
; ;
{ SubInclude HAIKU_TOP src tests kits net preflet StatusAddOn ;
# symlink the userland add-ons dir to the dir where the net_stack_tester lives SubInclude HAIKU_TOP src tests kits net preflet ServicesAddOn ;
local dir = [ on Network\_Setup return $(LOCATE) ] ; SubInclude HAIKU_TOP src tests kits net preflet DummyAddOn ;
MakeLocate <network_setup-add-ons>network_setup : $(HAIKU_ADDON_DIR) ; SubInclude HAIKU_TOP src tests kits net preflet MultipleAddOns ;
MakeLocate <network_setup-add-ons>add-ons : $(dir) ;
RelSymLink <network_setup-add-ons>add-ons : <network_setup-add-ons>network_setup : false ;
# alias for the stack_tester the modules link against
LOCATE on <installed>Network_Setup = $(dir) ;
Depends <installed>Network_Setup : Network_Setup ;
}
# SubInclude HAIKU_TOP src tests kits net preflet StatusAddOn ;
# SubInclude HAIKU_TOP src tests kits net preflet ServicesAddOn ;
# SubInclude HAIKU_TOP src tests kits net preflet DialUpAddOn ; # SubInclude HAIKU_TOP src tests kits net preflet DialUpAddOn ;

View File

@ -1 +0,0 @@
../NetworkSetup

View File

@ -2,9 +2,8 @@ SubDir HAIKU_TOP src tests kits net preflet ServicesAddOn ;
UseHeaders [ FDirName $(HAIKU_TOP) src tests kits net preflet ] ; UseHeaders [ FDirName $(HAIKU_TOP) src tests kits net preflet ] ;
Addon Services : network_setup : Addon Services :
ServicesAddOn.cpp ServicesAddOn.cpp
: be <nogrist>NetworkSetup $(TARGET_LIBSTDC++) # $(HAIKU_NETWORK_LIBS)
; ;
LinkSharedOSLibs Services : <installed>Network_Setup be ;

View File

@ -1 +0,0 @@
../NetworkSetup

View File

@ -115,7 +115,7 @@ InterfaceStatusItem::DrawItem(BView* owner, BRect /*bounds*/, bool complete)
if (fSetting->GetAutoConfigure()) if (fSetting->GetAutoConfigure())
owner->DrawString("DHCP enabled", commentPt); owner->DrawString("DHCP enabled", commentPt);
else else
owner->DrawString("DHCP Disabled, use static IP adress", commentPt); owner->DrawString("DHCP disabled, use static IP adress", commentPt);
} else } else

View File

@ -1,11 +1,18 @@
SubDir HAIKU_TOP src tests kits net preflet StatusAddOn ; SubDir HAIKU_TOP src tests kits net preflet StatusAddOn ;
UseHeaders [ FDirName $(HAIKU_TOP) src tests kits net preflet ] ; UseHeaders [ FDirName $(HAIKU_TOP) src tests kits net preflet ] ;
UseHeaders [ FDirName $(HAIKU_TOP) src servers net ] : true ;
Addon Overview : network_setup : UsePrivateHeaders shared ;
Addon Overview :
NetworkStatusAddOn.cpp NetworkStatusAddOn.cpp
InterfaceStatusItem.cpp
Setting.cpp
NetworkWindow.cpp
EthernetSettingsView.cpp
: be <nogrist>NetworkSetup $(HAIKU_NETWORK_LIBS) $(TARGET_LIBSTDC++)
; ;
LinkSharedOSLibs Overview : be ;
AddResources Overview : Resource.rsrc ; AddResources Overview : Resource.rsrc ;

View File

@ -159,6 +159,7 @@ NetworkStatusAddOn::MessageReceived(BMessage* msg)
break; break;
item->SetEnabled(!item->Enabled()); item->SetEnabled(!item->Enabled());
fOnOff->SetLabel(item->Enabled() ? "Disable" : "Enable");
fListview->Invalidate(); fListview->Invalidate();
break; break;

Binary file not shown.

Before

Width:  |  Height:  |  Size: 46 KiB

View File

@ -1 +0,0 @@
/HAIKU_DATA/work/haiku/src/tests/kits/net/preflet/DummyAddOn/Dummy

View File

@ -1 +0,0 @@
/HAIKU_DATA/work/haiku/src/tests/kits/net/preflet/MultipleAddOns/Multiple

View File

@ -1 +0,0 @@
../StatusAddOn/Overview

View File

@ -1 +0,0 @@
../ServicesAddOn/Services

Binary file not shown.

Before

Width:  |  Height:  |  Size: 49 KiB