memspyui/ui/avkon/src/MemSpyViewKernelContainers.cpp
changeset 26 41ebde60981f
parent 17 4f2773374eff
child 31 e7a04a6385be
equal deleted inserted replaced
25:31fc1277642e 26:41ebde60981f
   107 		{
   107 		{
   108 		TInt count = iKernelObjects[i]->Count();
   108 		TInt count = iKernelObjects[i]->Count();
   109 		TInt size = iKernelObjects[i]->Size();
   109 		TInt size = iKernelObjects[i]->Size();
   110 		const TMemSpySizeText sizeText( MemSpyEngineUtils::FormatSizeText( size, 0 ) ); //TODO: is this OK to call Engine Utils?
   110 		const TMemSpySizeText sizeText( MemSpyEngineUtils::FormatSizeText( size, 0 ) ); //TODO: is this OK to call Engine Utils?
   111 								
   111 								
   112 		HBufC* tempName = HBufC::NewL( iKernelObjects[i]->Name().Length() + 32 ); //TODO: to removed this bulharic constant
   112 		HBufC* tempName = HBufC::NewL( iKernelObjects[i]->Name().Length() + 32 );
       
   113 		//HBufC* tempName = HBufC::NewL( KMaxFullName );
   113 		CleanupStack::PushL( tempName );
   114 		CleanupStack::PushL( tempName );
   114 		TPtr tempNamePtr( tempName->Des() );
   115 		TPtr tempNamePtr( tempName->Des() );
   115 		tempNamePtr.Copy( iKernelObjects[i]->Name() );									
   116 		tempNamePtr.Copy( iKernelObjects[i]->Name() );									
   116 		
   117 		
   117 		_LIT(KNameFormat, "\t%S\t\t%d item");
   118 		_LIT(KNameFormat, "\t%S\t\t%d item");
   124 		if  ( count == 0 || count > 1 )
   125 		if  ( count == 0 || count > 1 )
   125 			{
   126 			{
   126 			pName.Append( _L("s") );
   127 			pName.Append( _L("s") );
   127 			}
   128 			}
   128 
   129 
   129 		pName.AppendFormat( _L(", %S"), &sizeText ); // TODO: to create some ServerUtils class with formating methods for size and type!
   130 		pName.AppendFormat( _L(", %S"), &sizeText );
   130 		
   131 		
   131 		model->AppendL( pName );
   132 		model->AppendL( pName );
   132 		
   133 		
   133 		CleanupStack::PopAndDestroy( tempName); //---
   134 		CleanupStack::PopAndDestroy( tempName); //---
   134 		}
   135 		}
   171     }
   172     }
   172 
   173 
   173 
   174 
   174 void CMemSpyViewKernelContainers::OnCmdOutputAllContainerContentsL()
   175 void CMemSpyViewKernelContainers::OnCmdOutputAllContainerContentsL()
   175     {
   176     {
   176 	/* TODO
   177 	iMemSpySession.OutputAllContainerContents();
       
   178 		
       
   179 	/*
   177     CMemSpyEngineOutputSink& sink = iEngine.Sink();
   180     CMemSpyEngineOutputSink& sink = iEngine.Sink();
   178     iModel->OutputL( sink );
   181     iModel->OutputL( sink );
   179     */
   182     */
   180     }
   183     }
   181 
   184