History log of /haiku-fatelf/src/preferences/network/EthernetSettingsView.cpp
Revision Date Author Comments
# 8ffa652c 16-Aug-2012 Oliver Tappe <zooey@hirschkaefer.de>

Fix build.


# 468f8266 16-Aug-2012 Humdinger <humdingerb@gmail.com>

Some more string translations.

A few more translator changes I missed with last commit.
Added a few more strings for translation, pointed out by diver.
Thanks!


# aed35104 05-Aug-2012 Humdinger <humdingerb@gmail.com>

Close alerts with ESCAPE key.

Added SetFlags(B_CLOSE_ON_ESCAPE) or SetShortcut(index, B_ESCAPE) to BAlerts
depending if the result gets used later in the code, or if it's a one-button
BAlert.


# 546208a5 16-Apr-2012 Oliver Tappe <zooey@hirschkaefer.de>

More catalog-related cleanup.

* rename B_TRANSLATE_CONTEXT to B_TRANSLATION_CONTEXT and
B_TRANSLATE_WITH_CONTEXT to B_TRANSLATE_CONTEXT, squashing a TODO
* adjust all uses of both macros in Haiku's source tree
* use correct header guard for collecting/Catalog.h

The renamed macros require adjustments to all external applications
using catalogs.


# 916c873b 15-Jun-2011 Axel Dörfler <axeld@pinc-software.de>

* Solved #7038 a bit nicer by disabling the interface.


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@42196 a95241bf-73f2-0310-859d-f6bbb57e9c96


# c9769c1c 09-May-2011 Alexander von Gluck IV <kallisti5@unixzen.com>

small workaround to prevent network preflet crashes on NAT network cards in VirtualBox and VMWare. Not a final solution but preventing a crash is always a plus. resolves #7038. Thanks Skipp_OSX!

git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@41412 a95241bf-73f2-0310-859d-f6bbb57e9c96


# b8268a2d 13-Dec-2010 Axel Dörfler <axeld@pinc-software.de>

* Added the wireless network setting to the Settings class, and also read out
the initial value from the "interface" settings file.
* The setting should now work as expected.
* Also consider interfaces in configuring state as being automatically managed.


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@39842 a95241bf-73f2-0310-859d-f6bbb57e9c96


# a2158925 13-Dec-2010 Axel Dörfler <axeld@pinc-software.de>

* Added a menu field that is only visible when a wireless device is selected,
and that allows you to force a specific network upon start. That setting isn't
restored yet when you launch Network, though.
* Also, it shows two bugs in the layout engine.


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@39834 a95241bf-73f2-0310-859d-f6bbb57e9c96


# 654520d7 13-Dec-2010 Axel Dörfler <axeld@pinc-software.de>

* Reimplemented _TriggerAutoConfig() to use the new
BNetworkInterface::AutoConfigure() method.
* Moved methods around to reflect their declaration order.
* Removed unused _PrepareRequest().


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@39828 a95241bf-73f2-0310-859d-f6bbb57e9c96


# f65256c2 09-Aug-2010 Axel Dörfler <axeld@pinc-software.de>

* Fixed a bug in BNetworkRoster::GetNextInterface() that caused an endless loop
and always returned the first interface.
* Fixed bug #6436 by using the new BNetworkRoster functionality.


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@37994 a95241bf-73f2-0310-859d-f6bbb57e9c96


# 2d3904fe 10-Jun-2010 Philippe Houdoin <philippe.houdoin@gmail.com>

Add interface disabling support.


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@37091 a95241bf-73f2-0310-859d-f6bbb57e9c96


# 4eb0cbb0 07-May-2010 Matt Madia <mattmadia@gmail.com>

Updated TR_CONTEXT to be B_TRANSLATE_CONTEXT, relating to #5408.


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@36733 a95241bf-73f2-0310-859d-f6bbb57e9c96


# 0f4ad672 06-May-2010 Matt Madia <mattmadia@gmail.com>

Updated to use B_TRANSLATE* macros. relates to #5408.

