Class: Y2Network::Widgets::WirelessScan

Inherits:
CWM::PushButton
  • Object
show all
Defined in:
src/lib/y2network/widgets/wireless_essid.rb

Overview

Button for scan network sites

Instance Method Summary collapse

Constructor Details

#initialize(settings, update:) ⇒ WirelessScan

Returns a new instance of WirelessScan

Parameters:


102
103
104
105
106
# File 'src/lib/y2network/widgets/wireless_essid.rb', line 102

def initialize(settings, update:)
  @settings = settings
  @update_widget = update
  textdomain "network"
end

Instance Method Details

#handleObject


112
113
114
115
116
117
118
119
120
121
122
123
# File 'src/lib/y2network/widgets/wireless_essid.rb', line 112

def handle
  networks = essid_list

  Yast2::Feedback.show("Obtaining essid list", headline: "Scanning network") do |_f|
    networks = essid_list
    log.info("Found networks: #{networks}")
  end

  return unless @update_widget
  @update_widget.update_essid_list(networks)
  nil
end

#labelObject


108
109
110
# File 'src/lib/y2network/widgets/wireless_essid.rb', line 108

def label
  _("Scan Network")
end