Class: VirtualBox::COM::Model::VRDEServer
- Inherits:
-
NSISupports
show all
- Defined in:
- lib/virtualbox/com/model/4.2.rb,
lib/virtualbox/com/model/4.1-generated.rb,
lib/virtualbox/com/model/4.2-generated.rb
Constant Summary
collapse
- VNC_PROPERTY_NICKNAME =
{
'TCP/Ports' => :port,
'TCP/Address' => :address,
'VideoChannel/Quality' => :quality,
'VNCPassword' => :password,
}.freeze
- VNC_NICKNAME_PROPERTY =
VNC_PROPERTY_NICKNAME.invert.freeze
Instance Attribute Summary
#implementer
Instance Method Summary
collapse
#cast, function, functions, #initialize, #inspect, member, members, properties, property
iid
Instance Method Details
#nickname_property(nick) ⇒ Object
54
55
56
57
58
59
60
|
# File 'lib/virtualbox/com/model/4.2.rb', line 54
def nickname_property(nick)
@nickname_property ||= self.class
.const_get("#{self.vrde_ext_pack.upcase}_NICKNAME_PROPERTY", false)
@nickname_property[nick]
rescue NameError
raise "unsupported VRDE extension pack (#{self.vrde_ext_pack.upcase})"
end
|
#nickname_supported?(nick) ⇒ Boolean
51
52
53
|
# File 'lib/virtualbox/com/model/4.2.rb', line 51
def nickname_supported?(nick)
!nickname_property(nick).nil?
end
|
#property_nickname(prop) ⇒ Object
43
44
45
46
47
48
49
|
# File 'lib/virtualbox/com/model/4.2.rb', line 43
def property_nickname(prop)
@property_nickname ||= self.class
.const_get("#{self.vrde_ext_pack.upcase}_PROPERTY_NICKNAME", false)
@property_nickname[prop]
rescue NameError
raise "unsupported VRDE extension pack (#{self.vrde_ext_pack.upcase})"
end
|
#property_supported?(prop) ⇒ Boolean
40
41
42
|
# File 'lib/virtualbox/com/model/4.2.rb', line 40
def property_supported?(prop)
!property_nickname(prop).nil?
end
|