git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@36692 a95241bf-73f2-0310-859d-f6bbb57e9c96


# 0f87f52f 23-Mar-2010 Stephan Aßmus <superstippi@gmx.de>

Patch by Vegard Waerp: Added support for setting the the local domain in the
Network settings and setting the domain if received by DHCP.

Thanks a lot, closes #5619.


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@35938 a95241bf-73f2-0310-859d-f6bbb57e9c96


# 24957bd4 18-Mar-2010 Philippe Houdoin <philippe.houdoin@gmail.com>

Fixed last places where resolv.conf was still expected under /etc, UserGuide included. Fixed authentication misspelling

git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@35898 a95241bf-73f2-0310-859d-f6bbb57e9c96


# 0b2fbbfa 24-Dec-2009 Adrien Destugues <pulkomandy@pulkomandy.ath.cx>

Patch by Humdinger to convert all the preference panels to sentance case.
Also update the localization catalogs as needed.
CPUFrequency localization is broken : the current code works, but the DoCatalogs jamrule is not powerful enough to properly extract the catkeys.


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@34767 a95241bf-73f2-0310-859d-f6bbb57e9c96


# 9c1a9b92 20-Dec-2009 Adrien Destugues <pulkomandy@pulkomandy.ath.cx>

* Patch by Humdinger to convert a lot of things to sentance case.
* Cleanup and update of all the touched catkeys files


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@34731 a95241bf-73f2-0310-859d-f6bbb57e9c96


# a2e177e8 12-Nov-2009 Adrien Destugues <pulkomandy@pulkomandy.ath.cx>

- Localization of network preflet done by mt. Thanks !
- French translation by me.


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@34013 a95241bf-73f2-0310-859d-f6bbb57e9c96


# 50421488 11-Nov-2009 Axel Dörfler <axeld@pinc-software.de>

* Renamed settings.{cpp|h} to Settings.*.
* Got rid of some superfluous Get*() in method names.


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@33996 a95241bf-73f2-0310-859d-f6bbb57e9c96


# 136e4432 11-Nov-2009 Axel Dörfler <axeld@pinc-software.de>

* Some cleanup.


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@33995 a95241bf-73f2-0310-859d-f6bbb57e9c96


# 1e8709cb 11-Nov-2009 Axel Dörfler <axeld@pinc-software.de>

* EthernetSettingsView now stores resolv.conf to the correct location.
* Settings::ReadConfiguration() now uses functions of resolv.h to retrieve the
list of name servers instead of parsing resolv.conf itself.
* Thanks for the note, Siarzhuk - this closes ticket #2603.


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@33993 a95241bf-73f2-0310-859d-f6bbb57e9c96


# afdc0514 13-Sep-2009 Philippe Saint-Pierre <stpere@gmail.com>

Network preflet : Wrongly forces to input a gateway and a DNS server

* While adding IPv4 basic validation, I overseen the possibility to leave those fields blank. Now, those fields can be left blank if you wish.

Fixing ticket #4487.


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@33119 a95241bf-73f2-0310-859d-f6bbb57e9c96


# 4551e067 14-Aug-2009 Philippe Saint-Pierre <stpere@gmail.com>

Add input validation in Network preflet.

Now, if the user attempt to enter an invalid IPv4 address in a field, when he clicks apply :
* the focus goes back to the invalid field
* it displays an error message into the window, at the bottom
* it beeps
* it doesn't save the change, of course

DNS #2 is consider optional. The check is made with a regex.

This should take care of ticket #4205.



git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@32370 a95241bf-73f2-0310-859d-f6bbb57e9c96


# 73a1a46d 13-Aug-2009 Axel Dörfler <axeld@pinc-software.de>

* Made defines out of the kNetServerSignature and kMsgConfigureInterface
constants - they are used in other apps as well, and defining them as
"static const" causes undefined warnings in other source files. This also
fixes the build.
* Changed "interfaces::auto config" to auto_config, as that's more convenient
to use in the settings files.


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@32321 a95241bf-73f2-0310-859d-f6bbb57e9c96


