iaupdate/IAD/ui/src/iaupdatemaincontainer.cpp
branchRCL_3
changeset 11 3ba40be8e484
parent 2 661f3784fe57
child 13 0817e13c927e
equal deleted inserted replaced
9:51c0f5edf5ef 11:3ba40be8e484
     1 /*
     1 /*
     2 * Copyright (c) 2007-2009 Nokia Corporation and/or its subsidiary(-ies).
     2 * Copyright (c) 2007-2010 Nokia Corporation and/or its subsidiary(-ies).
     3 * All rights reserved.
     3 * All rights reserved.
     4 * This component and the accompanying materials are made available
     4 * This component and the accompanying materials are made available
     5 * under the terms of "Eclipse Public License v1.0"
     5 * under the terms of "Eclipse Public License v1.0"
     6 * which accompanies this distribution, and is available
     6 * which accompanies this distribution, and is available
     7 * at the URL "http://www.eclipse.org/legal/epl-v10.html".
     7 * at the URL "http://www.eclipse.org/legal/epl-v10.html".
   424             iItemTextArray->AppendL( *buffer );
   424             iItemTextArray->AppendL( *buffer );
   425             
   425             
   426             CleanupStack::PopAndDestroy( buffer );
   426             CleanupStack::PopAndDestroy( buffer );
   427             CleanupStack::PopAndDestroy( name );
   427             CleanupStack::PopAndDestroy( name );
   428             }
   428             }
   429 
       
   430         
   429         
   431         if ( node->NodeType() == MIAUpdateAnyNode::ENodeTypeFw ) 
   430         if ( node->NodeType() == MIAUpdateAnyNode::ENodeTypeFw ) 
   432             {
   431             {
   433             MIAUpdateFwNode* fwnode = static_cast<MIAUpdateFwNode*>( node );
   432             HBufC* firmwareHeader = StringLoader::LoadLC(R_IAUPDATE_MAIN_DEVICE_FW);
   434             HBufC* firmwarename = HBufC::NewLC( node->Base().Name().Length() +
   433             HBufC* firmwarename = HBufC::NewLC( node->Base().Name().Length() +
   435                                                 KSpace.iTypeLength +
   434                                                 KSpace.iTypeLength + 
   436                                                 fwnode->FwVersion1().Length() );  
   435                                                 firmwareHeader->Length() );
   437             firmwarename->Des() = node->Base().Name();
   436             firmwarename->Des() = node->Base().Name();
   438             firmwarename->Des() += KSpace();
   437             firmwarename->Des() += KSpace();
   439             firmwarename->Des() += fwnode->FwVersion1();
   438             firmwarename->Des() += *firmwareHeader;
   440             
   439                      
   441             
       
   442             HBufC* buffer = HBufC::NewLC( KOne.iTypeLength +
   440             HBufC* buffer = HBufC::NewLC( KOne.iTypeLength +
   443                                           KTabulator.iTypeLength + 
   441                                           KTabulator.iTypeLength + 
   444                                           firmwarename->Length() + 
   442                                           firmwarename->Length() + 
   445                                           KTabulator.iTypeLength +
   443                                           KTabulator.iTypeLength +
   446                                           importanceDescription->Length() +
   444                                           importanceDescription->Length() +
   455             buffer->Des() += KTwo();
   453             buffer->Des() += KTwo();
   456             
   454             
   457             iItemTextArray->AppendL( *buffer );
   455             iItemTextArray->AppendL( *buffer );
   458             CleanupStack::PopAndDestroy( buffer );
   456             CleanupStack::PopAndDestroy( buffer );
   459             CleanupStack::PopAndDestroy( firmwarename );
   457             CleanupStack::PopAndDestroy( firmwarename );
       
   458             CleanupStack::PopAndDestroy( firmwareHeader );
   460             }
   459             }
   461         
   460         
   462         CleanupStack::PopAndDestroy( importanceDescription );
   461         CleanupStack::PopAndDestroy( importanceDescription );
   463         }    
   462         }    
   464     
   463