epoc32/include/miut_err.h
branchSymbian2
changeset 2 2fe1408b6811
parent 0 061f57f2323e
equal deleted inserted replaced
1:666f914201fb 2:2fe1408b6811
     1 miut_err.h
     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 #ifndef __MIUT_ERR_H__
       
    17 #define __MIUT_ERR_H__
       
    18 
       
    19 // Minimum value for an MTM-specific error
       
    20 /**
       
    21 @publishedAll
       
    22 @released
       
    23 */
       
    24 const TInt KMiutErrorBase						= (-170);
       
    25 
       
    26 // POP3-specific error codes
       
    27 
       
    28 /**
       
    29 @publishedAll
       
    30 @released
       
    31 */
       
    32 const TInt KPop3ErrorBase						= KMiutErrorBase;
       
    33 
       
    34 /**
       
    35 @publishedAll
       
    36 @released
       
    37 */
       
    38 const TInt KPop3CannotConnect					= KPop3ErrorBase;
       
    39 
       
    40 /**
       
    41 @publishedAll
       
    42 @released
       
    43 */
       
    44 const TInt KPop3InvalidUser						= KPop3ErrorBase-1;
       
    45 
       
    46 /**
       
    47 @publishedAll
       
    48 @released
       
    49 */
       
    50 const TInt KPop3InvalidLogin					= KPop3ErrorBase-2;
       
    51 
       
    52 /**
       
    53 @publishedAll
       
    54 @released
       
    55 */
       
    56 const TInt KPop3CannotCreateApopLogonString		= KPop3ErrorBase-3;
       
    57 
       
    58 /**
       
    59 @publishedAll
       
    60 @released
       
    61 */
       
    62 const TInt KPop3ProblemWithRemotePopServer		= KPop3ErrorBase-4;
       
    63 
       
    64 /**
       
    65 @publishedAll
       
    66 @released
       
    67 */
       
    68 const TInt KPop3CannotOpenServiceEntry			= KPop3ErrorBase-5;
       
    69 
       
    70 /**
       
    71 @publishedAll
       
    72 @released
       
    73 */
       
    74 const TInt KPop3CannotSetRequiredFolderContext	= KPop3ErrorBase-6;
       
    75 
       
    76 /**
       
    77 @publishedAll
       
    78 @released
       
    79 */
       
    80 const TInt KPop3InvalidApopLogin				= KPop3ErrorBase-7;
       
    81 
       
    82 /**
       
    83 @publishedAll
       
    84 @released
       
    85 */
       
    86 const TInt KPopTopError							= (-179);
       
    87 
       
    88 // IMSK-specific error code
       
    89 /**
       
    90 @publishedAll
       
    91 @released
       
    92 */
       
    93 const TInt KImskBaseError						= (-180);
       
    94 
       
    95 /**
       
    96 @publishedAll
       
    97 @released
       
    98 */
       
    99 const TInt KImskErrorDNSNotFound				= KImskBaseError;
       
   100 
       
   101 /**
       
   102 @publishedAll
       
   103 @released
       
   104 */
       
   105 const TInt KImskErrorControlPanelLocked			= KImskBaseError-1;
       
   106 
       
   107 /**
       
   108 @publishedAll
       
   109 @released
       
   110 */
       
   111 const TInt KImskErrorISPOrIAPRecordNotFound		= KImskBaseError-2;
       
   112 
       
   113 /**
       
   114 @publishedAll
       
   115 @released
       
   116 */
       
   117 const TInt KImskErrorActiveSettingIsDifferent	= KImskBaseError-3;
       
   118 
       
   119 /**
       
   120 @publishedAll
       
   121 @released
       
   122 */
       
   123 const TInt KImskSecuritySettingsFailed			= KImskBaseError-4;
       
   124 
       
   125 /**
       
   126 @publishedAll
       
   127 @released
       
   128 */
       
   129 const TInt KImskSSLTLSNegotiateFailed			= KImskBaseError-5;
       
   130 
       
   131 /**
       
   132 @publishedAll
       
   133 @released
       
   134 */
       
   135 const TInt KImskTopError						= (-190);
       
   136 
       
   137 // error codes -190 to -199 are used by Sockets
       
   138 
       
   139 // IMAP-specific error codes
       
   140 /**
       
   141 @publishedAll
       
   142 @released
       
   143 */
       
   144 const TInt KImapBaseError						= (-200);
       
   145 
       
   146 /**
       
   147 @publishedAll
       
   148 @released
       
   149 */
       
   150 const TInt KErrImapConnectFail					= KImapBaseError;
       
   151 
       
   152 /**
       
   153 @publishedAll
       
   154 @released
       
   155 */
       
   156 const TInt KErrImapServerFail					= KImapBaseError-1;
       
   157 
       
   158 /**
       
   159 @publishedAll
       
   160 @released
       
   161 */
       
   162 const TInt KErrImapServerParse					= KImapBaseError-2;
       
   163 
       
   164 /**
       
   165 @publishedAll
       
   166 @released
       
   167 */
       
   168 const TInt KErrImapServerBusy					= KImapBaseError-3;
       
   169 
       
   170 /**
       
   171 @publishedAll
       
   172 @released
       
   173 */
       
   174 const TInt KErrImapServerVersion				= KImapBaseError-4;
       
   175 
       
   176 /**
       
   177 @publishedAll
       
   178 @released
       
   179 */
       
   180 const TInt KErrImapSendFail						= KImapBaseError-5;
       
   181 
       
   182 /**
       
   183 @publishedAll
       
   184 @released
       
   185 */
       
   186 const TInt KErrImapBadLogon						= KImapBaseError-6;
       
   187 
       
   188 /**
       
   189 @publishedAll
       
   190 @released
       
   191 */
       
   192 const TInt KErrImapSelectFail					= KImapBaseError-7;
       
   193 
       
   194 /**
       
   195 @publishedAll
       
   196 @released
       
   197 */
       
   198 const TInt KErrImapWrongFolder					= KImapBaseError-8;
       
   199 
       
   200 /**
       
   201 @publishedAll
       
   202 @released
       
   203 */
       
   204 const TInt KErrImapServerNoSecurity				= KImapBaseError-9;
       
   205 
       
   206 /**
       
   207 @publishedAll
       
   208 @released
       
   209 */
       
   210 const TInt KErrImapServerLoginDisabled			= KImapBaseError-10;
       
   211 
       
   212 /**
       
   213 @publishedAll
       
   214 @released
       
   215 */
       
   216 const TInt KErrImapTLSNegotiateFailed  			= KImapBaseError-11;
       
   217 
       
   218 /**
       
   219 @publishedAll
       
   220 @released
       
   221 */
       
   222 const TInt KErrImapCantDeleteFolder  			= KImapBaseError-12;
       
   223 
       
   224 /**
       
   225 @publishedAll
       
   226 @released
       
   227 */
       
   228 const TInt KErrImapInvalidServerResponse  		= KImapBaseError-13;
       
   229 
       
   230 /**
       
   231 @publishedAll
       
   232 @released
       
   233 */
       
   234 //This POP error declared in IMAP error range, 
       
   235 //since there is no scope to declare the error within pop range. 
       
   236 const TInt KErrPop3ServerAlreadyConnected 		= KImapBaseError-14;
       
   237 
       
   238 /**
       
   239 @publishedAll
       
   240 @released
       
   241 */
       
   242 const TInt KImapTopError						= (-219);
       
   243 
       
   244 // DMSS-specific error codes
       
   245 /**
       
   246 @publishedAll
       
   247 @released
       
   248 */
       
   249 const TInt KDmssBaseError						= (-220);
       
   250 
       
   251 /**
       
   252 @publishedAll
       
   253 @released
       
   254 */
       
   255 const TInt KDmssUnknownErr						= (KDmssBaseError-1);
       
   256 
       
   257 /**
       
   258 @publishedAll
       
   259 @released
       
   260 */
       
   261 const TInt KDmssMailboxUnavailableErr			= (KDmssBaseError-2);
       
   262 
       
   263 /**
       
   264 @publishedAll
       
   265 @released
       
   266 */
       
   267 const TInt KDmssActionAbortedErr				= (KDmssBaseError-3);
       
   268 
       
   269 /**
       
   270 @publishedAll
       
   271 @released
       
   272 */
       
   273 const TInt KDmssActionNotTakenErr				= (KDmssBaseError-4);
       
   274 
       
   275 /**
       
   276 @publishedAll
       
   277 @released
       
   278 */
       
   279 const TInt KDmssCmdUnrecognisedErr				= (KDmssBaseError-5);
       
   280 
       
   281 /**
       
   282 @publishedAll
       
   283 @released
       
   284 */
       
   285 const TInt KDmssSyntaxErrorErr					= (KDmssBaseError-6);
       
   286 
       
   287 /**
       
   288 @publishedAll
       
   289 @released
       
   290 */
       
   291 const TInt KDmssCmdNotImplementedErr			= (KDmssBaseError-7);
       
   292 
       
   293 /**
       
   294 @publishedAll
       
   295 @released
       
   296 */
       
   297 const TInt KDmssBadSequenceErr					= (KDmssBaseError-8);
       
   298 
       
   299 /**
       
   300 @publishedAll
       
   301 @released
       
   302 */
       
   303 const TInt KDmssParamNotImplementedErr			= (KDmssBaseError-9);
       
   304 
       
   305 /**
       
   306 @publishedAll
       
   307 @released
       
   308 */
       
   309 const TInt KDmssMailboxNoAccessErr				= (KDmssBaseError-10);
       
   310 
       
   311 /**
       
   312 @publishedAll
       
   313 @released
       
   314 */
       
   315 const TInt KDmssExceededStorageErr				= (KDmssBaseError-11);
       
   316 
       
   317 /**
       
   318 @publishedAll
       
   319 @released
       
   320 */
       
   321 const TInt KDmssMailboxNameErr					= (KDmssBaseError-12);
       
   322 
       
   323 /**
       
   324 @publishedAll
       
   325 @released
       
   326 */
       
   327 const TInt KDmssTransactionFailedErr			= (KDmssBaseError-13);
       
   328 
       
   329 /**
       
   330 @publishedAll
       
   331 @released
       
   332 */
       
   333 const TInt KDmssTimeOutErr						= (KDmssBaseError-14);
       
   334 
       
   335 /**
       
   336 @publishedAll
       
   337 @released
       
   338 */
       
   339 const TInt KDmssTopError						= (-239);
       
   340 
       
   341 // SMTP client-specific error codes
       
   342 /**
       
   343 @publishedAll
       
   344 @released
       
   345 */
       
   346 const TInt KSmtpBaseError						= (-240);
       
   347 
       
   348 /**
       
   349 @publishedAll
       
   350 @released
       
   351 */
       
   352 const TInt KSmtpNoMailFromErr					=  KSmtpBaseError;
       
   353 
       
   354 /**
       
   355 @publishedAll
       
   356 @released
       
   357 */
       
   358 const TInt KSmtpUnknownErr						= (KSmtpBaseError-1);
       
   359 
       
   360 /**
       
   361 @publishedAll
       
   362 @released
       
   363 */
       
   364 const TInt KSmtpBadMailFromAddress				= (KSmtpBaseError-2);
       
   365 
       
   366 /**
       
   367 @publishedAll
       
   368 @released
       
   369 */
       
   370 const TInt KSmtpBadRcptToAddress				= (KSmtpBaseError-3);
       
   371 
       
   372 /**
       
   373 @publishedAll
       
   374 @released
       
   375 */
       
   376 const TInt KSmtpLoginRefused					= (KSmtpBaseError-4);
       
   377 
       
   378 /**
       
   379 @publishedAll
       
   380 @released
       
   381 */
       
   382 const TInt KSmtpNoMsgsToSendWithActiveSettings	= (KSmtpBaseError-5);
       
   383 
       
   384 /**
       
   385 @publishedAll
       
   386 @released
       
   387 */
       
   388 const TInt KErrSmtpTLSNegotiateFailed 			= (KSmtpBaseError-6);
       
   389 
       
   390 /**
       
   391 @publishedAll
       
   392 @released
       
   393 */
       
   394 const TInt KErrSmtpBufferOverFlow 			    = (KSmtpBaseError-7);
       
   395 
       
   396 /**
       
   397 @publishedAll
       
   398 @released
       
   399 */
       
   400 const TInt KSmtpTopError					    = (-249);
       
   401  
       
   402 // IMCM error codes
       
   403 /**
       
   404 @publishedAll
       
   405 @released
       
   406 */
       
   407 const TInt KImcmBaseError						= (-250);
       
   408 
       
   409 /**
       
   410 @publishedAll
       
   411 @released
       
   412 */
       
   413 const TInt KImcmHTMLPartNotPopulated			=  KImcmBaseError;
       
   414 
       
   415 /**
       
   416 @publishedAll
       
   417 @released
       
   418 */
       
   419 const TInt KImcmInvalidMessageStructure			= (KImcmBaseError-1);
       
   420 
       
   421 // POPS error codes
       
   422 /**
       
   423 @publishedAll
       
   424 @released
       
   425 */
       
   426 const TInt KPop3BaseError						= (-260);
       
   427 
       
   428 /**
       
   429 @publishedAll
       
   430 @released
       
   431 */
       
   432 const TInt KErrPop3TLSNegotiateFailed			=  KPop3BaseError;
       
   433 
       
   434 /**
       
   435 @internalComponent
       
   436 @released
       
   437 */
       
   438 enum TImcmPanic
       
   439 	{
       
   440 	EOffOpNoBodyText = 0,
       
   441 	EOffOpBadMtmTypeUid = 1,
       
   442 	EOffOpNoCMsvEntrySet = 2,
       
   443 	EOffOpEntryShouldBeFolder = 3,
       
   444 	EOffOpTwoSameLinesNotAllowed = 4,
       
   445 	EOffOpNoMemory = 5,
       
   446 	EOffOpInvalidConstruction = 6,
       
   447 	EOffOpListOutOfSync = 7,
       
   448 	EOffOpNoMtmParameters = 8,
       
   449 	EMiutBadStreamVersion = 9,
       
   450 	EEntryIsNotMessage = 10,
       
   451 	EMiutArrayHasOddNumberOfElements = 11,		// ie there should be even number of entries in array
       
   452 	EMiutLocalServiceIdSet = 12,				// iServiceId should not be set to Local
       
   453 	EPopcMTMNoBodyText = 13,
       
   454 	EPopcMTMBadMtmTypeUid = 14,
       
   455 	EPopcMTMNoCMsvEntrySet = 15,
       
   456 	EPopcMTMOperationNULL = 16,
       
   457 	EPopcMTMNotAServiceEntry = 17,
       
   458 	EPopcUnknownNewEmailType = 18,
       
   459 	EPopcUnknownSyncFunction = 19,
       
   460 	ESmtcMTMNoBodyText = 20,
       
   461 	ESmtcMTMBadMtmTypeUid = 21,
       
   462 	ESmtcMTMNoCMsvEntrySet = 22,
       
   463 	ESmtcMTMOperationNULL = 23,
       
   464 	ESmtcMTMNotAServiceEntry = 24,
       
   465 	ESmtcUnknownNewEmailType = 25,
       
   466 	ESmtcUnknownSyncFunction = 26,
       
   467 	ESmtcMTMStoringBadEntryType = 27,
       
   468 	ESmtcMTMRestoringBadEntryType = 28,
       
   469 	ESmtcMTMNotAMessageEntry = 29,
       
   470 	EMiutActiveInFinalProgress = 30,
       
   471 	EImpcNoBodyText = 31,
       
   472 	EImpcBadMtmTypeUid = 32,
       
   473 	EImpcNoCMsvEntrySet = 33,
       
   474 	EImpcEntryShouldBeFolder = 34,
       
   475 	EImpcTwoSameLinesNotAllowed = 35,
       
   476 	EImpcNoMemory = 36,
       
   477 	EImpcInvalidConstruction = 37,
       
   478 	EImpcBadServiceEntry = 38,
       
   479 	EImpcNoBaseMtm = 39,
       
   480 	EImpcNoAddresseeList = 40,
       
   481 	EImpcInvalidProgress = 41,
       
   482 	EImpcNotSupported = 42,
       
   483 	EImpcMTMNotAMessageEntry = 43,
       
   484 	EImpcMTMNotAServiceEntry = 44,
       
   485 	EImcmMessageEntryHasMoreThanOneFolder = 45,
       
   486 	EImcmUnknownState = 46,
       
   487 	EImcmFinalProgressFailed = 47,
       
   488 	EImcmNoEikonEnvironment = 48,
       
   489 	EImcmSetVersionNotSupported = 49,
       
   490 	EImcmSystemDefaultCharsetNotSupported = 50,
       
   491  	EImcmHtmlConverterNotFound = 51,
       
   492 	EImcmUnknownMtm = 52,
       
   493 	EImEmailOpUnknownAttachmentType = 53,
       
   494 	EImcmNonIdleRetrievalState = 54,
       
   495 	EImcmIdleRetrievalState = 55,
       
   496 	EImcmSyncDownloadRulesInvalidPos1 = 56,
       
   497 	EImcmSyncDownloadRulesInvalidPos2 = 57,
       
   498 	EImcmSyncDownloadRulesInvalidPos3 = 58,
       
   499 	EImcmSyncDownloadRulesInvalidBearerTypes1 = 59,
       
   500 	EImcmSyncDownloadRulesInvalidBearerTypes2 = 60,
       
   501 	EImcmSyncDownloadRulesInvalidBearerTypes3 = 61,
       
   502 	EImcmTransportBufferSizesInvalidPos1 = 62,
       
   503 	EImcmTransportBufferSizesInvalidPos2 = 63,
       
   504 	EImcmTransportBufferSizesInvalidPos3 = 64,
       
   505 	EImcmTransportBufferSizesInvalidBearerTypes1 = 65,
       
   506 	EImcmTransportBufferSizesInvalidBearerTypes2 = 66,
       
   507 	EImcmTransportBufferSizesInvalidBearerTypes3 = 67,
       
   508 	EImcmTransportBufferSizesInvalidFetchRequestSize = 68,
       
   509 	EImcmTransportBufferSizesInvalidMaxOutstandingFetchResponses = 69,
       
   510 	EImcmMobilityAccountsListInvalidPos1 = 70,
       
   511 	EImcmMobilityAccountsListInvalidPos2 = 71,
       
   512 	EImcmMobilityAccountsListInvalidPos3 = 72,
       
   513 	EImcmMobilityAccountsListInvalidIAPListCount = 73
       
   514 	};
       
   515 
       
   516 /**
       
   517 @internalComponent
       
   518 */
       
   519 GLREF_C void gPanic(TImcmPanic aPanic);
       
   520 
       
   521 #endif // __MIUT_ERR_H__