# 25bd6415 03-Apr-2009 Stephan Aßmus <superstippi@gmx.de>

An unintentional line break was added in last commit.


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@29884 a95241bf-73f2-0310-859d-f6bbb57e9c96


# 6cd6dd87 03-Apr-2009 Stephan Aßmus <superstippi@gmx.de>

When setting a network device to DHCP and applying the settings, trigger
auto-configuration in the net_server. Code taken and adopted from ifconfig.


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@29883 a95241bf-73f2-0310-859d-f6bbb57e9c96


# 6ad23dbb 12-Apr-2008 Axel Dörfler <axeld@pinc-software.de>

Some cleanup:
* Reordered to have the constructor/destructor first.
* Two blanks between functions.
* Removed superfluous constructor calls.


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@24953 a95241bf-73f2-0310-859d-f6bbb57e9c96


# 04ea9a47 07-Apr-2008 Stephan Aßmus <superstippi@gmx.de>

* Use the new layout features to build the UI, prevents problems with
BMenuField being cut off. Simplifies the code a lot.
* Move message constants declaration into View, since they are private.
* Cleanup of EthernetSettingsView.h.


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@24854 a95241bf-73f2-0310-859d-f6bbb57e9c96


# 1d9a705e 20-Feb-2008 Stefano Ceccherini <stefano.ceccherini@gmail.com>

Disable the apply button when settings have been...er.. applied. Do some
enabling/disabling of the revert button too.
Initialize Settings::fAuto to a default value on construction.



git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@24032 a95241bf-73f2-0310-859d-f6bbb57e9c96


# f691c77a 29-Sep-2007 Stephan Aßmus <superstippi@gmx.de>

* don't know which option to pass to fopen() in order to create a file if it
doesn't exist, so I just used a BFile instead... this should fix part of
ticket #1423, if someone wants to look into the gateway retrieval
(settings.cpp) to fix the other half of the bug, that would be great


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@22366 a95241bf-73f2-0310-859d-f6bbb57e9c96


# 0fcc16e5 17-Sep-2007 Stephan Aßmus <superstippi@gmx.de>

* some more cleanup and refactoring in EthernetSettingsView
* added Revert button
* added enabling/disabling of text controls according to Mode setting


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@22239 a95241bf-73f2-0310-859d-f6bbb57e9c96


# 5406d829 17-Sep-2007 Stephan Aßmus <superstippi@gmx.de>

a bit of cleanup
* Network can only be built for Haiku, so no package and no BeOS compatible
declaration in Jamfile
* some style cleanup in EthernetSettingsView
* fixed EthernetSettingsView::AttachedToWindow(): fixed leaking of the
initial message, fixed potential crashing bug when no device was present
on the system


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@22238 a95241bf-73f2-0310-859d-f6bbb57e9c96


# 3be5951a 16-Sep-2007 soapdog <soapdog@nowhere.fake>

solved bug that prevented setting interface back to DHCP.

git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@22237 a95241bf-73f2-0310-859d-f6bbb57e9c96


# e583bfc2 20-Aug-2007 Stephan Aßmus <superstippi@gmx.de>

patch by Andre Garzia:
* reading/writing interface configuration data is now working properly
* at boot, net_server will overwrite the configuration with settings retrieved
via DHCP, though
* refactoring/renaming

changes by myself:
* fixed warnings and cleaned up in Settings::ReadConfiguration(), when the
nameservers are parsed
* fixed warning in EthernetSettingsView::_SaveAdaptersConfiguration(), changed
the loop to do without "isOpen", I think it was broken in two ways before:
- it would use the fp pointer after closing the file (isOpen was not
maintained), and if that would have worked, it would have overwritten the
interface configuration saved in an earlier loop iteration, now it should
write all interfaces that are not set to autoconfigure


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@22018 a95241bf-73f2-0310-859d-f6bbb57e9c96


# b60056cd 17-Aug-2007 Stephan Aßmus <superstippi@gmx.de>

patch by Andre Garzia:
* it gets all the configuration and it saves it back but for some reason,
the net_server is not noticing the changes yet


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@22007 a95241bf-73f2-0310-859d-f6bbb57e9c96


