equal
deleted
inserted
replaced
|
1 /* |
|
2 * Copyright (c) 2002-2007 Nokia Corporation and/or its subsidiary(-ies). |
|
3 * All rights reserved. |
|
4 * This component and the accompanying materials are made available |
|
5 * under the terms of "Eclipse Public License v1.0" |
|
6 * which accompanies this distribution, and is available |
|
7 * at the URL "http://www.eclipse.org/legal/epl-v10.html". |
|
8 * |
|
9 * Initial Contributors: |
|
10 * Nokia Corporation - initial contribution. |
|
11 * |
|
12 * Contributors: |
|
13 * |
|
14 * Description: |
|
15 * |
|
16 */ |
|
17 |
|
18 #include "AknMemoryCardDialogImpl.h" |
|
19 #include <eikenv.h> |
|
20 #include <eikspane.h> |
|
21 #include <avkon.hrh> |
|
22 #include <eikspane.h> |
|
23 #include <aknappui.h> |
|
24 #include <bautils.h> |
|
25 #include <aknnotpi.rsg> |
|
26 |
|
27 /** |
|
28 * TResourceFileLoader |
|
29 * |
|
30 * Load and destroy resource file for this DLL |
|
31 */ |
|
32 void TResourceFileLoader::DeleteResourceFile() |
|
33 { |
|
34 if (iResourceFileOffset > 0) |
|
35 { |
|
36 CCoeEnv::Static()->DeleteResourceFile(iResourceFileOffset); |
|
37 iResourceFileOffset = 0; |
|
38 } |
|
39 } |
|
40 |
|
41 void TResourceFileLoader::AddResourceFileL() |
|
42 { |
|
43 if (iResourceFileOffset == 0) |
|
44 { |
|
45 CCoeEnv* environment = CCoeEnv::Static(); |
|
46 TFileName resourceFile = _L("z:\\private\\10207218\\aknmemorycardui.rsc"); |
|
47 BaflUtils::NearestLanguageFile(environment->FsSession(), resourceFile); |
|
48 iResourceFileOffset = environment->AddResourceFileL(resourceFile); |
|
49 } |
|
50 } |
|
51 |
|
52 // End of file |