virtualbox-com 0.10.8 → 0.10.9

Sign up to get free protection for your applications and to get access to all the features.
@@ -28,7 +28,37 @@ class Machine < NSISupports
28
28
  end
29
29
  end
30
30
 
31
+ class VRDEServer < NSISupports
32
+ VNC_PROPERTY_NICKNAME = {
33
+ 'TCP/Ports' => :port,
34
+ 'TCP/Address' => :address,
35
+ 'VideoChannel/Quality' => :quality,
36
+ 'VNCPassword' => :password,
37
+ }.freeze
38
+ VNC_NICKNAME_PROPERTY = VNC_PROPERTY_NICKNAME.invert.freeze
39
+
40
+ def property_supported?(prop)
41
+ !property_nickname(prop).nil?
42
+ end
43
+ def property_nickname(prop)
44
+ @property_nickname ||= self.class
45
+ .const_get("#{self.vrde_ext_pack.upcase}_PROPERTY_NICKNAME", false)
46
+ @property_nickname[prop]
47
+ rescue NameError
48
+ raise "unsupported VRDE extension pack (#{self.vrde_ext_pack.upcase})"
49
+ end
31
50
 
51
+ def nickname_supported?(nick)
52
+ !nickname_property(nick).nil?
53
+ end
54
+ def nickname_property(nick)
55
+ @nickname_property ||= self.class
56
+ .const_get("#{self.vrde_ext_pack.upcase}_NICKNAME_PROPERTY", false)
57
+ @nickname_property[nick]
58
+ rescue NameError
59
+ raise "unsupported VRDE extension pack (#{self.vrde_ext_pack.upcase})"
60
+ end
61
+ end
32
62
 
33
63
  class Progress < NSISupports
34
64
  # This method blocks the execution while the operations represented
@@ -1,5 +1,5 @@
1
1
  module VirtualBox
2
2
  module COM
3
- VERSION = "0.10.8"
3
+ VERSION = "0.10.9"
4
4
  end
5
5
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: virtualbox-com
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.10.8
4
+ version: 0.10.9
5
5
  prerelease:
6
6
  platform: ruby
7
7
  authors:
@@ -9,7 +9,7 @@ authors:
9
9
  autorequire:
10
10
  bindir: bin
11
11
  cert_chain: []
12
- date: 2013-07-30 00:00:00.000000000 Z
12
+ date: 2013-08-02 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: rake
@@ -108,7 +108,7 @@ required_ruby_version: !ruby/object:Gem::Requirement
108
108
  version: '0'
109
109
  segments:
110
110
  - 0
111
- hash: -3036680002265941423
111
+ hash: 1314675808244508540
112
112
  required_rubygems_version: !ruby/object:Gem::Requirement
113
113
  none: false
114
114
  requirements:
@@ -117,7 +117,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
117
117
  version: '0'
118
118
  segments:
119
119
  - 0
120
- hash: -3036680002265941423
120
+ hash: 1314675808244508540
121
121
  requirements: []
122
122
  rubyforge_project:
123
123
  rubygems_version: 1.8.25