Changeset 30828 in vbox for trunk/src/VBox/Frontends/VBoxShell/vboxshell.py
- Timestamp:
- Jul 14, 2010 12:49:48 PM (14 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/Frontends/VBoxShell/vboxshell.py
r30698 r30828 300 300 print "got event: %s %s" %(str(type), asEnumElem(ctx, 'VBoxEventType', type)) 301 301 if type == ctx['global'].constants.VBoxEventType_OnMachineStateChange: 302 scev = ctx['global'].queryInterface(ev, 'IMachineStateChange Event')302 scev = ctx['global'].queryInterface(ev, 'IMachineStateChangedEvent') 303 303 if scev: 304 304 print "machine state event: mach=%s state=%s" %(scev.machineId, scev.state) 305 305 elif type == ctx['global'].constants.VBoxEventType_OnGuestPropertyChange: 306 gpcev = ctx['global'].queryInterface(ev, 'IGuestPropertyChange Event')306 gpcev = ctx['global'].queryInterface(ev, 'IGuestPropertyChangedEvent') 307 307 if gpcev: 308 308 print "guest property change: name=%s value=%s" %(gpcev.name, gpcev.value) 309 309 elif type == ctx['global'].constants.VBoxEventType_OnMousePointerShapeChange: 310 psev = ctx['global'].queryInterface(ev, 'IMousePointerShapeChange Event')310 psev = ctx['global'].queryInterface(ev, 'IMousePointerShapeChangedEvent') 311 311 if psev: 312 312 shape = ctx['global'].getArray(psev, 'shape')
Note:
See TracChangeset
for help on using the changeset viewer.