email/pop3andsmtpmtm/servermtmutils/inc/IMUT.PAN
changeset 0 72b543305e3a
equal deleted inserted replaced
-1:000000000000 0:72b543305e3a
       
     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 //
       
    15 
       
    16 
       
    17 
       
    18 #if !defined (__BARSC_H__)
       
    19 #include <barsc.h>		// RResourceFile
       
    20 #endif
       
    21 
       
    22 enum TImutPanic
       
    23 	{
       
    24 	EImskSocketNotConnected,
       
    25 	EImskSocketStillActive,
       
    26 	EImskSocketOpen,
       
    27 	EImskUnknownState,
       
    28 	EImskInvalidPortNumber,
       
    29 	EImskInvalidSocketEncryptionMethod,
       
    30 						KPanicNoBody,
       
    31 						EPanicNullTokenizer,
       
    32 						KPanicBoundaryTooLong,
       
    33 						KPanicUnknownAlgorithm,
       
    34 						KPanicInvalidSMTPLine,
       
    35 						KPanicAttachmentPathNotSet,
       
    36 						KPanicNoMimeClassAvailable,
       
    37 						KPanicSetAlgorithmLNotCalled,
       
    38 						KPanicNoResourceFile,
       
    39 						KPanicDescriptorToSmall,
       
    40 						KPanicReadLengthTooLarge,
       
    41 						KPanicFileNotFlushed,
       
    42 						KPanicEntryIsNotMessage,
       
    43 						KPanicMessageEntryNotCalled,
       
    44 						KPanicMessageEntryIdHasChanged,
       
    45 						KPanicServiceIdNotValid
       
    46 	};
       
    47 
       
    48 
       
    49 // and some error codes
       
    50 const TInt KErrCorruptHeader = 1;
       
    51 
       
    52 GLDEF_C void gPanic( TImutPanic aReason );
       
    53 
       
    54 GLREF_C void OpenResourceFileL(RResourceFile& aFile, RFs& anFs);
       
    55 
       
    56 GLDEF_C void CloseResourceFile( TAny* aResourceFile );