Commit Graph

53395 Commits

Author SHA1 Message Date
Axel Dörfler
3d3eb8da69 Network: telnet and ftp are now using ServiceListItem, too. 2015-03-27 13:25:26 +01:00
Axel Dörfler
ee834bb870 Network: moved commonly used classes into app.
* This way all add-ons share the same code, and also the same
  translations.
2015-03-27 13:25:25 +01:00
Axel Dörfler
1a47b15dfa Network: interface list item now used BControlLook spacing.
* Instead of hard-coded values.
2015-03-27 13:25:25 +01:00
Axel Dörfler
d0b107f311 Network: added IPAddressControl.
* Based on Adrien's previous work in the DNS settings view.
* The IPv* and DNS add-ons are now using it.
2015-03-27 13:25:18 +01:00
Axel Dörfler
06cdb6558f _BTextInput_: Only invalidate parent when in a window.
* Otherwise there is nothing to it.
* Removed comment and commented out invalidation. Seems to work
  just fine without it, and I cannot think of a reason why it should
  be there.
2015-03-27 13:24:10 +01:00
Axel Dörfler
ccc3ced21c _BTextInput_: style cleanup. 2015-03-27 13:24:10 +01:00
Axel Dörfler
8bc3ecb054 Added BTextControl::TextLength() method. 2015-03-27 13:24:09 +01:00
Axel Dörfler
d95c5011bd Network: SSH list item now indicates a running server.
* This will be moved into the network preferences, so that it can be
  used from other add-ons, as well.
2015-03-27 13:24:09 +01:00
Axel Dörfler
30811f5d73 Network: display title items in bold. 2015-03-27 13:24:08 +01:00
Axel Dörfler
d45b018021 Network: service enable now waits a bit, revertable.
* When you press the enable/disable button, it now stays disabled
  for half a second before it is updated, and reenabled again.
* This is done so that the net_server has time to update its internal
  state, so that it should look correct right from the start, even if
  the server does not immediately react to the changes.
* Now uses the BNetworkServiceSettings::IsRunning() method.
* Added IsRevertable(), and Revert(), methods.
2015-03-27 13:24:08 +01:00
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