# 6b9d63b1 15-Aug-2007 Stephan Aßmus <superstippi@gmx.de>

patch by Andre Garzia:
* extracted a settings class from the view, now a dynamic number of ethernet
devices is handled at the same time
* resolv.conf is parsed to extract the nameservers


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@21970 a95241bf-73f2-0310-859d-f6bbb57e9c96


# fe80954c 06-Aug-2007 Stephan Aßmus <superstippi@gmx.de>

* patch by Andre Garzia to fix some coding style issues
* fixed a potential memory leak in EthernetSettingsView::_ShowConfiguration()
when the ioctl didn't succeed


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@21834 a95241bf-73f2-0310-859d-f6bbb57e9c96


# 4d4ee928 09-Jul-2007 Stephan Aßmus <superstippi@gmx.de>

* work in progress new Network preflet by Andre Garzia (GSoC student)
- can currently display the configuration of a chosen ethernet device


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@21588 a95241bf-73f2-0310-859d-f6bbb57e9c96


# 8ffa652cac230b7bf7c6d4554ffdd37ccbe70a3b 16-Aug-2012 Oliver Tappe <zooey@hirschkaefer.de>

Fix build.


# 468f826656ee77d64ab966e6077db259ee0db619 16-Aug-2012 Humdinger <humdingerb@gmail.com>

Some more string translations.

A few more translator changes I missed with last commit.
Added a few more strings for translation, pointed out by diver.
Thanks!


# aed35104852941f0f6f3d1dcc5338b5f337d0a3c 05-Aug-2012 Humdinger <humdingerb@gmail.com>

Close alerts with ESCAPE key.

Added SetFlags(B_CLOSE_ON_ESCAPE) or SetShortcut(index, B_ESCAPE) to BAlerts
depending if the result gets used later in the code, or if it's a one-button
BAlert.


# 546208a53940a26c6379c48a7854ade1a8250fc5 16-Apr-2012 Oliver Tappe <zooey@hirschkaefer.de>

More catalog-related cleanup.

* rename B_TRANSLATE_CONTEXT to B_TRANSLATION_CONTEXT and
B_TRANSLATE_WITH_CONTEXT to B_TRANSLATE_CONTEXT, squashing a TODO
* adjust all uses of both macros in Haiku's source tree
* use correct header guard for collecting/Catalog.h

The renamed macros require adjustments to all external applications
using catalogs.


# 916c873ba3472680ceed0f57875f039fdd54a360 15-Jun-2011 Axel Dörfler <axeld@pinc-software.de>

* Solved #7038 a bit nicer by disabling the interface.


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@42196 a95241bf-73f2-0310-859d-f6bbb57e9c96


# c9769c1cc44ec2d3578573aa4a319d8763fbb0b7 09-May-2011 Alexander von Gluck IV <kallisti5@unixzen.com>

small workaround to prevent network preflet crashes on NAT network cards in VirtualBox and VMWare. Not a final solution but preventing a crash is always a plus. resolves #7038. Thanks Skipp_OSX!

git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@41412 a95241bf-73f2-0310-859d-f6bbb57e9c96


# b8268a2d3d0ee06fd4e246ad7af8b0eaac9f6f40 13-Dec-2010 Axel Dörfler <axeld@pinc-software.de>

* Added the wireless network setting to the Settings class, and also read out
the initial value from the "interface" settings file.
* The setting should now work as expected.
* Also consider interfaces in configuring state as being automatically managed.


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@39842 a95241bf-73f2-0310-859d-f6bbb57e9c96


# a2158925a6de3d8cdf4672d88b1c50aeb6aef7f0 13-Dec-2010 Axel Dörfler <axeld@pinc-software.de>

* Added a menu field that is only visible when a wireless device is selected,
and that allows you to force a specific network upon start. That setting isn't
restored yet when you launch Network, though.
* Also, it shows two bugs in the layout engine.


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@39834 a95241bf-73f2-0310-859d-f6bbb57e9c96


