Class: Y2Remote::Widgets::AllowWeb

Inherits:
CWM::CheckBox
  • Object
show all
Defined in:
src/lib/y2remote/widgets/remote.rb

Overview

Checkbox widget for setting vnc web access as enabled when checked.

Instance Method Summary collapse

Constructor Details

#initializeAllowWeb

Returns a new instance of AllowWeb.



160
161
162
163
# File 'src/lib/y2remote/widgets/remote.rb', line 160

def initialize
  super
  textdomain "network"
end

Instance Method Details

#initObject



169
170
171
# File 'src/lib/y2remote/widgets/remote.rb', line 169

def init
  self.value = Y2Remote::Remote.instance.web_enabled?
end

#labelObject



165
166
167
# File 'src/lib/y2remote/widgets/remote.rb', line 165

def label
  _("Enable access using a &web browser")
end

#optObject



173
174
175
# File 'src/lib/y2remote/widgets/remote.rb', line 173

def opt
  [:notify]
end