187 TWsWinCmdUnion pData; |
187 TWsWinCmdUnion pData; |
188 pData.any=aCmdData; |
188 pData.any=aCmdData; |
189 switch (aOpcode) |
189 switch (aOpcode) |
190 { |
190 { |
191 case EWsWinOpReceiveFocus: |
191 case EWsWinOpReceiveFocus: |
192 aText.AppendFormat(_L("ReceiveFocus(%d)"), pData.Bool); |
192 aText.AppendFormat(_L("ReceiveFocus(%d)"), *pData.Bool); |
193 break; |
193 break; |
194 case EWsWinOpAutoForeground: |
194 case EWsWinOpAutoForeground: |
195 aText.AppendFormat(_L("AutoForeground(%d)"), pData.Bool); |
195 aText.AppendFormat(_L("AutoForeground(%d)"), *pData.Bool); |
196 break; |
196 break; |
197 case EWsWinOpCancelCaptureKey: |
197 case EWsWinOpCancelCaptureKey: |
198 aText.AppendFormat(_L("CancelCaptureKey(%d)"), *pData.UInt); |
198 aText.AppendFormat(_L("CancelCaptureKey(%d)"), *pData.UInt); |
199 break; |
199 break; |
200 case EWsWinOpCaptureKey: |
200 case EWsWinOpCaptureKey: |
779 { |
779 { |
780 _LIT(LogCreateGraphic,"EWsClOpCreateGraphic enum"); |
780 _LIT(LogCreateGraphic,"EWsClOpCreateGraphic enum"); |
781 aText.AppendFormat(LogCreateGraphic); |
781 aText.AppendFormat(LogCreateGraphic); |
782 } |
782 } |
783 break; |
783 break; |
|
784 case EWsClOpRegisterSurface: |
|
785 { |
|
786 TInt screenNumber = pData.SurfaceRegister->screenNumber; |
|
787 const TSurfaceId& surfaceId = pData.SurfaceRegister->surfaceId; |
|
788 |
|
789 _LIT(LogRegisterSurface,"RegisterSurface(aScreenNumber(%d), TSurfaceId{%x,%x,%x,%x})"); |
|
790 aText.AppendFormat(LogRegisterSurface, screenNumber, surfaceId.iInternal[0], surfaceId.iInternal[1], surfaceId.iInternal[2], surfaceId.iInternal[3]); |
|
791 } |
|
792 break; |
|
793 case EWsClOpUnregisterSurface: |
|
794 { |
|
795 TInt screenNumber = pData.SurfaceRegister->screenNumber; |
|
796 const TSurfaceId& surfaceId = pData.SurfaceRegister->surfaceId; |
|
797 |
|
798 _LIT(LogUnregisterSurface,"UnregisterSurface(aScreenNumber(%d), TSurfaceId{%x,%x,%x,%x})"); |
|
799 aText.AppendFormat(LogUnregisterSurface, screenNumber, surfaceId.iInternal[0], surfaceId.iInternal[1], surfaceId.iInternal[2], surfaceId.iInternal[3]); |
|
800 } |
|
801 break; |
784 case EWsClOpSetCloseProximityThresholds: |
802 case EWsClOpSetCloseProximityThresholds: |
785 { |
803 { |
786 _LIT(LogSetCloseProximityThresholds,"SetCloseProximityThresholds(%d, %d)"); |
804 _LIT(LogSetCloseProximityThresholds,"SetCloseProximityThresholds(%d, %d)"); |
787 aText.AppendFormat(LogSetCloseProximityThresholds, pData.ZThresholdPair->enterThreshold, pData.ZThresholdPair->exitThreshold); |
805 aText.AppendFormat(LogSetCloseProximityThresholds, pData.ZThresholdPair->enterThreshold, pData.ZThresholdPair->exitThreshold); |
788 } |
806 } |
1257 } |
1275 } |
1258 break; |
1276 break; |
1259 case EWsWinOpMoveToGroup: |
1277 case EWsWinOpMoveToGroup: |
1260 { |
1278 { |
1261 _LIT(LogWinMoveToGroup,"MoveToGroup(%d)"); |
1279 _LIT(LogWinMoveToGroup,"MoveToGroup(%d)"); |
1262 aText.AppendFormat(LogWinMoveToGroup, pData.Int); |
1280 aText.AppendFormat(LogWinMoveToGroup, *pData.Int); |
1263 } |
1281 } |
1264 break; |
1282 break; |
1265 case EWsWinOpStoreDrawCommands: |
1283 case EWsWinOpStoreDrawCommands: |
1266 { |
1284 { |
1267 _LIT(LogWinStoreDrawCommands,"EnableRedrawStore(%u)"); |
1285 _LIT(LogWinStoreDrawCommands,"EnableRedrawStore(%u)"); |
1268 aText.AppendFormat(LogWinStoreDrawCommands, pData.Bool); |
1286 aText.AppendFormat(LogWinStoreDrawCommands, *pData.Bool); |
1269 } |
1287 } |
1270 break; |
1288 break; |
1271 case EWsWinOpSetPointerCapturePriority: |
1289 case EWsWinOpSetPointerCapturePriority: |
1272 { |
1290 { |
1273 _LIT(LogWinSetPointerCapturePriority,"SetPointerCapturePriority(%d)"); |
1291 _LIT(LogWinSetPointerCapturePriority,"SetPointerCapturePriority(%d)"); |
1274 aText.AppendFormat(LogWinSetPointerCapturePriority, pData.Int); |
1292 aText.AppendFormat(LogWinSetPointerCapturePriority, *pData.Int); |
1275 } |
1293 } |
1276 break; |
1294 break; |
1277 case EWsWinOpGetPointerCapturePriority: |
1295 case EWsWinOpGetPointerCapturePriority: |
1278 { |
1296 { |
1279 _LIT(LogWinGetPointerCapturePriority,"GetPointerCapturePriority()"); |
1297 _LIT(LogWinGetPointerCapturePriority,"GetPointerCapturePriority()"); |
1287 } |
1305 } |
1288 break; |
1306 break; |
1289 case EWsWinOpSetTransparencyPolicy: |
1307 case EWsWinOpSetTransparencyPolicy: |
1290 { |
1308 { |
1291 _LIT(LogWinSetTransparentPolicy,"SetTransparencyPolicy(TransparencyPolicy= %d)"); |
1309 _LIT(LogWinSetTransparentPolicy,"SetTransparencyPolicy(TransparencyPolicy= %d)"); |
1292 aText.AppendFormat(LogWinSetTransparentPolicy, pData.Int); |
1310 aText.AppendFormat(LogWinSetTransparentPolicy, *pData.Int); |
1293 } |
1311 } |
1294 break; |
1312 break; |
1295 case EWsWinOpIsRedrawStoreEnabled: |
1313 case EWsWinOpIsRedrawStoreEnabled: |
1296 { |
1314 { |
1297 _LIT(LogWinIsRedrawStoreEnabled,"IsRedrawStoreEnabled()"); |
1315 _LIT(LogWinIsRedrawStoreEnabled,"IsRedrawStoreEnabled()"); |
1314 { |
1332 { |
1315 _LIT(LogClientHandle,"ClientHandle()"); |
1333 _LIT(LogClientHandle,"ClientHandle()"); |
1316 aText.AppendFormat(LogClientHandle); |
1334 aText.AppendFormat(LogClientHandle); |
1317 } |
1335 } |
1318 break; |
1336 break; |
|
1337 case EWsWinOpSetBackgroundSurface: |
|
1338 { |
|
1339 _LIT(LogWinSetBackgroundSurface,"SetBackgroundSurface(TSurfaceId{%x,%x,%x,%x})"); |
|
1340 aText.AppendFormat(LogWinSetBackgroundSurface, pData.Surface->iInternal[0],pData.Surface->iInternal[1],pData.Surface->iInternal[2],pData.Surface->iInternal[3]); |
|
1341 } |
|
1342 break; |
|
1343 case EWsWinOpKeyColor: |
|
1344 { |
|
1345 _LIT(LogWinKeyColor,"KeyColor()"); |
|
1346 aText.AppendFormat(LogWinKeyColor); |
|
1347 } |
|
1348 break; |
|
1349 case EWsWinOpSetBackgroundSurfaceConfig: |
|
1350 { |
|
1351 TSurfaceConfiguration aSurfaceConfig = pData.SurfaceConfigurationAndTrigger->surfaceConfig; |
|
1352 TSurfaceId surfaceid; |
|
1353 aSurfaceConfig.GetSurfaceId(surfaceid); |
|
1354 CFbsBitGc::TGraphicsOrientation orientation = aSurfaceConfig.Orientation(); |
|
1355 TRect extent; |
|
1356 aSurfaceConfig.GetExtent(extent); |
|
1357 TRect viewport; |
|
1358 aSurfaceConfig.GetViewport(viewport); |
|
1359 TBool flip = aSurfaceConfig.Flip(); |
|
1360 TBool triggerRedraw = pData.SurfaceConfigurationAndTrigger->triggerRedraw; |
|
1361 |
|
1362 TLongBuf extentbuf(TDebugLogTextHandler::FormatRect(extent)); |
|
1363 TLongBuf viewportbuf(TDebugLogTextHandler::FormatRect(viewport)); |
|
1364 |
|
1365 _LIT(LogWinSetBackgroundSurfaceConfig,"SetBackgroundSurface({%x,%x,%x,%x},%d,%S,%S,%d,%d)"); |
|
1366 aText.AppendFormat(LogWinSetBackgroundSurfaceConfig, surfaceid.iInternal[0], |
|
1367 surfaceid.iInternal[1], |
|
1368 surfaceid.iInternal[2], |
|
1369 surfaceid.iInternal[3], |
|
1370 orientation, |
|
1371 &extentbuf, |
|
1372 &viewportbuf, |
|
1373 flip, |
|
1374 triggerRedraw); |
|
1375 } |
|
1376 break; |
|
1377 case EWsWinOpRemoveBackgroundSurface: |
|
1378 { |
|
1379 _LIT(LogWinRemoveBackgroundSurface,"RemoveBackgroundSurface(%d)"); |
|
1380 aText.AppendFormat(LogWinRemoveBackgroundSurface, *(pData.Bool)); |
|
1381 } |
|
1382 break; |
|
1383 case EWsWinOpGetBackgroundSurfaceConfig: |
|
1384 { |
|
1385 _LIT(LogWinGetBackgroundSurfaceConfig,"GetBackgroundSurface()"); |
|
1386 aText.AppendFormat(LogWinGetBackgroundSurfaceConfig); |
|
1387 } |
|
1388 break; |
|
1389 case EWsWinOpClearRedrawStore: |
|
1390 { |
|
1391 _LIT(LogWinClearRedrawStore,"ClearRedrawStore()"); |
|
1392 aText.AppendFormat(LogWinClearRedrawStore); |
|
1393 } |
|
1394 break; |
1319 default: |
1395 default: |
1320 UnKnownOpcode(aText, aOpcode); |
1396 UnKnownOpcode(aText, aOpcode); |
1321 break; |
1397 break; |
1322 } |
1398 } |
1323 } |
1399 } |
1784 case EWsGcOpGdiBltMasked: |
1860 case EWsGcOpGdiBltMasked: |
1785 case EWsGcOpGdiWsBltMasked: |
1861 case EWsGcOpGdiWsBltMasked: |
1786 { |
1862 { |
1787 TShortBuf buf1(TDebugLogTextHandler::FormatPoint(pData.GdiBltMasked->destination)); |
1863 TShortBuf buf1(TDebugLogTextHandler::FormatPoint(pData.GdiBltMasked->destination)); |
1788 TLongBuf buf2(TDebugLogTextHandler::FormatRect(pData.GdiBltMasked->source)); |
1864 TLongBuf buf2(TDebugLogTextHandler::FormatRect(pData.GdiBltMasked->source)); |
1789 _LIT(LogGcBitBltMasked,"BitBltMasked(%S, {%d}, %S)"); |
1865 _LIT(LogGcBitBltMasked,"BitBltMasked(%S, {%d}, %S, {%d}, %d)"); |
1790 aText.AppendFormat(LogGcBitBltMasked, &buf1, hHandleToValue(pData.GdiBltMasked->handle), |
1866 aText.AppendFormat(LogGcBitBltMasked, &buf1, hHandleToValue(pData.GdiBltMasked->handle), |
1791 &buf2, hHandleToValue(pData.GdiBltMasked->maskHandle), |
1867 &buf2, hHandleToValue(pData.GdiBltMasked->maskHandle), |
1792 pData.GdiBltMasked->invertMask); |
1868 pData.GdiBltMasked->invertMask); |
1793 } |
1869 } |
1794 break; |
1870 break; |
1857 } |
1933 } |
1858 break; |
1934 break; |
1859 case EWsGcOpSetFaded: |
1935 case EWsGcOpSetFaded: |
1860 { |
1936 { |
1861 _LIT(KLitGcSetFaded, "SetFaded(%d)"); |
1937 _LIT(KLitGcSetFaded, "SetFaded(%d)"); |
1862 aText.AppendFormat(KLitGcSetFaded, pData.Bool); |
1938 aText.AppendFormat(KLitGcSetFaded, *pData.Bool); |
1863 } |
1939 } |
1864 break; |
1940 break; |
1865 case EWsGcOpSetFadeParams: |
1941 case EWsGcOpSetFadeParams: |
1866 { |
1942 { |
1867 _LIT(KLitGcSetFadeParams, "SetFadeParams(BlackMap %d, WhiteMap %d)"); |
1943 _LIT(KLitGcSetFadeParams, "SetFadeParams(BlackMap %d, WhiteMap %d)"); |
2021 } |
2097 } |
2022 break; |
2098 break; |
2023 case EWsSdOpSetScreenMode: |
2099 case EWsSdOpSetScreenMode: |
2024 { |
2100 { |
2025 _LIT(LogScreenDeviceSetScreenMode,"ScreenMode(%d)"); |
2101 _LIT(LogScreenDeviceSetScreenMode,"ScreenMode(%d)"); |
2026 aText.AppendFormat(LogScreenDeviceSetScreenMode,pData.Int); |
2102 aText.AppendFormat(LogScreenDeviceSetScreenMode,*pData.Int); |
2027 } |
2103 } |
2028 break; |
2104 break; |
2029 case EWsSdOpGetScreenModeSizeAndRotation: |
2105 case EWsSdOpGetScreenModeSizeAndRotation: |
2030 case EWsSdOpGetScreenModeSizeAndRotation2: |
2106 case EWsSdOpGetScreenModeSizeAndRotation2: |
2031 { |
2107 { |
2032 _LIT(LogScreenDeviceGetScreenModeSizeAndRotation,"GetScreenModeSizeAndRotation(%d)"); |
2108 _LIT(LogScreenDeviceGetScreenModeSizeAndRotation,"GetScreenModeSizeAndRotation(%d)"); |
2033 aText.AppendFormat(LogScreenDeviceGetScreenModeSizeAndRotation,pData.Int); |
2109 aText.AppendFormat(LogScreenDeviceGetScreenModeSizeAndRotation,*pData.Int); |
2034 } |
2110 } |
2035 break; |
2111 break; |
2036 case EWsSdOpSetScreenModeEnforcement: |
2112 case EWsSdOpSetScreenModeEnforcement: |
2037 { |
2113 { |
2038 _LIT(LogScreenDeviceSetScreenModeEnforcement,"SetScreenModeEnforcement(%d)"); |
2114 _LIT(LogScreenDeviceSetScreenModeEnforcement,"SetScreenModeEnforcement(%d)"); |
2039 aText.AppendFormat(LogScreenDeviceSetScreenModeEnforcement,pData.Int); |
2115 aText.AppendFormat(LogScreenDeviceSetScreenModeEnforcement,*pData.Int); |
2040 } |
2116 } |
2041 break; |
2117 break; |
2042 case EWsSdOpScreenModeEnforcement: |
2118 case EWsSdOpScreenModeEnforcement: |
2043 { |
2119 { |
2044 _LIT(LogScreenDeviceScreenModeEnforcement,"ScreenModeEnforcement"); |
2120 _LIT(LogScreenDeviceScreenModeEnforcement,"ScreenModeEnforcement"); |
2052 } |
2128 } |
2053 break; |
2129 break; |
2054 case EWsSdOpGetRotationList: |
2130 case EWsSdOpGetRotationList: |
2055 { |
2131 { |
2056 _LIT(LogScreenDeviceGetRotationList,"GetRotationList(%d)"); |
2132 _LIT(LogScreenDeviceGetRotationList,"GetRotationList(%d)"); |
2057 aText.AppendFormat(LogScreenDeviceGetRotationList,pData.Int); |
2133 aText.AppendFormat(LogScreenDeviceGetRotationList,*pData.Int); |
2058 } |
2134 } |
2059 break; |
2135 break; |
2060 case EWsSdOpPaletteAttributes: |
2136 case EWsSdOpPaletteAttributes: |
2061 { |
2137 { |
2062 _LIT(LogScreenDevicePaletteAttributes,"PaletteAttributes(...)"); |
2138 _LIT(LogScreenDevicePaletteAttributes,"PaletteAttributes(...)"); |
2088 } |
2164 } |
2089 break; |
2165 break; |
2090 case EWsSdOpGetScreenModeOrigin: |
2166 case EWsSdOpGetScreenModeOrigin: |
2091 { |
2167 { |
2092 _LIT(LogScreenDeviceGetScreenModeOrigin,"GetScreenModeOrigin(%d)"); |
2168 _LIT(LogScreenDeviceGetScreenModeOrigin,"GetScreenModeOrigin(%d)"); |
2093 aText.AppendFormat(LogScreenDeviceGetScreenModeOrigin, pData.Int); |
2169 aText.AppendFormat(LogScreenDeviceGetScreenModeOrigin, *pData.Int); |
2094 } |
2170 } |
2095 break; |
2171 break; |
2096 case EWsSdOpGetScreenModeScale: |
2172 case EWsSdOpGetScreenModeScale: |
2097 { |
2173 { |
2098 _LIT(LogScreenDeviceGetScreenModeScale,"GetScreenModeScale(%d)"); |
2174 _LIT(LogScreenDeviceGetScreenModeScale,"GetScreenModeScale(%d)"); |
2099 aText.AppendFormat(LogScreenDeviceGetScreenModeScale, pData.Int); |
2175 aText.AppendFormat(LogScreenDeviceGetScreenModeScale, *pData.Int); |
2100 } |
2176 } |
2101 break; |
2177 break; |
2102 case EWsSdOpGetCurrentScreenModeScale: |
2178 case EWsSdOpGetCurrentScreenModeScale: |
2103 { |
2179 { |
2104 _LIT(LogScreenDeviceGetCurrentScreenModeScale,"GetCurrentScreenModeScale()"); |
2180 _LIT(LogScreenDeviceGetCurrentScreenModeScale,"GetCurrentScreenModeScale()"); |
2106 } |
2182 } |
2107 break; |
2183 break; |
2108 case EWsSdOpSetAppScreenMode: |
2184 case EWsSdOpSetAppScreenMode: |
2109 { |
2185 { |
2110 _LIT(LogScreenDeviceSetAppScreenMode,"SetAppScreenMode(%d)"); |
2186 _LIT(LogScreenDeviceSetAppScreenMode,"SetAppScreenMode(%d)"); |
2111 aText.AppendFormat(LogScreenDeviceSetAppScreenMode, pData.Int); |
2187 aText.AppendFormat(LogScreenDeviceSetAppScreenMode, *pData.Int); |
2112 } |
2188 } |
2113 break; |
2189 break; |
2114 case EWsSdOpGetScreenModeScaledOrigin: |
2190 case EWsSdOpGetScreenModeScaledOrigin: |
2115 { |
2191 { |
2116 _LIT(LogScreenDeviceGetScreenModeScaledOrigin,"GetScreenModeScaledOrigin(%d)"); |
2192 _LIT(LogScreenDeviceGetScreenModeScaledOrigin,"GetScreenModeScaledOrigin(%d)"); |
2117 aText.AppendFormat(LogScreenDeviceGetScreenModeScaledOrigin, pData.Int); |
2193 aText.AppendFormat(LogScreenDeviceGetScreenModeScaledOrigin, *pData.Int); |
2118 } |
2194 } |
2119 break; |
2195 break; |
2120 case EWsSdOpGetCurrentScreenModeScaledOrigin: |
2196 case EWsSdOpGetCurrentScreenModeScaledOrigin: |
2121 { |
2197 { |
2122 _LIT(LogScreenDeviceGetCurrentScreenModeScaledOrigin,"GetCurrentScreenModeScaledOrigin()"); |
2198 _LIT(LogScreenDeviceGetCurrentScreenModeScaledOrigin,"GetCurrentScreenModeScaledOrigin()"); |
2149 } |
2225 } |
2150 break; |
2226 break; |
2151 case EWsSdOpGetScreenModeDisplayMode: |
2227 case EWsSdOpGetScreenModeDisplayMode: |
2152 { |
2228 { |
2153 _LIT(LogScreenDeviceGetScreenModeDisplayMode,"GetScreenModeDisplayMode(%d)"); |
2229 _LIT(LogScreenDeviceGetScreenModeDisplayMode,"GetScreenModeDisplayMode(%d)"); |
2154 aText.AppendFormat(LogScreenDeviceGetScreenModeDisplayMode, pData.Int); |
2230 aText.AppendFormat(LogScreenDeviceGetScreenModeDisplayMode, *pData.Int); |
2155 } |
2231 } |
2156 break; |
2232 break; |
2157 case EWsClOpSetBackLight: |
2233 case EWsClOpSetBackLight: |
2158 { |
2234 { |
2159 _LIT(LogScreenDeviceSetBackLight,"SetBackLight(%u)"); |
2235 _LIT(LogScreenDeviceSetBackLight,"SetBackLight(%u)"); |
2160 aText.AppendFormat(LogScreenDeviceSetBackLight, pData.UInt); |
2236 aText.AppendFormat(LogScreenDeviceSetBackLight, *pData.UInt); |
2161 } |
2237 } |
2162 break; |
2238 break; |
2163 default: |
2239 default: |
2164 UnKnownOpcode(aText, aOpcode); |
2240 UnKnownOpcode(aText, aOpcode); |
2165 break; |
2241 break; |
2270 } |
2346 } |
2271 break; |
2347 break; |
2272 case EWsDirectOpGetRegion: |
2348 case EWsDirectOpGetRegion: |
2273 { |
2349 { |
2274 _LIT(LogDirectGetRegion,"GetRegion(%d)"); |
2350 _LIT(LogDirectGetRegion,"GetRegion(%d)"); |
2275 aText.AppendFormat(LogDirectGetRegion,pData.Int); |
2351 aText.AppendFormat(LogDirectGetRegion,*pData.Int); |
2276 } |
2352 } |
2277 break; |
2353 break; |
2278 case EWsDirectOpCancel: |
2354 case EWsDirectOpCancel: |
2279 { |
2355 { |
2280 _LIT(LogDirectCancel,"Cancel()"); |
2356 _LIT(LogDirectCancel,"Cancel()"); |
2339 } |
2415 } |
2340 break; |
2416 break; |
2341 case EWsClickOpSetKeyClick: |
2417 case EWsClickOpSetKeyClick: |
2342 { |
2418 { |
2343 _LIT(LogSetKeyClick,"SetKeyClick(%u)"); |
2419 _LIT(LogSetKeyClick,"SetKeyClick(%u)"); |
2344 aText.AppendFormat(LogSetKeyClick, pData.Bool); |
2420 aText.AppendFormat(LogSetKeyClick, *pData.Bool); |
2345 } |
2421 } |
2346 break; |
2422 break; |
2347 case EWsClickOpSetPenClick: |
2423 case EWsClickOpSetPenClick: |
2348 { |
2424 { |
2349 _LIT(LogSetPenClick,"SetPenClick(%u)"); |
2425 _LIT(LogSetPenClick,"SetPenClick(%u)"); |
2350 aText.AppendFormat(LogSetPenClick, pData.Bool); |
2426 aText.AppendFormat(LogSetPenClick, *pData.Bool); |
2351 } |
2427 } |
2352 break; |
2428 break; |
2353 case EWsClickOpKeyClickEnabled: |
2429 case EWsClickOpKeyClickEnabled: |
2354 { |
2430 { |
2355 _LIT(LogKeyClickEnabled,"KeyClickEnabled()"); |
2431 _LIT(LogKeyClickEnabled,"KeyClickEnabled()"); |