brandingserver/bsserver/cbsbrandhandler.cpp
branchRCL_3
changeset 22 113b91e0a2ad
parent 21 cfd5c2994f10
equal deleted inserted replaced
21:cfd5c2994f10 22:113b91e0a2ad
     1 /*
     1 /*
     2 * Copyright (c) 2006 Nokia Corporation and/or its subsidiary(-ies).
     2 * Copyright (c) 2006 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 the License "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".
     8 *
     8 *
     9 * Initial Contributors:
     9 * Initial Contributors:
    10 * Nokia Corporation - initial contribution.
    10 * Nokia Corporation - initial contribution.
    11 *
    11 *
    12 * Contributors:
    12 * Contributors:
    13 *
    13 *
    14 * Description:  CBSBrandHandler.cpp
    14 * Description: CBSBrandHandler.cpp
    15 *
    15 *
    16 */
    16 */
    17 
    17 
    18 
    18 
    19 
       
    20 //  INCLUDE FILES
    19 //  INCLUDE FILES
    21 
    20 
    22 #include "cbsbrandhandler.h"
    21 #include "cbsbrandhandler.h"
    23 #include "bselementfactory.h"
    22 #include "bselementfactory.h"
    24 #include "DebugTrace.h"
    23 #include "debugtrace.h"
    25 #include "cbsstoragemanager.h"
    24 #include "cbsstoragemanager.h"
    26 #include "cbsbitmap.h"
    25 #include "cbsbitmap.h"
    27 #include "bsimportconstants.h"
    26 #include "bsimportconstants.h"
    28 
    27 
    29 #include <e32base.h>
    28 #include <e32base.h>
   209 	User::LeaveIfError( iFs.ShareProtected() );
   208 	User::LeaveIfError( iFs.ShareProtected() );
   210 
   209 
   211 	if (iLanguage >= 100)
   210 	if (iLanguage >= 100)
   212 		User::LeaveIfError (KErrNotFound);
   211 		User::LeaveIfError (KErrNotFound);
   213 	HBufC* fileName = GetTextL( aId );
   212 	HBufC* fileName = GetTextL( aId );
       
   213 	CleanupStack :: PushL (fileName);
   214 
   214 
   215     TBuf<KLangBufLength> buffer;
   215     TBuf<KLangBufLength> buffer;
   216 // append leading zero only if language code is <10.
   216 // append leading zero only if language code is <10.
   217     if ( 10 > iLanguage )
   217     if ( 10 > iLanguage )
   218         {
   218         {
   238 	                                         file);
   238 	                                         file);
   239 
   239 
   240 		TRACE( T_LIT( "CBSBrandHandler::GetFileL found in default brand") );
   240 		TRACE( T_LIT( "CBSBrandHandler::GetFileL found in default brand") );
   241 	    
   241 	    
   242 	    }
   242 	    }
       
   243 	
       
   244 	CleanupStack :: PopAndDestroy (fileName);
   243 
   245 
   244 	aFile = file;
   246 	aFile = file;
   245     TRACE( T_LIT( "CBSBrandHandler::GetFileL end") );
   247     TRACE( T_LIT( "CBSBrandHandler::GetFileL end") );
   246 	}
   248 	}
   247 
   249