Commit Graph

53235 Commits

Author SHA1 Message Date
Axel Dörfler
d26777c4e4 Network: added BNetworkSettingsListener.
* Same as the configuration listener, just for SettingsUpdated().
* This is now broadcasted to all list items, too.
2015-03-27 13:24:07 +01:00
Axel Dörfler
f7ccc9af85 BNetworkSettings: added const, server IsRunning() method.
* Get{Interface|Network|Service}() methods are now const.
* Added variants of Interface(), and Service() that are const.
* Added new BNetworkServiceSettings::IsRunning() convenience method that
  reflects the status quo rather than the settings.
2015-03-27 13:24:07 +01:00
Axel Dörfler
07b0531d9c Network: removed now superfluous services add-on. 2015-03-27 13:24:06 +01:00
Axel Dörfler
b4ec589bb3 Network/DNS settings: apply button, improved layout.
* The buttons now all end up with the same width.
* Put the grid into a BBox.
* The new "apply" button will actually apply the changes.
2015-03-27 13:24:06 +01:00
Axel Dörfler
9a7e231edb Network: DNSSettingsView style cleanup. 2015-03-27 13:24:05 +01:00
Axel Dörfler
a4a34e4235 Network: beginnings of the DNS settings. 2015-03-27 13:24:02 +01:00
Axel Dörfler
55820aedc1 net_server: Print message on fork() error.
* Also removed an extra check for the name in _Update(); _ToService()
  will already return an error in that case.
2015-03-27 13:23:42 +01:00
Axel Dörfler
a7f408b41c Fixed BNetworkServiceSettings::IsEnabled(), GetMessage()
* GetMessage() now checks if the only existing address is the default
  wildcard address, and then omits it in the message (as it will be
  created by default, anyway).
2015-03-27 13:23:41 +01:00
Axel Dörfler
a6f0a92032 Network: added telnet and ftp service add-ons.
* They're old, but we still have them on our image.
2015-03-27 13:23:37 +01:00
Axel Dörfler
33ee23acbe Tracker C++ source template: fixed coding style.
* Two blank lines between header and include.
2015-03-27 13:23:03 +01:00
Axel Dörfler
3c8ac782d5 Network/SSHService: Moved base ServiceView into its own file.
* SSHServiceView now subclasses it for SSH specific functionality.
2015-03-27 13:23:02 +01:00
Axel Dörfler
aaca49df8d Network: removed now superfluous interface add-on.
* IPv4/IPv6 add-ons completely replace its functionality.
2015-03-27 13:23:02 +01:00
Axel Dörfler
8af390cab2 Network: SSH service add-on now creates sshd user.
* If it does not exist yet, the sshd user is created upon enabling
  the service.
* Also, it now uses kMsgIsServiceRunning to determine the current
  label/function of the enable/disable button.
2015-03-27 13:23:01 +01:00
Axel Dörfler
c3ef93915b net_server: Clients can now check if a service is running.
* Using the new kMsgIsServiceRunning command.
2015-03-27 13:23:01 +01:00
Axel Dörfler
1f94cdcdff BNetworkServiceSettings: Added missing functions/constructor. 2015-03-27 13:23:00 +01:00
Axel Dörfler
83941255ad net_server: cleaned up Services.h, no functional change. 2015-03-27 13:23:00 +01:00
Axel Dörfler
bafce3df67 Network: first steps to an SSH service add-on. 2015-03-27 13:22:56 +01:00
Axel Dörfler
7ca40f60bc BNetworkSettings: made service stuff writable.
* And added the ability to disable a service without losing its
  configuration.
2015-03-27 13:22:30 +01:00
Axel Dörfler
03681592f2 Network: IPv[46] add-on Jamfile cleanup. 2015-03-27 13:22:29 +01:00
Axel Dörfler
d1f0b8db1d Network: fixed top item creation, sort entries.
* Need a way to access the NetworkWindow object from a static
  method in order to sort all entries correctly, though.
2015-03-27 13:22:29 +01:00
Axel Dörfler
25ed074fd1 Network: made InterfaceListItem::Name() const. 2015-03-27 13:22:28 +01:00
Axel Dörfler
5274e9b004 Network: added interface list item.
* Added BNetworkInterfaceListItem that can be used by interface protocol
  add-ons to represent their functionality in the list view.
* It will automatically update itself on changes, and will show the
  specified label, and address, if any, as well as indicate whether or
  not the family has been disabled (which doesn't work perfectly yet,
  as IFF_AUTO_CONFIGURED is on the interface level).
* Therefore, the interface list item will no longer show the address,
  but the type of the device instead.
* Introduced the BNetworkConfigurationListener interface that is used
  to broadcast network updates to.
2015-03-27 13:22:28 +01:00
Axel Dörfler
b00dcbcad2 BNetworkSettings: added some convenience methods.
* From InterfaceAddressView: FindFirstAddress(), and IsAutoConfigure().
* Removed some debug leftovers in InterfaceAddressView, too.
2015-03-27 13:22:27 +01:00
Axel Dörfler
20ead9a883 ifconfig: improved empty address display.
* Now shows as "--" instead of just the empty string.
2015-03-27 13:22:27 +01:00
Axel Dörfler
563f3c118d Network: Added IPv6Interface.
* Pretty much the same as the IPv4 one.
2015-03-27 13:22:21 +01:00
Axel Dörfler
59f911ab03 Network/IPv4Interface: settings are now applied instantly.
* Via the BNetworkSettings class.
* The static IP mode still requires an extra apply button.
* IP input is not validated at all yet, we could also automatically
  fill in the network mask once the IP has been entered.
