Changeset 20630 in vbox for trunk/src/VBox/Main/glue
- Timestamp:
- Jun 16, 2009 1:55:38 PM (16 years ago)
- svn:sync-xref-src-repo-rev:
- 48707
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/Main/glue/vboxapi.py
r20598 r20630 145 145 return d['result'] 146 146 147 def waitForEvents(self, timeout): 148 # not really supported yet 149 pass 150 151 def deinit(self): 152 import pythoncom 153 pythoncom.CoUninitialize() 154 pass 155 147 156 class PlatformXPCOM: 148 157 def __init__(self, params): … … 192 201 return d['result'] 193 202 203 def waitForEvents(self, timeout): 204 import xpcom 205 xpcom._xpcom.WaitForEvents(timeout) 206 207 def deinit(self): 208 import xpcom 209 xpcom._xpcom.DeinitCOM() 194 210 195 211 class PlatformWEBSERVICE: … … 235 251 def createCallback(self, iface, impl, arg): 236 252 raise Exception("no callbacks for webservices") 253 254 def waitForEvents(self, timeout): 255 # Webservices cannot do that 256 pass 257 258 def deinit(self): 259 # should we do something about it? 260 pass 237 261 238 262 class SessionManager: … … 269 293 270 294 def __del__(self): 295 deinit(self) 296 297 def deinit(self): 271 298 if hasattr(self, "vbox"): 272 299 del self.vbox 300 if hasattr(self, "platform"): 301 self.platform.deinit() 273 302 274 303 def initPerThread(self): … … 288 317 def createCallback(self, iface, impl, arg): 289 318 return self.platform.createCallback(iface, impl, arg) 319 320 def waitForEvents(self, timeout): 321 return self.platform.waitForEvents(timeout)
Note:
See TracChangeset
for help on using the changeset viewer.