email/imap4mtm/imaputils/inc/imappaniccodes.h
changeset 0 72b543305e3a
equal deleted inserted replaced
-1:000000000000 0:72b543305e3a
       
     1 // Copyright (c) 2006-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 #if !defined(__IMAPPANICCODES_H__)
       
    17 #define __IMAPPANICCODES_H__
       
    18 
       
    19 #include <e32base.h>
       
    20 
       
    21 /**
       
    22 @internalComponent
       
    23 @prototype
       
    24 */
       
    25 class TImapServerPanic
       
    26 	{
       
    27 public:
       
    28 	enum TImpsPanic
       
    29 		{
       
    30 		//Panics for Imapsession dll(0-999)
       
    31 		EIdleWhenServerUnAuthenticated = 0,
       
    32 		EIdleWhenInvalidOperationPending = 1,
       
    33 
       
    34 		EIdleWaitWhenServerUnAuthenticated = 2,
       
    35 		EIdleWaitWhenOperationPendingNotIdle = 3,
       
    36 		EIdleWaitWhenSessionNonNormal = 4,
       
    37 		
       
    38 		EIdleDoneWhenServerUnAuthenticated = 5,
       
    39 		EIdleDoneWhenWhenInvalidOperationPending = 6,
       
    40 		EIdleDoneWhenSessionNonNormal = 7,
       
    41 
       
    42 		EWaitForServerEventWhenServerUnAuthenticated = 8,
       
    43 		EWaitForServerEventWhenInvalidOperationPending = 9,
       
    44 
       
    45 		EReadServerGreetingWhenServerUnAuthenticated = 10,
       
    46 		EReadServerGreetingWhenInvalidOperationPending = 11,
       
    47 
       
    48 		ECapabilityWhenServerStateUnknown = 12,
       
    49 		ECapabilityWhenInvalidOperationPending = 13,
       
    50 
       
    51 		ENoopWhenServerStateUnknown = 14,
       
    52 		ENoopWhenInvalidOperationPending = 15,
       
    53 		ENoopOutputBufferNotNull = 16,
       
    54 
       
    55 		ELogOutWhenNotSelected = 17,
       
    56 		ELogOutWhenInvalidOperationPending = 18,
       
    57 
       
    58 		ELoginWhenServerStateUnknown = 19,
       
    59 		ELoginWhenInvalidOperationPending = 20,
       
    60 		ELoginResponseParseStateUnknown = 21,
       
    61 
       
    62 		EStartTLSWhenServerUnAuthenticated = 22,
       
    63 		EStartTLSWhenInvalidOperationPending = 23,
       
    64 
       
    65 		ESelectWhenServerUnAuthenticated = 24,
       
    66 		ESelectWhenInvalidOperationPending = 25,
       
    67 
       
    68 		EExamineWhenServerUnAuthenticated = 26,
       
    69 		EExamineWhenInvalidOperationPending = 27,
       
    70 
       
    71 		ESessionImapFolderInfoIsNull = 28,
       
    72 
       
    73 		ECreateWhenServerUnAuthenticated = 29,
       
    74 		ECreateWhenInvalidOperationPending = 30,
       
    75 		
       
    76 		EDeleteWhenServerUnAuthenticated = 31,
       
    77 		EDeleteWhenInvalidOperationPending = 32,
       
    78 		
       
    79 		ERenameWhenServerUnAuthenticated = 33,
       
    80 		ERenameWhenInvalidOperationPending = 34,
       
    81 
       
    82 		ESubscribeWhenServerUnAuthenticated = 35,
       
    83 		ESubscribeWhenInvalidOperationPending = 36,
       
    84 		
       
    85 		EUnSubscribeWhenServerUnAuthenticated = 37,
       
    86 		EUnSubscribeWhenInvalidOperationPending = 38,
       
    87 		
       
    88 		EListWhenServerUnAuthenticated = 39,
       
    89 		EListWhenInvalidOperationPending = 40,
       
    90 		
       
    91 		ELsubWhenServerUnAuthenticated = 41,
       
    92 		ELsubWhenInvalidOperationPending = 42,
       
    93 
       
    94 		EStatusWhenServerUnAuthenticated = 43,
       
    95 		EStatusWhenInvalidOperationPending = 44,
       
    96 		
       
    97 		EAppendWhenServerUnAuthenticated = 45,
       
    98 		EAppendWhenInvalidOperationPending = 46,
       
    99 		
       
   100 		ECloseWhenNotSelected = 47,
       
   101 		ECloseWhenInvalidOperationPending = 48,
       
   102 
       
   103 		ESearchWhenNotSelected = 49,
       
   104 		ESearchInvalidOperationPending = 50,
       
   105 		
       
   106 		EFetchFlagsWhenNotSelected = 51,
       
   107 		EFetchFlagsInvalidOperationPending = 52,
       
   108 		
       
   109 		FetchBodyStructureSingleWhenNotSelected = 53,
       
   110 		FetchBodyStructureSingleWhenInvalidOperationPending = 54,
       
   111 		
       
   112 		FetchBodyStructureMultiWhenNotSelected = 55,
       
   113 		FetchBodyStructureMultiWhenInvalidOperationPending = 56,
       
   114 		
       
   115 		EFetchBodyWhenNotSelected = 57,
       
   116 		EFetchBodyWhenInvalidOperationPending = 58,
       
   117 		
       
   118 		EStoreWhenNotSelected = 59,
       
   119 		EStoreWhenInvalidOperationPending = 60,
       
   120 		
       
   121 		ECopyWhenNotSelected = 61,
       
   122 		ECopyWhenInvalidOperationPending = 62,
       
   123 		
       
   124 		EExpungeWhenNotSelected = 63,
       
   125 		EExpungeWhenInvalidOperationPending = 64,
       
   126 
       
   127 		// General Session Panic codes
       
   128 		ESessionInvalidSessionState = 65,
       
   129 		ESessionInvalidPendingOp = 66,
       
   130 		ESessionNullCurrentCommand = 67, // See also ESessionNotNullCurrentCommand
       
   131 		ESessionCommandNotFlushing = 68,
       
   132 		ESessionUnknownTimer = 69,
       
   133 		ESessionLiteralSizeZero = 70,
       
   134 		ESessionNullInputStream = 71,
       
   135 		ESessionBadInputStreamState = 72,
       
   136 		ESessionNullOutputStream = 73,
       
   137 		ESessionBadOutputStreamState = 74,
       
   138 		ESessionStreamsNotBothNull = 75,
       
   139 		ESessionReceivedSecureServerCnf = 76,
       
   140 		ESessionReportStatusAlreadyQueued = 77,
       
   141 		ESessionNullReportStatus = 78,
       
   142 		ESessionAsyncCallBackOpInvalid = 79,
       
   143 		ESessionInputBufferNotEmpty = 80,
       
   144 		ESessionInvalidOverFlowHandler = 81,
       
   145 		ESessionInvalidCommandResponseCode = 82,
       
   146 		ESessionNullSelectedFolderInfo = 83,
       
   147 		
       
   148 		// General Command Panic codes
       
   149 		ECommandInvalidParseState = 84,
       
   150 		ECommandInvalidResponseCode = 85,
       
   151 		ECommandInvalidParseBlockResult = 86,
       
   152 		ECommandInvalidTagType = 87,
       
   153 		ECommandMismatchedParseStateAndResponseCode = 88,
       
   154 		ECommandResponseLiteralDataNotZero = 89,
       
   155 		ECommandResponseLiteralDataNotNonZero = 90,
       
   156 		ECommandNotFlushing = 91,
       
   157 		ECommandNoTaggedResponsesToFlush = 92,
       
   158 		ECommandOutputBufferNotNull = 93,
       
   159 		ECommandOutputStreamIsNull = 94,
       
   160 			
       
   161 		EHeaderFieldNonLiteral = 95,
       
   162 		EListBaseParseStateInvalid = 96,
       
   163 		EAtomParserInvalidParserState = 97,
       
   164 		EAtomParserLiteralFetchStateWhenProcessingLine = 98,
       
   165 		EAtomParserBufferIsNull = 99,
       
   166 		EAtomParserLiteralBlockLengthMismatch = 100,
       
   167 		EAtomWalkerStackIsEmpty = 101,
       
   168 		EAtomWalkerNothingToWalkUpTo = 102,
       
   169 		EAtomWalkerNullStackEntry = 103,
       
   170 		EAtomWalkerWalkedAcrossToNull = 104,
       
   171 		
       
   172 		EBodyStructureBuilderInvalidProcessBlockState = 105,
       
   173 		EBodyStructureBuilderInvalidParseStep = 106,
       
   174 		EBodyStructureBuilderInvalidBodyStructureType = 107,
       
   175 		EBodyStructureBuilderRootNotOwned = 108,
       
   176 		EBodyStructureBuilderExpectedRootAtomOnlyOnStack = 109,
       
   177 		EBodyStructureBuilderCurrentAtomIsNotRoot = 110,
       
   178 		EBodyStructureBuilderStackNotEmpty = 111,
       
   179 		EBodyStructureBuilderStackIsEmpty = 112,
       
   180 		
       
   181 		EFetchBodyStructureUnparsedDataExists = 113,
       
   182 		EFetchBodyStructureUnexpectedState = 114,
       
   183 		EFetchBodyStructureExpectedRequestForLine = 115,
       
   184 		
       
   185 		EFolderInfoNegativeExistsCount = 116,
       
   186 		EListBaseAtomParserAlreadyExists = 117,
       
   187 		EListBaseAtomParserIsNull = 118,
       
   188 		EIdleStateInvalid = 119,	
       
   189 		ESelectFolderDataIsNull = 120,
       
   190 		ESelectMailboxNameIsEmpty = 121,
       
   191 		EAppendInvalidState = 122,
       
   192 		ESessionNotNullCurrentCommand = 123, // See also ESessionNullCurrentCommand
       
   193 
       
   194 		ECommandInvalidParseState1 = 124,
       
   195 		ECommandInvalidParseState2 = 125,
       
   196 		ECommandInvalidParseState3 = 126,
       
   197 		ECommandInvalidParseState4 = 127,
       
   198 		ECommandInvalidParseState5 = 128,
       
   199 		ECommandInvalidParseState6 = 129,
       
   200 		ECommandInvalidParseState7 = 130,
       
   201 		ECommandInvalidParseState8 = 131,
       
   202 		ECommandInvalidParseState9 = 132,
       
   203 		ECommandInvalidParseState10 = 133,
       
   204 
       
   205 		EStoreOperationCompleteWithPendingRequest = 134,
       
   206 		ETParseBlockResultInvalidLiteralSize = 135,
       
   207 
       
   208 		// Session manager
       
   209 		EDisconnectWhenDisconnectListNotEmpty1 = 900,
       
   210 		EDisconnectWhenDisconnectListNotEmpty2 = 901,
       
   211 		EDisconnectWhenDisconnectListNotEmpty3 = 902,
       
   212 		EUnexpectedOutputStreamCloseInd = 903,
       
   213 		EUnexpectedSecureClientCnf = 904,
       
   214 		EUnexpectedInputStreamCloseInd = 905,
       
   215 		EUnexpectedStateForDoRunL = 906,
       
   216 		EUnexpectedStateForDoCancel = 907,
       
   217 		EOutputStreamUnexpectedlyNull = 908,
       
   218 		EUnexpectedStateForDoCompleteWithError = 909,
       
   219 		EUnexpectedServerGreetingResponse = 910,
       
   220 		EUnexpectedStateForGetSession = 911,
       
   221 		EUnexpectedStateForDisConnect = 912,
       
   222 		ERConnectionNotDefined = 913,
       
   223 
       
   224 
       
   225 		//Panic codes for imapSettings dll(1000 - 1999) 
       
   226 		EImapSettingsNoDefaultAttachmentFile = 1000,
       
   227 		EImapSettingsNoMessageFooter = 1001,
       
   228 		EImapSettingsInvalidService = 1002,
       
   229 
       
   230 
       
   231 		//Panic codes for imapcharconv.dll(3000-3999)
       
   232 		ECharconvTlsNotInstantiated = 3000,
       
   233 
       
   234 
       
   235 		//Panic codes for mailstore dll(4000 - 4999)
       
   236 		EMailStoreDecodeDataNull = 4000,
       
   237 		EMailStoreFetchBodyBadCAFHandle = 4001,
       
   238 		EMailStoreQueueEntryObjectNotFound = 4002,
       
   239 		EMailStoreNoQueEntryRequest = 4003,
       
   240 		EMailStoreNoDataChunks = 4004,
       
   241 		EMailStoreDataChunkOutOfRange = 4005,
       
   242 		EMailStoreQueueEntryObjectAlreadyExists = 4006,
       
   243 		EMailStoreDecodeDataNotNull = 4007,
       
   244 
       
   245 		//Panic codes for Impapprotocolcontroller dll(5000-5999)
       
   246 		EIdleControllerStateUnknown = 5000,
       
   247 		EIdleControllerImapSessionNull = 5001,
       
   248 		EIdleControllerAlreadyActive = 5002,
       
   249 		
       
   250 		EOpFetchBodyUnknownPart = 5003,
       
   251 		ENoBackgroundSyncInProgress = 5004,
       
   252 		EConnectAndSyncBgSyncOpIsNotNull = 5005,
       
   253 		
       
   254 		ECopyFromLocalCompoundIsNotNull = 5006,
       
   255 		ECopyFromLocalCompoundUnexpectedState = 5007,
       
   256 		
       
   257 		ECopyToLocalCompoundIsNotNull = 5008,
       
   258 		ECopyToLocalCompoundUnexpectedState = 5009,
       
   259 		ECopyToLocalSessionIsNull = 5010,
       
   260 		
       
   261 		ECopyWithinServiceCompoundIsNotNull = 5011,
       
   262 		ECopyWithinServiceCompoundUnexpectedState = 5012,
       
   263 		
       
   264 		EDeleteCompoundIsNotNull = 5013,
       
   265 		EDeleteCompoundUnexpectedState = 5014,
       
   266 		
       
   267 		EDeleteFolderCompoundIsNotNull = 5015,
       
   268 		EDeleteFolderCompoundUnexpectedState = 5016,
       
   269 		
       
   270 		EDisconnectCompoundIsNotNull = 5017,
       
   271 		EDisconnectCompoundUnexpectedState = 5018,
       
   272 		
       
   273 		EFullSyncFolderCompoundIsNotNull = 5019,
       
   274 		EFullSyncSelectedFolderCompoundIsNotNull = 5020,
       
   275 		ESyncFolderCompoundUnexpectedState = 5021,
       
   276 		
       
   277 		ENewOnlySyncFolderCompoundIsNotNull = 5022,
       
   278 		EMoveFromLocalCompoundIsNotNull = 5023,
       
   279 		EMoveToLocalCompoundIsNotNull = 5024,
       
   280 		EMoveWithinServiceCompoundIsNotNull = 5025,
       
   281 		
       
   282 		ERenameCompoundIsNotNull = 5026,
       
   283 		ERenameCompoundUnexpectedState = 5027,
       
   284 		
       
   285 		ESelectCompoundIsNotNull = 5028,
       
   286 		ESelectCompoundUnexpectedState = 5029,
       
   287 		
       
   288 		ESynchroniseTreeCompoundIsNotNull = 5030,
       
   289 		ESyncTreeCompoundUnexpectedState = 5031,
       
   290 		ESyncServiceCompoundUnexpectedState = 5032,
       
   291 		ESynchroniseAllCompoundIsNotNull = 5033,
       
   292 		EPopulateCompoundIsNotNull = 5034,
       
   293 		
       
   294 		ECreateCompoundIsNotNull = 5035,
       
   295 		ECreateCompoundUnexpectedState = 5036,
       
   296 		
       
   297 		EInvalidMsvTypeToCommand = 5037,
       
   298 		
       
   299 		EIdleSessionIsNull = 5038,
       
   300 		EIdleControllerUnexpectedStateAtStart = 5039,
       
   301 		EIdleControllerIsActiveAtStart = 5040,
       
   302 		EIdleControllerAlreadyInUse = 5041,
       
   303 		EIdleControllerLeaveInDoRunL = 5042,
       
   304 				
       
   305 		EFetchBodyUnknownMsvType = 5043,
       
   306 		
       
   307 		EBackgroundSyncSessionIsNull = 5044,
       
   308 		EBackgroundSyncUnexpectedState = 5045,
       
   309 
       
   310 		EIdleControllerInternalCancelOnBadState = 5046,
       
   311 		EIdleControllerRunLCalledDuringInternalCancel = 5047,
       
   312 		
       
   313 		EProtocolControllerUnexpectedRequestedOp = 5048,
       
   314 		EProtocolControllerUnexpectedCurrentOp = 5049,
       
   315 
       
   316 		ECopyFromLocalCompoundCancelUnexpectedState = 5050,
       
   317 		ECopyToLocalCompoundCancelUnexpectedState = 5051,
       
   318 		ECopyWithinServiceCompoundCancelUnexpectedState = 5052,
       
   319 		ECreateCompoundCancelUnexpectedState = 5053,
       
   320 		EDeleteCompoundCancelUnexpectedState = 5054,
       
   321 		EDeleteFolderCompoundCancelUnexpectedState = 5055,
       
   322 		EDisconnectCompoundCancelUnexpectedState = 5056,
       
   323 		ERenameCompoundCancelUnexpectedState = 5057,
       
   324 		ESelectCompoundCancelUnexpectedState = 5058,
       
   325 		ESyncFolderCompoundCancelUnexpectedState = 5059,
       
   326 		ESyncServiceCompoundCancelUnexpectedState = 5060,
       
   327 		ESyncTreeCompoundCancelUnexpectedState = 5061,
       
   328 		EBackgroundSyncCancelUnexpectedState = 5062,
       
   329 		EDisconnectUnexpectedMigrateState			= 5063,
       
   330 		EProtocolControllerUnexpectedMigrateState	= 5064,
       
   331 		EKillCurrentConnUnexpectedState             = 5065,
       
   332 		ENewCarrierActiveUnexpectedMigrateState		= 5066,
       
   333 		EProcessOpCompleteForMigrateUnexpectedState = 5067,
       
   334 		EPrepareForNewCarrierUnexpectedState        = 5068,
       
   335 		
       
   336 		EProtocolControllerCancelBadMigrateState    = 5069,
       
   337 		EProConPreForNewCarBadMigrateState			= 5070,
       
   338 		EProConKillCurrentBadMigrateState			= 5071,
       
   339 		EMigrateCompoundIsNotNull					= 5072,
       
   340 		EUpdateCompoundUnexpectedState				= 5073,
       
   341 
       
   342 		//Panic codes for imaptransporthandler dll(6000 - 6999)
       
   343 
       
   344 		/** An input stream API was used when it is in the wrong state. */
       
   345 		EBadInputStreamState			= 6000,
       
   346 		/** An output stream API was used when it is in the wrong state. */
       
   347 		EBadOutputStreamState			= 6001,
       
   348 		/** The input stream state machine has broken. */
       
   349 		EBadInputStreamError			= 6002,
       
   350 		/** The output stream state machine has broken.*/
       
   351 		EBadOutputStreamError			= 6003,
       
   352 		/** The socket listener is in an unexpected state. */
       
   353 		EBadSocketListenerState			= 6004,
       
   354 		/** The input stream was used before an observer bound to it. */
       
   355 		EInputStreamNotBound			= 6005,
       
   356 		/** The output stream was used before an observer bound to it.*/
       
   357 		EOutputStreamNotBound			= 6006,
       
   358 		/** The output stream was used before an observer bound to it.*/
       
   359 		EOutputStreamNotBoundSecure	= 6007,
       
   360 		/** The socket connector is in an unexpected state. */
       
   361 		EBadSocketConnectorState		= 6008,
       
   362 		/** A NULL pointer to a connection object has been given. */
       
   363 		EExpectedConnectionNotSupplied	= 6009,
       
   364 		/** A secure socket was used before starting the secure handshake. */
       
   365 		ETlsSocketNotStarted			= 6010,
       
   366 		/** The input stream was suspended when it already was. */
       
   367 		EInputStreamAlreadySuspended	= 6011,
       
   368 		/** The input stream was resumed when it was not suspended. */
       
   369 		EInputStreamNotSuspended		= 6012,
       
   370 		/** About to request more data from the socket, but the receiving buffer is not empty. */
       
   371 		EInputStreamBufferNotEmpty		= 6013,
       
   372 
       
   373 
       
   374 		//Panics for imapsyncmanager dll(7000 - 7999)
       
   375 		EMsgnrOutOfRange = 7000,
       
   376 		ESyncManagerCancelUnexpectedState = 7001,
       
   377 		ECantChangeUID = 7002,
       
   378 		ECantChangeMsvId = 7003,
       
   379 		EIndexEmpty = 7004,
       
   380 		EImapSyncManagerInvalidFolderID = 7005,
       
   381 		EInvalidfoldername = 7006,
       
   382 		EAddLocalFolderInvalidSynchStrategy = 7007,
       
   383 		EAddLocalFolderInvalidSubscribeStrategy = 7008,
       
   384 		ENegativeServerResponseSynchStateBegin = 7009,
       
   385 		ENegativeServerResponseSynchStateEnd = 7010,
       
   386 		EUnexpectedStateSyncFolderTreeDoRunL = 7011,
       
   387 		EUnexpectedStateSyncFolderTreeDoCancel = 7012,
       
   388 
       
   389 		//Panic codes for IMPS dll (8000 - 8999)
       
   390 		EDeleteOfUnknownType = 8000
       
   391 
       
   392 		};
       
   393  public:
       
   394 	IMPORT_C static void ImapPanic(TImpsPanic aPanic);
       
   395 	};
       
   396 
       
   397 #endif //__IMAPPANICCODES_H__
       
   398