williamr@2: /* williamr@2: * Copyright (c) 2002-2006 Nokia Corporation and/or its subsidiary(-ies). williamr@2: * All rights reserved. williamr@2: * This component and the accompanying materials are made available williamr@4: * under the terms of "Eclipse Public License v1.0" williamr@2: * which accompanies this distribution, and is available williamr@4: * at the URL "http://www.eclipse.org/legal/epl-v10.html". williamr@2: * williamr@2: * Initial Contributors: williamr@2: * Nokia Corporation - initial contribution. williamr@2: * williamr@2: * Contributors: williamr@2: * williamr@2: * Description: williamr@2: * MmsEngine error codes williamr@2: * williamr@2: */ williamr@2: williamr@2: williamr@2: williamr@2: #ifndef MMSERRORS_H williamr@2: #define MMSERRORS_H williamr@2: williamr@2: williamr@2: #define MMS_ERROR_BASE -11000 //lint !e1923 this should definitely not be a variable williamr@2: #define MMS_ERROR_NEW_BASE -32100 // new mms errors base williamr@2: williamr@2: // Error codes are be defined as enum williamr@2: enum williamr@2: { williamr@2: // Unspecified error, used when no defined error matches. williamr@2: KMmsGeneralError = MMS_ERROR_BASE, williamr@2: // no access points defined williamr@2: KMmsErrorNoWAPAccessPoint = MMS_ERROR_BASE - 1, williamr@2: // Both WAP access points must have the same URI williamr@2: // (both must point to the same MMSC) williamr@2: // *** obsolete *** williamr@2: KMmsErrorUrisDontMatch = MMS_ERROR_BASE - 2, williamr@2: // no IAP for WAP AP 1 williamr@2: // *** obsolete *** williamr@2: KMmsErrorNoIAP1 = MMS_ERROR_BASE - 3, williamr@2: // no IAP for WAP AP 2 williamr@2: // *** obsolete *** williamr@2: KMmsErrorNoIAP2 = MMS_ERROR_BASE - 4, williamr@2: // access point 1 not valid (something wrong with access point chain) williamr@2: // missing URI has own error code, see below williamr@2: KMmsErrorAP1Invalid = MMS_ERROR_BASE - 5, williamr@2: // access point 2 not valid (something wrong with access point chain) williamr@2: // missing URI has own error code, see below williamr@2: // *** obsolete *** williamr@2: KMmsErrorAP2Invalid = MMS_ERROR_BASE - 6, williamr@2: // message is too big to be sent - cannot allocate encode buffer williamr@2: KMmsErrorMessageTooBig = MMS_ERROR_BASE - 7, williamr@2: // message type invalid - cannot encode williamr@2: KMmsErrorUnknownMessageType = MMS_ERROR_BASE - 8, williamr@2: // Disk space critical level check failed williamr@2: // *** obsolete *** williamr@2: KMmsErrorDiskSpaceLow = MMS_ERROR_BASE - 9, williamr@2: williamr@2: // error codes that come from the X-mms-response status williamr@2: KMmsErrorStatusUnspecified = MMS_ERROR_BASE - 10, williamr@2: KMmsErrorStatusServiceDenied = MMS_ERROR_BASE - 11, williamr@2: KMmsErrorStatusMessageFormatCorrupt = MMS_ERROR_BASE - 12, williamr@2: // sending address unresolved williamr@2: KMmsErrorStatusMessageAddressUnresolved = MMS_ERROR_BASE - 13, williamr@2: KMmsErrorStatusMessageNotFound = MMS_ERROR_BASE - 14, williamr@2: KMmsErrorStatusNetworkProblem = MMS_ERROR_BASE - 15, williamr@2: KMmsErrorStatusContentNotAccepted = MMS_ERROR_BASE - 16, williamr@2: KMmsErrorStatusUnsupportedMessage = MMS_ERROR_BASE - 17, williamr@2: williamr@2: // Mapping of HTTP error codes. Rough categories only williamr@2: KMmsErrorHTTPConfiguration = MMS_ERROR_BASE - 18, // 1XX, 3XX williamr@2: KMmsErrorHTTPNotFound = MMS_ERROR_BASE - 19, // 4XX williamr@2: KMmsErrorHTTPServerDown = MMS_ERROR_BASE - 20, // 5XX williamr@2: williamr@2: // Errors from the MMS protocol to WAP mapping layer williamr@2: // *** obsolete *** williamr@2: KMmsErrorWapStack = MMS_ERROR_BASE - 21, williamr@2: KMmsErrorSessionAlreadyOpen = MMS_ERROR_BASE - 22, williamr@2: KMmsErrorSessionNotOpen = MMS_ERROR_BASE - 23, williamr@2: // *** obsolete *** williamr@2: KMmsErrorBearerSuspended = MMS_ERROR_BASE - 24, williamr@2: KMmsErrorTimeout = MMS_ERROR_BASE - 25, williamr@2: // *** obsolete *** williamr@2: KMmsErrorSuspendTimeout = MMS_ERROR_BASE - 26, williamr@2: KMmsErrorUnknownRespFromGw = MMS_ERROR_BASE - 27, williamr@2: KMmsErrorTransferCancelled = MMS_ERROR_BASE - 28, williamr@2: KMmsErrorBufferEmpty = MMS_ERROR_BASE - 29, williamr@2: williamr@2: // Could not connect because connection already exists williamr@2: // *** obsolete *** williamr@2: KMmsErrorConnectionAlreadyActive = MMS_ERROR_BASE - 30, williamr@2: // Access point #1 not defined williamr@2: // *** obsolete *** williamr@2: KMmsErrorNoWapAp1 = MMS_ERROR_BASE - 31, williamr@2: // URI 1 missing williamr@2: KMmsErrorNoURI1 = MMS_ERROR_BASE - 32, williamr@2: // URI 2 missing williamr@2: // *** obsolete *** williamr@2: KMmsErrorNoURI2 = MMS_ERROR_BASE - 33, williamr@2: williamr@2: // we cannot prove we are in home network and mode is "automatic at home" williamr@2: // *** obsolete *** williamr@2: KMmsErrorNotHomeNetwork = MMS_ERROR_BASE - 34, williamr@2: williamr@2: // error returned by validate service if values are williamr@2: // outside limits williamr@2: KMmsErrorInvalidSettings = MMS_ERROR_BASE - 35, williamr@2: williamr@2: // We must have our own definition for MRUExceeded. williamr@2: // The actual error code depends on the transport used. williamr@2: // The tranport component must map the error and williamr@2: // return it to us in this form williamr@2: KMmsErrorEMRUExceeded = MMS_ERROR_BASE - 36, williamr@2: williamr@2: // Error code that corresponds to Symbian OS error -34 williamr@2: // (KErrCouldNotConnect) williamr@2: // This is for UI use, mmsengine does not remap Symbian williamr@2: // error codes. williamr@2: KMmsErrorCouldNotConnect = MMS_ERROR_BASE - 37, williamr@2: williamr@2: // Error code means that the DRM message is removed williamr@2: // from the MMS message as the handling of the DRM message has failed. williamr@2: // This error code is not shown to the end user. williamr@2: KMmsErrorRemoveDRM = MMS_ERROR_BASE - 38, williamr@2: williamr@2: // New error codes for mapping MMS encapsulation 1.1 errors williamr@2: // These errors correspond to X-Mms-Response_Status errors from MMSC williamr@2: // These are all permanent errors williamr@2: KMmsErrorStatusReplyChargingLimitationsNotMet = MMS_ERROR_BASE - 39, williamr@2: KMmsErrorStatusReplyChargingRequestNotAccepted = MMS_ERROR_BASE - 40, williamr@2: KMmsErrorStatusReplyChargingForwardingDenied = MMS_ERROR_BASE - 41, williamr@2: KMmsErrorStatusReplyChargingNotSupported = MMS_ERROR_BASE - 42, williamr@2: KMmsErrorStatusContentUnsupported = MMS_ERROR_BASE - 43, williamr@2: // Sending address unresolved williamr@2: KMmsErrorStatusTransientAddressUnresolved = MMS_ERROR_BASE - 44, williamr@2: KMmsErrorStatusTransientMessageNotFound = MMS_ERROR_BASE - 45, williamr@2: // Generic values for unspecified permanent and transient errors williamr@2: // These are used when error codes ouside known ranges are obtained williamr@2: KMmsErrorStatusPermanentFailure = MMS_ERROR_BASE - 46, williamr@2: KMmsErrorStatusTransientFailure = MMS_ERROR_BASE - 47, williamr@2: williamr@2: // This is not actually an error. It means that a message sending williamr@2: // or receiving has been suspended because of offline mode, and williamr@2: // it should be resent/refetched as soon as phone is switched to williamr@2: // online mode again. williamr@2: KMmsErrorOfflineMode = MMS_ERROR_BASE - 48, williamr@2: williamr@2: // Mapping of HTTP error codes. williamr@2: // (addition to previous HTTP error mappings) williamr@2: KMmsErrorHTTPClientError = MMS_ERROR_BASE - 49, williamr@2: williamr@2: // Sending is prohibited because the message contains some closed content williamr@2: KMmsErrorProtectedContent = MMS_ERROR_NEW_BASE - 50, williamr@2: williamr@2: // Error codes for JSR248 application message handling: williamr@2: williamr@2: // The incoming message was addressed to an application that has not been williamr@2: // registered. The message has been discarded (error visible only in the williamr@2: // notification that is in the inbox in manual mode) williamr@2: KMmsErrorUnregisteredApplication = MMS_ERROR_NEW_BASE - 51, williamr@2: // The incoming message was addressed to an application. williamr@2: // There is not enough room on the disk to store the message. williamr@2: // However, there are enough old messages addressed to the same application williamr@2: // so that enough room will be freed by deleting some or all of the old williamr@2: // messages by MMS engine. williamr@2: // In automatic mode the retrieval is automatically rescheduled. williamr@2: // In manual mode the error code appears in the notification in inbox williamr@2: KMmsErrorApplicationDiskFull = MMS_ERROR_NEW_BASE - 52 williamr@2: williamr@2: }; williamr@2: williamr@2: #endif // MMSERRORS_H williamr@2: williamr@2: // End of File