equal
deleted
inserted
replaced
732 switch (nodeType) |
732 switch (nodeType) |
733 { |
733 { |
734 case MWsWindowTreeNode::EWinTreeNodeClient: |
734 case MWsWindowTreeNode::EWinTreeNodeClient: |
735 { |
735 { |
736 node = CAlfNodeWindow::NewL( this, iStream, iScreenNumber ); |
736 node = CAlfNodeWindow::NewL( this, iStream, iScreenNumber ); |
|
737 |
|
738 #ifdef __WINS__ |
|
739 if (++iDebug_CheckNodeTableItegrityCounter > 100) // Do not check too often as is can be slow |
|
740 { |
|
741 Debug_CheckNodeTableItegrity(_L("CAlfHierarchyModel::DoNodeCreatedL")); |
|
742 } |
|
743 #endif |
|
744 |
737 break; |
745 break; |
738 } |
746 } |
739 case MWsWindowTreeNode::EWinTreeNodeRoot: |
747 case MWsWindowTreeNode::EWinTreeNodeRoot: |
740 { |
748 { |
741 node = CAlfNodeRoot::NewL( this ,iStream, iScreenNumber ); |
749 node = CAlfNodeRoot::NewL( this ,iStream, iScreenNumber ); |
1285 __ALFLOGSTRING1("CAlfHierarchyModel::PostBufferL endMarker: %d ", packetState); |
1293 __ALFLOGSTRING1("CAlfHierarchyModel::PostBufferL endMarker: %d ", packetState); |
1286 break; |
1294 break; |
1287 } |
1295 } |
1288 } |
1296 } |
1289 } |
1297 } |
1290 |
1298 |
1291 |
1299 |
|
1300 #ifdef __WINS__ |
|
1301 // --------------------------------------------------------------------------- |
|
1302 // |
|
1303 // --------------------------------------------------------------------------- |
|
1304 // |
|
1305 void CAlfHierarchyModel::Debug_CheckNodeTableItegrity(const TDesC16& aContext) |
|
1306 { |
|
1307 iDebug_CheckNodeTableItegrityCounter = 0; |
|
1308 |
|
1309 // Loop through the all items |
|
1310 TInt count = 0; |
|
1311 THashMapIter <TUint32,CNodeHashStruct> ptrHashSetIter(iNodeHashArray); |
|
1312 for ( ; ; ) |
|
1313 { |
|
1314 const CNodeHashStruct* resNext = ptrHashSetIter.NextValue(); |
|
1315 if (!resNext) |
|
1316 { |
|
1317 break; |
|
1318 } |
|
1319 count++; |
|
1320 if (resNext->iNode->Type() == MWsWindowTreeNode::EWinTreeNodeClient) |
|
1321 { |
|
1322 resNext->iNode->Debug_CheckSiblingOrder(aContext); |
|
1323 } |
|
1324 } |
|
1325 } |
|
1326 #endif |
|
1327 |
|
1328 |
|
1329 |