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
181 182 183 184 185 186 187 |
# File 'src/lib/y2remote/widgets/remote.rb', line 181 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.
178 179 180 |
# File 'src/lib/y2remote/widgets/remote.rb', line 178 def cwm_interfaces @cwm_interfaces end |
Instance Method Details
#contents ⇒ Object
197 198 199 |
# File 'src/lib/y2remote/widgets/remote.rb', line 197 def contents cwm_interfaces["custom_widget"] end |
#handle(event) ⇒ Object
205 206 207 |
# File 'src/lib/y2remote/widgets/remote.rb', line 205 def handle(event) Yast::CWMFirewallInterfaces.OpenFirewallHandle(cwm_interfaces, "", event) end |
#help ⇒ Object
201 202 203 |
# File 'src/lib/y2remote/widgets/remote.rb', line 201 def help cwm_interfaces["help"] || "" end |
#init ⇒ Object
193 194 195 |
# File 'src/lib/y2remote/widgets/remote.rb', line 193 def init Yast::CWMFirewallInterfaces.OpenFirewallInit(cwm_interfaces, "") end |
#opt ⇒ Object
189 190 191 |
# File 'src/lib/y2remote/widgets/remote.rb', line 189 def opt [:notify] end |
#store ⇒ Object
Applies the configuration of the vnc services according to the allowed interfaces.
211 212 213 |
# File 'src/lib/y2remote/widgets/remote.rb', line 211 def store Yast::CWMFirewallInterfaces.StoreAllowedInterfaces(services) end |