# 654520d700d10aad7db7bb0edc1bf204aa7b4d15 13-Dec-2010 Axel Dörfler <axeld@pinc-software.de>

* Reimplemented _TriggerAutoConfig() to use the new
BNetworkInterface::AutoConfigure() method.
* Moved methods around to reflect their declaration order.
* Removed unused _PrepareRequest().


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@39828 a95241bf-73f2-0310-859d-f6bbb57e9c96


# f65256c2e7c311046ef89838d066d96a51688dd0 09-Aug-2010 Axel Dörfler <axeld@pinc-software.de>

* Fixed a bug in BNetworkRoster::GetNextInterface() that caused an endless loop
and always returned the first interface.
* Fixed bug #6436 by using the new BNetworkRoster functionality.


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@37994 a95241bf-73f2-0310-859d-f6bbb57e9c96


# 2d3904fe20393795b4f6128fd0079845acb5ac95 10-Jun-2010 Philippe Houdoin <philippe.houdoin@gmail.com>

Add interface disabling support.


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@37091 a95241bf-73f2-0310-859d-f6bbb57e9c96


# 4eb0cbb044cf538f18c0d252934a5bcaa33bfd34 07-May-2010 Matt Madia <mattmadia@gmail.com>

Updated TR_CONTEXT to be B_TRANSLATE_CONTEXT, relating to #5408.


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@36733 a95241bf-73f2-0310-859d-f6bbb57e9c96


# 0f4ad67280b283ac7a3f2948f39245442029c759 06-May-2010 Matt Madia <mattmadia@gmail.com>

Updated to use B_TRANSLATE* macros. relates to #5408.

git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@36692 a95241bf-73f2-0310-859d-f6bbb57e9c96


# 0f87f52fad88ed6502515def46abca1fcfbb1704 23-Mar-2010 Stephan Aßmus <superstippi@gmx.de>

Patch by Vegard Waerp: Added support for setting the the local domain in the
Network settings and setting the domain if received by DHCP.

Thanks a lot, closes #5619.


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@35938 a95241bf-73f2-0310-859d-f6bbb57e9c96


# 24957bd499550082300fb1f9aa859881cf62c27b 18-Mar-2010 Philippe Houdoin <philippe.houdoin@gmail.com>

Fixed last places where resolv.conf was still expected under /etc, UserGuide included. Fixed authentication misspelling

git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@35898 a95241bf-73f2-0310-859d-f6bbb57e9c96


# 0b2fbbfaa9d35d304991f3543276c8e46f155460 24-Dec-2009 Adrien Destugues <pulkomandy@pulkomandy.ath.cx>

Patch by Humdinger to convert all the preference panels to sentance case.
Also update the localization catalogs as needed.
CPUFrequency localization is broken : the current code works, but the DoCatalogs jamrule is not powerful enough to properly extract the catkeys.


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@34767 a95241bf-73f2-0310-859d-f6bbb57e9c96


# 9c1a9b926aa0b1890a011a44398379d1c47f09c1 20-Dec-2009 Adrien Destugues <pulkomandy@pulkomandy.ath.cx>

* Patch by Humdinger to convert a lot of things to sentance case.
* Cleanup and update of all the touched catkeys files


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@34731 a95241bf-73f2-0310-859d-f6bbb57e9c96


# a2e177e8847155cd5fb2aef6ee8cce1afca30195 12-Nov-2009 Adrien Destugues <pulkomandy@pulkomandy.ath.cx>

- Localization of network preflet done by mt. Thanks !
- French translation by me.


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@34013 a95241bf-73f2-0310-859d-f6bbb57e9c96


# 504214882103726c033ec5fb4999330d6401b875 11-Nov-2009 Axel Dörfler <axeld@pinc-software.de>

* Renamed settings.{cpp|h} to Settings.*.
* Got rid of some superfluous Get*() in method names.


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@33996 a95241bf-73f2-0310-859d-f6bbb57e9c96


# 136e4432910d95d1a80e9238d3824af2c7a6b8af 11-Nov-2009 Axel Dörfler <axeld@pinc-software.de>

