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.


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

def initialize
  textdomain "network"
end

Instance Method Details

#initObject


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

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

#labelObject


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

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

#optObject


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

def opt
  [:notify]
end