Changeset 30871 in vbox for trunk/src/VBox/Frontends/VBoxShell
- Timestamp:
- Jul 16, 2010 10:07:21 AM (15 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/Frontends/VBoxShell/vboxshell.py
r30828 r30871 299 299 type = ev.type 300 300 print "got event: %s %s" %(str(type), asEnumElem(ctx, 'VBoxEventType', type)) 301 if type == ctx['global'].constants.VBoxEventType_OnMachineStateChange :301 if type == ctx['global'].constants.VBoxEventType_OnMachineStateChanged: 302 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 elif type == ctx['global'].constants.VBoxEventType_OnGuestPropertyChange :305 elif type == ctx['global'].constants.VBoxEventType_OnGuestPropertyChanged: 306 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 elif type == ctx['global'].constants.VBoxEventType_OnMousePointerShapeChange :309 elif type == ctx['global'].constants.VBoxEventType_OnMousePointerShapeChanged: 310 310 psev = ctx['global'].queryInterface(ev, 'IMousePointerShapeChangedEvent') 311 311 if psev:
Note:
See TracChangeset
for help on using the changeset viewer.