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".
8 // Initial Contributors:
9 // Nokia Corporation - initial contribution.
23 #ifndef __MIUT_ERR_H__
24 #define __MIUT_ERR_H__
26 #ifndef SYMBIAN_ENABLE_SPLIT_HEADERS
27 #include "miut_errconsts.h"
34 const TInt KMiutErrorBase = (-170);
36 // POP3-specific error codes
42 const TInt KPop3ErrorBase = KMiutErrorBase;
48 const TInt KPop3CannotConnect = KPop3ErrorBase;
54 const TInt KPop3InvalidUser = KPop3ErrorBase-1;
60 const TInt KPop3InvalidLogin = KPop3ErrorBase-2;
66 const TInt KPop3CannotCreateApopLogonString = KPop3ErrorBase-3;
72 const TInt KPop3ProblemWithRemotePopServer = KPop3ErrorBase-4;
78 const TInt KPop3CannotOpenServiceEntry = KPop3ErrorBase-5;
84 const TInt KPop3CannotSetRequiredFolderContext = KPop3ErrorBase-6;
90 const TInt KPop3InvalidApopLogin = KPop3ErrorBase-7;
96 // if Authentcation flag is ON, Fallback flag is OFF and email server doesn't support CRAM-MD5
97 // authentication mechanism, then KPop3AuthenticationFailed error will be returned.
98 const TInt KPop3AuthenticationFailed = KPop3ErrorBase-8;
105 const TInt KPopTopError = (-179);
107 // IMSK-specific error code
112 const TInt KImskBaseError = (-180);
118 const TInt KImskErrorDNSNotFound = KImskBaseError;
124 const TInt KImskErrorControlPanelLocked = KImskBaseError-1;
130 const TInt KImskErrorISPOrIAPRecordNotFound = KImskBaseError-2;
136 const TInt KImskErrorActiveSettingIsDifferent = KImskBaseError-3;
142 const TInt KImskSecuritySettingsFailed = KImskBaseError-4;
148 const TInt KImskSSLTLSNegotiateFailed = KImskBaseError-5;
154 const TInt KImskTopError = (-190);
156 // error codes -190 to -199 are used by Sockets
158 // IMAP-specific error codes
163 const TInt KImapBaseError = (-200);
169 const TInt KErrImapConnectFail = KImapBaseError;
175 const TInt KErrImapServerFail = KImapBaseError-1;
181 const TInt KErrImapServerParse = KImapBaseError-2;
187 const TInt KErrImapServerBusy = KImapBaseError-3;
193 const TInt KErrImapServerVersion = KImapBaseError-4;
199 const TInt KErrImapSendFail = KImapBaseError-5;
205 const TInt KErrImapBadLogon = KImapBaseError-6;
211 const TInt KErrImapSelectFail = KImapBaseError-7;
217 const TInt KErrImapWrongFolder = KImapBaseError-8;
223 const TInt KErrImapServerNoSecurity = KImapBaseError-9;
229 const TInt KErrImapServerLoginDisabled = KImapBaseError-10;
235 const TInt KErrImapTLSNegotiateFailed = KImapBaseError-11;
241 const TInt KErrImapCantDeleteFolder = KImapBaseError-12;
247 const TInt KErrImapInvalidServerResponse = KImapBaseError-13;
253 //This POP error declared in IMAP error range,
254 //since there is no scope to declare the error within pop range.
255 const TInt KErrPop3ServerAlreadyConnected = KImapBaseError-14;
262 // if Authentcation flag is ON, Fallback flag is OFF and email server doesn't support CRAM-MD5
263 // authentication mechanism, then KErrImapAuthenticationFailed error will be returned.
264 const TInt KErrImapAuthenticationFailed = KImapBaseError-15;
270 const TInt KImapTopError = (-219);
272 // DMSS-specific error codes
277 const TInt KDmssBaseError = (-220);
283 const TInt KDmssUnknownErr = (KDmssBaseError-1);
289 const TInt KDmssMailboxUnavailableErr = (KDmssBaseError-2);
295 const TInt KDmssActionAbortedErr = (KDmssBaseError-3);
301 const TInt KDmssActionNotTakenErr = (KDmssBaseError-4);
307 const TInt KDmssCmdUnrecognisedErr = (KDmssBaseError-5);
313 const TInt KDmssSyntaxErrorErr = (KDmssBaseError-6);
319 const TInt KDmssCmdNotImplementedErr = (KDmssBaseError-7);
325 const TInt KDmssBadSequenceErr = (KDmssBaseError-8);
331 const TInt KDmssParamNotImplementedErr = (KDmssBaseError-9);
337 const TInt KDmssMailboxNoAccessErr = (KDmssBaseError-10);
343 const TInt KDmssExceededStorageErr = (KDmssBaseError-11);
349 const TInt KDmssMailboxNameErr = (KDmssBaseError-12);
355 const TInt KDmssTransactionFailedErr = (KDmssBaseError-13);
361 const TInt KDmssTimeOutErr = (KDmssBaseError-14);
367 const TInt KDmssTopError = (-239);
369 // SMTP client-specific error codes
374 const TInt KSmtpBaseError = (-240);
380 const TInt KSmtpNoMailFromErr = KSmtpBaseError;
386 const TInt KSmtpUnknownErr = (KSmtpBaseError-1);
392 const TInt KSmtpBadMailFromAddress = (KSmtpBaseError-2);
398 const TInt KSmtpBadRcptToAddress = (KSmtpBaseError-3);
404 const TInt KSmtpLoginRefused = (KSmtpBaseError-4);
410 const TInt KSmtpNoMsgsToSendWithActiveSettings = (KSmtpBaseError-5);
416 const TInt KErrSmtpTLSNegotiateFailed = (KSmtpBaseError-6);
422 const TInt KErrSmtpBufferOverFlow = (KSmtpBaseError-7);
428 const TInt KSmtpTopError = (-249);
435 const TInt KImcmBaseError = (-250);
441 const TInt KImcmHTMLPartNotPopulated = KImcmBaseError;
447 const TInt KImcmInvalidMessageStructure = (KImcmBaseError-1);
454 const TInt KPop3BaseError = (-260);
460 const TInt KErrPop3TLSNegotiateFailed = KPop3BaseError;
463 #endif // __MIUT_ERR_H__