|
1 // Copyright (c) 1998-2009 Nokia Corporation and/or its subsidiary(-ies). |
|
2 // All rights reserved. |
|
3 // This component and the accompanying materials are made available |
|
4 // under the terms of "Eclipse Public License v1.0" |
|
5 // which accompanies this distribution, and is available |
|
6 // at the URL "http://www.eclipse.org/legal/epl-v10.html". |
|
7 // |
|
8 // Initial Contributors: |
|
9 // Nokia Corporation - initial contribution. |
|
10 // |
|
11 // Contributors: |
|
12 // |
|
13 // Description: |
|
14 // IMUTDLL.CPP |
|
15 // |
|
16 |
|
17 #include <e32std.h> |
|
18 #include <f32file.h> // RFs |
|
19 #include <barsc.h> // RResourceFile |
|
20 #include <bautils.h> // Bafl:: |
|
21 #include <msvutils.h> |
|
22 #include "IMCVTEXT.H" |
|
23 #include "IMUTDLL.H" // |
|
24 #include <miuthdr.h> // resource file name |
|
25 #ifdef SYMBIAN_ENABLE_SPLIT_HEADERS |
|
26 #include "timrfc822datefield.h" |
|
27 #endif |
|
28 |
|
29 GLDEF_C void OpenResourceFileL(RResourceFile& rFile, RFs& anFs) |
|
30 { |
|
31 // open resource file |
|
32 TFileName fileName(KImEngineResourceFile); |
|
33 MsvUtils::AddPathAndExtensionToResFileL(fileName); |
|
34 BaflUtils::NearestLanguageFile( anFs, fileName ); |
|
35 if (BaflUtils::FileExists(anFs,fileName)) |
|
36 { |
|
37 rFile.OpenL( anFs, fileName ); // Qualified: no leavescan error |
|
38 return; |
|
39 } |
|
40 |
|
41 User::Leave(KErrNotFound); |
|
42 } |
|
43 |
|
44 GLDEF_C void gPanic( TImutErrorReason aReason) |
|
45 { |
|
46 User::Panic( KImutDllName ,aReason); |
|
47 } |
|
48 |
|
49 GLDEF_C void CloseResourceFile( TAny* file ) |
|
50 { |
|
51 ((RResourceFile*)file)->Close(); |
|
52 } |