Changeset 33298 in vbox
- Timestamp:
- Oct 21, 2010 11:07:23 AM (14 years ago)
- Location:
- trunk/src/VBox
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/Frontends/VBoxShell/vboxshell.py
r33296 r33298 405 405 listener = console.eventSource.createListener() 406 406 registered = False 407 # we create an aggregated event source to listen for multiple event types407 # we create an aggregated event source to listen for multiple event sources (keyboard and mouse in our case) 408 408 agg = console.eventSource.createAggregator([console.keyboard.eventSource, console.mouse.eventSource]) 409 409 demo = open(file, 'w') -
trunk/src/VBox/Main/idl/VirtualBox.xidl
r33295 r33298 14123 14123 <method name="createAggregator"> 14124 14124 <desc> 14125 Creates a aggregator event source, collecting events from multiple source .14126 This way single listener can collect events from multiple sources, using14127 getEvent() of this aggregator.14125 Creates a aggregator event source, collecting events from multiple sources. 14126 This way single listener can listen for events coming from multiple sources, 14127 using single blocking getEvent() of this aggregator. 14128 14128 </desc> 14129 14129 <param name="subordinates" type="IEventSource" dir="in" safearray="yes"> -
trunk/src/VBox/Main/include/EventImpl.h
r31772 r33298 155 155 // IEventSource methods 156 156 STDMETHOD(CreateListener)(IEventListener ** aListener); 157 STDMETHOD(CreateAggregator)(ComSafeArrayIn(IEventSource*, aSubordinates), 158 IEventSource ** aAggregator); 157 159 STDMETHOD(RegisterListener)(IEventListener * aListener, 158 160 ComSafeArrayIn(VBoxEventType_T, aInterested),
Note:
See TracChangeset
for help on using the changeset viewer.