summaryrefslogtreecommitdiffstats
path: root/lib/network/connection_manager.pm
diff options
context:
space:
mode:
authorOlivier Blin <oblin@mandriva.com>2008-05-18 20:02:53 +0000
committerOlivier Blin <oblin@mandriva.com>2008-05-18 20:02:53 +0000
commitfac902681b487a2c62e1bea52a6e202da2795ee6 (patch)
tree5fb4cf302e521c8a9374e29a65fb143f1be1f61e /lib/network/connection_manager.pm
parent7734dfba7ab665c81346a3c10144058e024eb21c (diff)
downloaddrakx-net-fac902681b487a2c62e1bea52a6e202da2795ee6.tar
drakx-net-fac902681b487a2c62e1bea52a6e202da2795ee6.tar.gz
drakx-net-fac902681b487a2c62e1bea52a6e202da2795ee6.tar.bz2
drakx-net-fac902681b487a2c62e1bea52a6e202da2795ee6.tar.xz
drakx-net-fac902681b487a2c62e1bea52a6e202da2795ee6.zip
allow to select provider in drakroam/netcenter
Diffstat (limited to 'lib/network/connection_manager.pm')
-rw-r--r--lib/network/connection_manager.pm7
1 files changed, 7 insertions, 0 deletions
diff --git a/lib/network/connection_manager.pm b/lib/network/connection_manager.pm
index d6c93d9..da7cc2c 100644
--- a/lib/network/connection_manager.pm
+++ b/lib/network/connection_manager.pm
@@ -95,6 +95,10 @@ sub load_settings {
$cmanager->{connection}->load_interface_settings;
$cmanager->{connection}->guess_network_access_settings if $cmanager->{connection}->can('guess_network_access_settings');
+ if ($cmanager->{connection}->can('guess_provider_settings')) {
+ $cmanager->{connection}->guess_provider_settings;
+ $cmanager->{connection}->set_provider;
+ }
$cmanager->{connection}->guess_protocol($cmanager->{net}) if $cmanager->{connection}->can('guess_protocol');
$cmanager->{connection}->guess_access_settings if $cmanager->{connection}->can('guess_access_settings');
$cmanager->{connection}->guess_address_settings if $cmanager->{connection}->can('guess_address_settings');
@@ -139,6 +143,9 @@ sub configure_connection {
{ label => $cmanager->{connection}->get_network_access_settings_label, title => 1, advanced => 1 },
@{$cmanager->{connection}->get_network_access_settings},
) : (),
+ $cmanager->{connection}->can('get_providers') ? (
+ @{$cmanager->{connection}->get_provider_settings($cmanager->{net})}
+ ) : (),
$cmanager->{connection}->can('get_protocols') ? (
@{$cmanager->{connection}->get_protocol_settings},
) : (),