* Some cleanup.


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@33995 a95241bf-73f2-0310-859d-f6bbb57e9c96


# 1e8709cb52a351239457f2ffb73983ca2e2f9711 11-Nov-2009 Axel Dörfler <axeld@pinc-software.de>

* EthernetSettingsView now stores resolv.conf to the correct location.
* Settings::ReadConfiguration() now uses functions of resolv.h to retrieve the
list of name servers instead of parsing resolv.conf itself.
* Thanks for the note, Siarzhuk - this closes ticket #2603.


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@33993 a95241bf-73f2-0310-859d-f6bbb57e9c96


# afdc05148233ab533451d430c9ea61fae42a8327 13-Sep-2009 Philippe Saint-Pierre <stpere@gmail.com>

Network preflet : Wrongly forces to input a gateway and a DNS server

* While adding IPv4 basic validation, I overseen the possibility to leave those fields blank. Now, those fields can be left blank if you wish.

Fixing ticket #4487.


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@33119 a95241bf-73f2-0310-859d-f6bbb57e9c96


# 4551e0670f1659dbb7d2a443eec274fe20a7d488 14-Aug-2009 Philippe Saint-Pierre <stpere@gmail.com>

Add input validation in Network preflet.

Now, if the user attempt to enter an invalid IPv4 address in a field, when he clicks apply :
* the focus goes back to the invalid field
* it displays an error message into the window, at the bottom
* it beeps
* it doesn't save the change, of course

DNS #2 is consider optional. The check is made with a regex.

This should take care of ticket #4205.



git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@32370 a95241bf-73f2-0310-859d-f6bbb57e9c96


# 73a1a46de97c1b883dc6053af8c18f48675ddaa3 13-Aug-2009 Axel Dörfler <axeld@pinc-software.de>

* Made defines out of the kNetServerSignature and kMsgConfigureInterface
constants - they are used in other apps as well, and defining them as
"static const" causes undefined warnings in other source files. This also
fixes the build.
* Changed "interfaces::auto config" to auto_config, as that's more convenient
to use in the settings files.


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@32321 a95241bf-73f2-0310-859d-f6bbb57e9c96


# 25bd6415a352863ec55881d8e357132a94167da6 03-Apr-2009 Stephan Aßmus <superstippi@gmx.de>

An unintentional line break was added in last commit.


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@29884 a95241bf-73f2-0310-859d-f6bbb57e9c96


# 6cd6dd87db4c32ac88267c2fc073a55916ef4b01 03-Apr-2009 Stephan Aßmus <superstippi@gmx.de>

When setting a network device to DHCP and applying the settings, trigger
auto-configuration in the net_server. Code taken and adopted from ifconfig.


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@29883 a95241bf-73f2-0310-859d-f6bbb57e9c96


# 6ad23dbbf4b2808407657720c17bddfb0c3cb8f4 12-Apr-2008 Axel Dörfler <axeld@pinc-software.de>

Some cleanup:
* Reordered to have the constructor/destructor first.
* Two blanks between functions.
* Removed superfluous constructor calls.


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@24953 a95241bf-73f2-0310-859d-f6bbb57e9c96


# 04ea9a475fffa2afccfcf36cbc12d0dd1bc5862a 07-Apr-2008 Stephan Aßmus <superstippi@gmx.de>

* Use the new layout features to build the UI, prevents problems with
BMenuField being cut off. Simplifies the code a lot.
* Move message constants declaration into View, since they are private.
* Cleanup of EthernetSettingsView.h.


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@24854 a95241bf-73f2-0310-859d-f6bbb57e9c96


# 1d9a705ed43189b05d1e11da35658c85ec077334 20-Feb-2008 Stefano Ceccherini <stefano.ceccherini@gmail.com>

Disable the apply button when settings have been...er.. applied. Do some
enabling/disabling of the revert button too.
Initialize Settings::fAuto to a default value on construction.



git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@24032 a95241bf-73f2-0310-859d-f6bbb57e9c96


