- Timestamp:
- Jul 1, 2010 4:54:16 PM (15 years ago)
- svn:sync-xref-src-repo-rev:
- 63277
- Location:
- trunk/src/VBox
- Files:
-
- 4 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/Frontends/VBoxShell/vboxshell.py
r30533 r30564 432 432 433 433 def monitorSource(ctx, es, active, dur): 434 def handleEventImpl(ev): 435 print "got event: %s" %(str(ev.type)) 434 def handleEventImpl(ev): 435 type = ev.type 436 print "got event: %s %s" %(str(ev.type), asEnumElem(ctx, 'VBoxEventType', type)) 436 437 if ev.type == ctx['global'].constants.VBoxEventType_OnMachineStateChange: 437 438 scev = ctx['global'].queryInterface(ev, 'IMachineStateChangeEvent') 438 439 if scev: 439 440 print "state event: mach=%s state=%s" %(scev.machineId, scev.state) 441 elif type == ctx['global'].constants.VBoxEventType_OnMousePointerShapeChange: 442 psev = ctx['global'].queryInterface(ev, 'IMousePointerShapeChangeEvent') 443 if psev: 444 shape = ctx['global'].getArray(psev, 'shape') 445 print "pointer shape event: w=%d h=%d shape len=%d" %(psev.width, psev.height, len(shape)) 440 446 441 447 class EventListener: … … 450 456 traceback.print_exc() 451 457 pass 452 458 453 459 if active: 454 460 listener = ctx['global'].createListener(EventListener) -
trunk/src/VBox/Main/ConsoleImpl.cpp
r30553 r30564 5028 5028 } 5029 5029 #if 1 5030 evDesc.init(mEventSource, VBoxEventType_OnShowWindow );5030 evDesc.init(mEventSource, VBoxEventType_OnShowWindow, UINT64_C(0)); 5031 5031 ComPtr<IEvent> aEvent; 5032 5032 evDesc.getEvent(aEvent.asOutParam()); 5033 5033 ComPtr<IShowWindowEvent> aShowEvent = aEvent; 5034 if (aShowEvent) 5035 aShowEvent->COMSETTER(WinId)(0); 5036 5034 5037 5035 BOOL fDelivered = evDesc.fire(10000); /* Wait up to 10 secs for delivery */ 5038 5036 Assert(fDelivered); -
trunk/src/VBox/Main/idl/VirtualBox.xidl
r30553 r30564 15313 15313 </attribute> 15314 15314 </interface> 15315 15315 15316 15316 <interface 15317 15317 name="IStorageControllerChangeEvent" extends="IEvent" … … 15342 15342 </attribute> 15343 15343 </interface> 15344 15344 15345 15345 <interface 15346 15346 name="ICPUChangeEvent" extends="IEvent" … … 15537 15537 </attribute> 15538 15538 </interface> 15539 15539 15540 15540 <interface 15541 15541 name="IExtraDataChangeEvent" extends="IEvent" -
trunk/src/VBox/Main/idl/comimpl.xsl
r30553 r30564 177 177 <xsl:choose> 178 178 <xsl:when test="$safearray='yes'"> 179 <!-- @todo: setter missing --> 179 <xsl:variable name="elemtype"> 180 <xsl:call-template name="typeIdl2Back"> 181 <xsl:with-param name="type" select="@type" /> 182 <xsl:with-param name="safearray" select="''" /> 183 <xsl:with-param name="dir" select="'in'" /> 184 </xsl:call-template> 185 </xsl:variable> 186 <xsl:value-of select="concat(' SafeArray<', $elemtype, '> aArr(ComSafeArrayInArg(',$param,')); ')"/> 187 <xsl:value-of select="concat(' ',$member, '.initFrom(aArr); ')"/> 180 188 </xsl:when> 181 189 <xsl:otherwise> … … 192 200 <xsl:choose> 193 201 <xsl:when test="$safearray='yes'"> 194 <xsl:value-of select="concat(' ', $member, '. cloneTo(ComSafeArrayOutArg (', $param, ')); ')"/>202 <xsl:value-of select="concat(' ', $member, '.detachTo(ComSafeArrayOutArg (', $param, ')); ')"/> 195 203 </xsl:when> 196 204 <xsl:otherwise> … … 252 260 </xsl:variable> 253 261 254 <!-- no safearrays params yet --> 255 <xsl:if test="not(@safearray)"> 256 <xsl:value-of select="concat(' ',$aTypeName, ' = va_arg(args, ',$aType,'); ')"/> 257 <xsl:value-of select="concat(' ',$obj, '->set_', @name, '(',$aName, '); ')"/> 258 </xsl:if> 262 <xsl:choose> 263 <xsl:when test="@safearray='yes'"> 264 <xsl:variable name="elemtype"> 265 <xsl:call-template name="typeIdl2Back"> 266 <xsl:with-param name="type" select="@type" /> 267 <xsl:with-param name="safearray" select="''" /> 268 <xsl:with-param name="dir" select="'in'" /> 269 </xsl:call-template> 270 </xsl:variable> 271 <xsl:value-of select=" '#ifdef RT_OS_WINDOWS '"/> 272 <xsl:value-of select=" ' SAFEARRAY ** aPtr = va_arg(args, SAFEARRAY **); '"/> 273 <xsl:value-of select="concat(' com::SafeArray<', $elemtype,'> aArr(aPtr); ')"/> 274 <xsl:value-of select=" '#else '"/> 275 <xsl:value-of select=" ' PRUint32 aArrSize = va_arg(args, PRUint32); '"/> 276 <xsl:value-of select=" ' void* aPtr = va_arg(args, void*); '"/> 277 <xsl:value-of select="concat(' com::SafeArray<', $elemtype,'> aArr(aArrSize, (', $elemtype,'*)aPtr); ')"/> 278 <xsl:value-of select=" '#endif '"/> 279 <xsl:value-of select="concat(' ',$obj, '->set_', @name, '(ComSafeArrayAsInParam(aArr)); ')"/> 280 </xsl:when> 281 <xsl:otherwise> 282 <xsl:value-of select="concat(' ',$aTypeName, ' = va_arg(args, ',$aType,'); ')"/> 283 <xsl:value-of select="concat(' ',$obj, '->set_', @name, '(',$aName, '); ')"/> 284 </xsl:otherwise> 285 </xsl:choose> 259 286 </xsl:for-each> 260 287 </xsl:template>
Note:
See TracChangeset
for help on using the changeset viewer.