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


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

def initialize
  textdomain "network"
end

Instance Method Details

#initObject


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

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

#labelObject


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

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

#optObject


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

def opt
  [:notify]
end