Class: Y2Network::Widgets::WirelessEapMode

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

Overview

Widget to select EAP mode.

Instance Method Summary collapse

Constructor Details

#initialize(settings) ⇒ WirelessEapMode


27
28
29
30
# File 'src/lib/y2network/widgets/wireless_eap_mode.rb', line 27

def initialize(settings)
  textdomain "network"
  @settings = settings
end

Instance Method Details

#helpObject


58
59
60
61
62
63
64
# File 'src/lib/y2network/widgets/wireless_eap_mode.rb', line 58

def help
  _(
    "<p>WPA-EAP uses a RADIUS server to authenticate users. There\n" \
      "are different methods in EAP to connect to the server and\n" \
      "perform the authentication, namely TLS, TTLS, and PEAP.</p>\n"
  )
end

#initObject


32
33
34
# File 'src/lib/y2network/widgets/wireless_eap_mode.rb', line 32

def init
  self.value = @settings.eap_mode
end

#itemsObject


50
51
52
53
54
55
56
# File 'src/lib/y2network/widgets/wireless_eap_mode.rb', line 50

def items
  [
    ["PEAP", _("PEAP")],
    ["TLS", _("TLS")],
    ["TTLS", _("TTLS")]
  ]
end

#labelObject


40
41
42
# File 'src/lib/y2network/widgets/wireless_eap_mode.rb', line 40

def label
  _("EAP &Mode")
end

#optObject

generate event when changed so higher level widget can change content


46
47
48
# File 'src/lib/y2network/widgets/wireless_eap_mode.rb', line 46

def opt
  [:notify]
end

#storeObject


36
37
38
# File 'src/lib/y2network/widgets/wireless_eap_mode.rb', line 36

def store
  @settings.eap_mode = value
end