2015-03-27 13:21:52 +01:00
Axel Dörfler
e4f4658a1b BNetworkSettings: made interface settings writable.
* It also makes use of the new driver settings converter mechanism.
2015-03-27 13:21:51 +01:00
Axel Dörfler
18811c71ae DriverSettingsMessageAdapter: hide empty message.
* Empty messages no longer end up as empty section - instead, they are
  just empty.
2015-03-27 13:21:51 +01:00
Axel Dörfler
3211cbcd15 DriverSettingsMessageAdapter: optional field converter.
* You can now optionally specify a converter that does the actual
  message to settings conversion, and vice versa.
* This allows for more sophisticated and custom conversions.
2015-03-27 13:21:50 +01:00
Axel Dörfler
9461249c5a Network: also notify interface list items
* When the network configuration changes.
2015-03-27 13:21:50 +01:00
Axel Dörfler
07addd7ef5 Network: broadcast updates, remove apply button.
* Network now monitors all network, and network settings changes, and
  will notify all add-ons about those changes.
* Removed the global apply button. Instead, the static IP configuration
  now got that button. All other changes will be instant.
2015-03-27 13:21:49 +01:00
Axel Dörfler
f16f9ee4ee Moved more functionality from net_server to NetworkSettings.
* Added (still incomplete) helper classes for the settings messages.
* The net_server now uses these classes for its interfaces, and services.
* Renamed service_address to service_connection, as that better matches
  what it is used for.
2015-03-27 13:21:49 +01:00
Axel Dörfler
7a9c00732a BMessage: add default parameter to GetString()/GetBool().
* It's likely that you want NULL/false when the data is not available
  so you can now leave out the default value in that case.
2015-03-27 13:21:48 +01:00
Axel Dörfler
2864e4da5e Network: added global settings.
* NetworkWindow now manages a single BNetworkSettings object
  that is shared with all add-ons.
2015-03-27 13:21:48 +01:00
Axel Dörfler
e267a9eb47 Network: show interface addresses in list item.
* No family prefix yet.
2015-03-27 13:21:47 +01:00
Axel Dörfler
db6d25ceba NetworkInterface.h: honor 80 character limit. 2015-03-27 13:21:47 +01:00
Axel Dörfler
d880e2d91f BNetworkSettings: added Get*() by name methods. 2015-03-27 13:21:46 +01:00
Axel Dörfler
fd55fb6615 Moved net_server's settings to libbnetapi.
* As experimental API class BNetworkSettings.
* Added add/remove methods for interfaces, and services, too.
* Moved the conversion of the wireless networks into the settings class,
  too, so that it only gives out converted ones (but accepts both
  variants).
2015-03-27 13:21:46 +01:00
Axel Dörfler
14f5b52b21 Network: removed dummy add-ons. 2015-03-27 13:21:45 +01:00
Axel Dörfler
85fb1470bf Added IPv4Interface add-on for Network preferences.
* Took over most code from the former InterfacesAddOn, and
  moved it to where it should be.
* However, it doesn't work yet at all.
2015-03-27 13:21:41 +01:00
Axel Dörfler
03242441a6 Network: fixed broken item frame retrieval.
* Completely superfluous and expensive for BListView items, and just
  wrong for BOutlineListView items.
* Also increased the width of the item, as we must take the tree offset
  into account ourselves (really, great API).
2015-03-27 13:08:45 +01:00
Axel Dörfler
aae1e071aa Network: fixed mixed up AddUnder() arguments.
* BOutlineListView is the worst of the interface kit.
2015-03-27 13:08:45 +01:00
Axel Dörfler
3401ff7c2f BNetworkSettingsAddOn: added missing destructor. 2015-03-27 13:08:44 +01:00
Axel Dörfler
f6c7cf44b5 Network: integrated former hardware view from add-on.
* The interfaces logic is within the main application, so is the
  new interface view.
* Disabling/renegotiating does not work yet.
* Reveals a bug in some interface code; when you click on an ethernet
  device first, there is no place for the wireless menu. When you then
  press on a wireless device, it crashes in BMenuField code.
  In the other direction, there is then an empty space.
* Fixed list item width reporting.
2015-03-27 13:08:44 +01:00
Axel Dörfler
d5dd8637bb BNetworkDevice.GetHardwareAddress() was broken.
* Copy&paste error, apparently.
2015-03-27 13:08:43 +01:00
Axel Dörfler
54c34be74b ifconfig: moved media type stuff into its own file.
* This can now be easily shared.
2015-03-27 13:08:43 +01:00
Axel Dörfler
021ff1ca46 Network: no need for public constants. 2015-03-27 13:08:42 +01:00
Axel Dörfler
5493c30fed Network: Removed unused includes. 2015-03-27 13:08:42 +01:00
Axel Dörfler
6dcbe4bf44 Network: made list view B_FULL_UPDATE_ON_RESIZE.
* To account for its right aligned contents.
2015-03-27 13:08:41 +01:00
Axel Dörfler
77db25ddc7 Network: moved add-on headers to the correct position.
* Ie. they've moved to headers/os/add-ons/network_settings now.
2015-03-27 13:08:41 +01:00