VirtualBox

Changeset 49704 in vbox for trunk/src/VBox/Frontends


Ignore:
Timestamp:
Nov 28, 2013 6:26:13 PM (11 years ago)
Author:
vboxsync
svn:sync-xref-src-repo-rev:
90987
Message:

Frontends/VBoxShell: extend event dumping code slighty, good testcase for the now fixed event interface declarations

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/Frontends/VBoxShell/vboxshell.py

    r48300 r49704  
    349349            if scev:
    350350                print "machine state event: mach=%s state=%s" % (scev.machineId, scev.state)
     351        elif  evtype == ctx['global'].constants.VBoxEventType_OnSnapshotTaken:
     352            stev = ctx['global'].queryInterface(event, 'ISnapshotTakenEvent')
     353            if stev:
     354                print "snapshot taken event: mach=%s snap=%s" % (stev.machineId, stev.snapshotId)
    351355        elif  evtype == ctx['global'].constants.VBoxEventType_OnGuestPropertyChanged:
    352356            gpcev = ctx['global'].queryInterface(event, 'IGuestPropertyChangedEvent')
Note: See TracChangeset for help on using the changeset viewer.

© 2025 Oracle Support Privacy / Do Not Sell My Info Terms of Use Trademark Policy Automated Access Etiquette