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