Class: Y2Remote::Widgets::RemoteFirewall
- Inherits:
-
CWM::CustomWidget
- Object
- CWM::CustomWidget
- Y2Remote::Widgets::RemoteFirewall
- Defined in:
- src/lib/y2remote/widgets/remote.rb
Overview
Widget for opening VNC services in the firewall
Instance Attribute Summary collapse
-
#cwm_interfaces ⇒ Object
Returns the value of attribute cwm_interfaces.
Instance Method Summary collapse
- #contents ⇒ Object
- #handle(event) ⇒ Object
- #help ⇒ Object
- #init ⇒ Object
-
#initialize ⇒ RemoteFirewall
constructor
Constructor.
- #opt ⇒ Object
-
#store ⇒ Object
Applies the configuration of the vnc services according to the allowed interfaces.
Constructor Details
#initialize ⇒ RemoteFirewall
Constructor
182 183 184 185 186 187 188 |
# File 'src/lib/y2remote/widgets/remote.rb', line 182 def initialize textdomain "network" @cwm_interfaces = Yast::CWMFirewallInterfaces.CreateOpenFirewallWidget( "services" => services, "display_details" => true ) end |
Instance Attribute Details
#cwm_interfaces ⇒ Object
Returns the value of attribute cwm_interfaces
179 180 181 |
# File 'src/lib/y2remote/widgets/remote.rb', line 179 def cwm_interfaces @cwm_interfaces end |
Instance Method Details
#contents ⇒ Object
198 199 200 |
# File 'src/lib/y2remote/widgets/remote.rb', line 198 def contents cwm_interfaces["custom_widget"] end |
#handle(event) ⇒ Object
206 207 208 |
# File 'src/lib/y2remote/widgets/remote.rb', line 206 def handle(event) Yast::CWMFirewallInterfaces.OpenFirewallHandle(cwm_interfaces, "", event) end |
#help ⇒ Object
202 203 204 |
# File 'src/lib/y2remote/widgets/remote.rb', line 202 def help cwm_interfaces["help"] || "" end |
#init ⇒ Object
194 195 196 |
# File 'src/lib/y2remote/widgets/remote.rb', line 194 def init Yast::CWMFirewallInterfaces.OpenFirewallInit(cwm_interfaces, "") end |
#opt ⇒ Object
190 191 192 |
# File 'src/lib/y2remote/widgets/remote.rb', line 190 def opt [:notify] end |
#store ⇒ Object
Applies the configuration of the vnc services according to the allowed interfaces.
212 213 214 |
# File 'src/lib/y2remote/widgets/remote.rb', line 212 def store Yast::CWMFirewallInterfaces.StoreAllowedInterfaces(services) end |