diff options
author | Olivier Blin <oblin@mandriva.com> | 2008-05-18 19:41:42 +0000 |
---|---|---|
committer | Olivier Blin <oblin@mandriva.com> | 2008-05-18 19:41:42 +0000 |
commit | 49a1c79585e472a6f483d365398f621f49c79542 (patch) | |
tree | cdf2353060b70b892eb71f4012b452b34d38267c /lib/network/connection.pm | |
parent | fc696d5284750e3fde42ee8ee68888ba5f8a0e4e (diff) | |
download | drakx-net-49a1c79585e472a6f483d365398f621f49c79542.tar drakx-net-49a1c79585e472a6f483d365398f621f49c79542.tar.gz drakx-net-49a1c79585e472a6f483d365398f621f49c79542.tar.bz2 drakx-net-49a1c79585e472a6f483d365398f621f49c79542.tar.xz drakx-net-49a1c79585e472a6f483d365398f621f49c79542.zip |
move provider settings interactive data in connection object
Diffstat (limited to 'lib/network/connection.pm')
-rw-r--r-- | lib/network/connection.pm | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/lib/network/connection.pm b/lib/network/connection.pm index 0e67acb..45e2199 100644 --- a/lib/network/connection.pm +++ b/lib/network/connection.pm @@ -165,6 +165,19 @@ sub set_provider { } } +#- check that $self->can('get_providers') first +sub get_provider_settings { + my ($self) = @_; + my @providers_data = $self->get_providers; + [ + { + type => "list", val => \$self->{provider_name}, separator => $providers_data[1], + list => [ N("Unlisted - edit manually"), sort(keys %{$providers_data[0]}) ], sort => 0, + changed => sub { $self->set_provider }, + }, + ]; +} + #- check that $self->can('get_protocols') first sub get_protocol_settings { my ($self) = @_; |