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 { |