|
1 /** |
|
2 * Copyright (c) 2006-2009 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 the License "Symbian Foundation License v1.0" |
|
6 * which accompanies this distribution, and is available |
|
7 * at the URL "http://www.symbianfoundation.org/legal/sfl-v10.html". |
|
8 * |
|
9 * Initial Contributors: |
|
10 * Nokia Corporation - initial contribution. |
|
11 * |
|
12 * Contributors: |
|
13 * |
|
14 * Description: |
|
15 * |
|
16 */ |
|
17 |
|
18 |
|
19 |
|
20 |
|
21 |
|
22 /** |
|
23 @file |
|
24 */ |
|
25 |
|
26 |
|
27 #ifndef __LOCAL_IMUTDLL_H__ |
|
28 #define __LOCAL_IMUTDLL_H__ |
|
29 |
|
30 #ifndef __E32STD_H__ |
|
31 #include <e32std.h> |
|
32 #endif |
|
33 |
|
34 #ifndef __BARSC_H__ |
|
35 #include <barsc.h> // RResourceFile |
|
36 #endif |
|
37 |
|
38 |
|
39 /** |
|
40 Panics and errors codes for email message creation. |
|
41 */ |
|
42 enum TImutErrorReason { KPanicNoRfc822Header = 1, |
|
43 KPanicNoRichText, |
|
44 EPanicNullTokenizer, |
|
45 KPanicBoundaryTooLong, |
|
46 KPanicUnknownSendingMethod, |
|
47 KPanicInvalidSMTPLine, |
|
48 KPanicAttachmentPathNotSet, |
|
49 KPanicNoMimeClassAvailable, |
|
50 KPanicUnknownAlgorithm, |
|
51 KPanicSetAlgorithmLNotCalled, |
|
52 KPanicNoResourceFile, |
|
53 KPanicDescriptorToSmall, |
|
54 KPanicReadLengthTooLarge, |
|
55 KPanicFileNotFlushed, |
|
56 KPanicEntryIsNotMessage, |
|
57 KPanicMessageEntryNotCalled, |
|
58 KPanicMessageEntryIdHasChanged, |
|
59 KPanicServiceIdNotValid, |
|
60 KPanicIncorrectResetState, |
|
61 KPanicNoMimeHeader, |
|
62 KPanicInvalidDefaultCharacterSet, |
|
63 KPanicUnknownFolderType, |
|
64 KPanicInvalidEncodingType, |
|
65 EPanicInvalidHeaderState, |
|
66 EImskSocketNotConnected, |
|
67 EImskSocketStillActive, |
|
68 EImskSocketOpen, |
|
69 EImskUnknownState, |
|
70 EImskInvalidPortNumber, |
|
71 EImskInvalidSocketEncryptionMethod, |
|
72 EImskSecurityFailed, |
|
73 EImskDatabaseTypeUnspecified, |
|
74 EImskNotSupported, |
|
75 EImskUnknownBearer, |
|
76 EImskNoTLSResponseString |
|
77 }; |
|
78 |
|
79 // and some error codes |
|
80 const TInt KErrCorruptHeader = 1; |
|
81 |
|
82 GLDEF_C void gPanic( TImutErrorReason aReason ); |
|
83 |
|
84 GLREF_C void OpenResourceFileL(RResourceFile& aFile, RFs& anFs); |
|
85 |
|
86 GLDEF_C void CloseResourceFile( TAny* aResourceFile ); |
|
87 |
|
88 #endif // __LOCAL_IMUTDLL_H__ |