|
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 // provides entry point for IMCM.DLL |
|
15 // |
|
16 // |
|
17 |
|
18 #include <e32std.h> |
|
19 #include <bautils.h> // Bafl:: |
|
20 #include <msvutils.h> |
|
21 #include "MIUT_ERR.H" |
|
22 #include "IMCMMAIN.H" |
|
23 #include "MIUTHDR.H" // resource file name |
|
24 #ifdef SYMBIAN_ENABLE_SPLIT_HEADERS |
|
25 #include "miut_errconsts.h" |
|
26 #include "timrfc822datefield.h" |
|
27 #endif |
|
28 |
|
29 _LIT(KImcmPanic, "IMCM"); |
|
30 |
|
31 |
|
32 GLDEF_C void gPanic(TImcmPanic aPanic) |
|
33 { |
|
34 User::Panic(KImcmPanic,aPanic); |
|
35 } |
|
36 |
|
37 GLDEF_C void OpenResourceFileL(RResourceFile& rFile, RFs& anFs) |
|
38 { |
|
39 // open resource file |
|
40 TFileName fileName(KImEngineResourceFile); |
|
41 MsvUtils::AddPathAndExtensionToResFileL(fileName); |
|
42 BaflUtils::NearestLanguageFile( anFs, fileName ); |
|
43 if (BaflUtils::FileExists(anFs,fileName)) |
|
44 { |
|
45 rFile.OpenL( anFs, fileName ); // Qualified: No leavescan error |
|
46 return; |
|
47 } |
|
48 User::Leave(KErrNotFound); |
|
49 } |
|
50 |
|
51 GLDEF_C void CloseResourceFile( TAny* file ) |
|
52 { |
|
53 ((RResourceFile*)file)->Close(); |
|
54 } |
|
55 |
|
56 |
|
57 /** |
|
58 Place holder for removed export CImEmailSettings::SetVersion(). |
|
59 |
|
60 @internalComponent |
|
61 @released |
|
62 */ |
|
63 EXPORT_C void DummyExport01() {} |