# f691c77a30af8767ef421941988ba11283094e65 29-Sep-2007 Stephan Aßmus <superstippi@gmx.de>

* don't know which option to pass to fopen() in order to create a file if it
doesn't exist, so I just used a BFile instead... this should fix part of
ticket #1423, if someone wants to look into the gateway retrieval
(settings.cpp) to fix the other half of the bug, that would be great


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@22366 a95241bf-73f2-0310-859d-f6bbb57e9c96


# 0fcc16e5385098d0588b21905b9f89715713b510 17-Sep-2007 Stephan Aßmus <superstippi@gmx.de>

* some more cleanup and refactoring in EthernetSettingsView
* added Revert button
* added enabling/disabling of text controls according to Mode setting


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@22239 a95241bf-73f2-0310-859d-f6bbb57e9c96


# 5406d829a81eba03dd7a7655bbf2b2eb37b01a45 17-Sep-2007 Stephan Aßmus <superstippi@gmx.de>

a bit of cleanup
* Network can only be built for Haiku, so no package and no BeOS compatible
declaration in Jamfile
* some style cleanup in EthernetSettingsView
* fixed EthernetSettingsView::AttachedToWindow(): fixed leaking of the
initial message, fixed potential crashing bug when no device was present
on the system


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@22238 a95241bf-73f2-0310-859d-f6bbb57e9c96


# 3be5951a1475eb7a0c4f7635d0d41c7aa9636341 16-Sep-2007 soapdog <soapdog@nowhere.fake>

solved bug that prevented setting interface back to DHCP.

git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@22237 a95241bf-73f2-0310-859d-f6bbb57e9c96


# e583bfc206b6c301bde1a2c32e24f0fe15ce7fa6 20-Aug-2007 Stephan Aßmus <superstippi@gmx.de>

patch by Andre Garzia:
* reading/writing interface configuration data is now working properly
* at boot, net_server will overwrite the configuration with settings retrieved
via DHCP, though
* refactoring/renaming

changes by myself:
* fixed warnings and cleaned up in Settings::ReadConfiguration(), when the
nameservers are parsed
* fixed warning in EthernetSettingsView::_SaveAdaptersConfiguration(), changed
the loop to do without "isOpen", I think it was broken in two ways before:
- it would use the fp pointer after closing the file (isOpen was not
maintained), and if that would have worked, it would have overwritten the
interface configuration saved in an earlier loop iteration, now it should
write all interfaces that are not set to autoconfigure


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@22018 a95241bf-73f2-0310-859d-f6bbb57e9c96


# b60056cdb3337a465d72a1534ce7e7bdf792665c 17-Aug-2007 Stephan Aßmus <superstippi@gmx.de>

patch by Andre Garzia:
* it gets all the configuration and it saves it back but for some reason,
the net_server is not noticing the changes yet


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@22007 a95241bf-73f2-0310-859d-f6bbb57e9c96


# 6b9d63b18f5f471d5c54ac78582d747f699b5f61 15-Aug-2007 Stephan Aßmus <superstippi@gmx.de>

patch by Andre Garzia:
* extracted a settings class from the view, now a dynamic number of ethernet
devices is handled at the same time
* resolv.conf is parsed to extract the nameservers


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@21970 a95241bf-73f2-0310-859d-f6bbb57e9c96


# fe80954c2df6f532dcfebb3a8b0640b2ffafef46 06-Aug-2007 Stephan Aßmus <superstippi@gmx.de>

* patch by Andre Garzia to fix some coding style issues
* fixed a potential memory leak in EthernetSettingsView::_ShowConfiguration()
when the ioctl didn't succeed


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@21834 a95241bf-73f2-0310-859d-f6bbb57e9c96


# 4d4ee928bf1f2a0cd95c2eefddcf924941750261 09-Jul-2007 Stephan Aßmus <superstippi@gmx.de>

* work in progress new Network preflet by Andre Garzia (GSoC student)
- can currently display the configuration of a chosen ethernet device


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@21588 a95241bf-73f2-0310-859d-f6bbb57e9c96