00001 /* 00002 * ============================================================================ 00003 * Name : MmsErrors.h 00004 * Part of : MmsEngine 00005 * 00006 * Description: 00007 * MmsEngine error codes 00008 * Version : 00009 * 00010 * Copyright (C) 2002-2006 Nokia Corporation. 00011 * This material, including documentation and any related 00012 * computer programs, is protected by copyright controlled by 00013 * Nokia Corporation. All rights are reserved. Copying, 00014 * including reproducing, storing, adapting or translating, any 00015 * or all of this material requires the prior written consent of 00016 * Nokia Corporation. This material also contains confidential 00017 * information which may not be disclosed to others without the 00018 * prior written consent of Nokia Corporation. 00019 * 00020 * ============================================================================ 00021 */ 00022 00023 #ifndef MMSERRORS_H 00024 #define MMSERRORS_H 00025 00026 00027 #define MMS_ERROR_BASE -11000 //lint !e1923 this should definitely not be a variable 00028 #define MMS_ERROR_NEW_BASE -32100 // new mms errors base 00029 00030 // Error codes are be defined as enum 00031 enum 00032 { 00033 // Unspecified error, used when no defined error matches. 00034 KMmsGeneralError = MMS_ERROR_BASE, 00035 // no access points defined 00036 KMmsErrorNoWAPAccessPoint = MMS_ERROR_BASE - 1, 00037 // Both WAP access points must have the same URI 00038 // (both must point to the same MMSC) 00039 // *** obsolete *** 00040 KMmsErrorUrisDontMatch = MMS_ERROR_BASE - 2, 00041 // no IAP for WAP AP 1 00042 // *** obsolete *** 00043 KMmsErrorNoIAP1 = MMS_ERROR_BASE - 3, 00044 // no IAP for WAP AP 2 00045 // *** obsolete *** 00046 KMmsErrorNoIAP2 = MMS_ERROR_BASE - 4, 00047 // access point 1 not valid (something wrong with access point chain) 00048 // missing URI has own error code, see below 00049 KMmsErrorAP1Invalid = MMS_ERROR_BASE - 5, 00050 // access point 2 not valid (something wrong with access point chain) 00051 // missing URI has own error code, see below 00052 // *** obsolete *** 00053 KMmsErrorAP2Invalid = MMS_ERROR_BASE - 6, 00054 // message is too big to be sent - cannot allocate encode buffer 00055 KMmsErrorMessageTooBig = MMS_ERROR_BASE - 7, 00056 // message type invalid - cannot encode 00057 KMmsErrorUnknownMessageType = MMS_ERROR_BASE - 8, 00058 // Disk space critical level check failed 00059 // *** obsolete *** 00060 KMmsErrorDiskSpaceLow = MMS_ERROR_BASE - 9, 00061 00062 // error codes that come from the X-mms-response status 00063 KMmsErrorStatusUnspecified = MMS_ERROR_BASE - 10, 00064 KMmsErrorStatusServiceDenied = MMS_ERROR_BASE - 11, 00065 KMmsErrorStatusMessageFormatCorrupt = MMS_ERROR_BASE - 12, 00066 // sending address unresolved 00067 KMmsErrorStatusMessageAddressUnresolved = MMS_ERROR_BASE - 13, 00068 KMmsErrorStatusMessageNotFound = MMS_ERROR_BASE - 14, 00069 KMmsErrorStatusNetworkProblem = MMS_ERROR_BASE - 15, 00070 KMmsErrorStatusContentNotAccepted = MMS_ERROR_BASE - 16, 00071 KMmsErrorStatusUnsupportedMessage = MMS_ERROR_BASE - 17, 00072 00073 // Mapping of HTTP error codes. Rough categories only 00074 KMmsErrorHTTPConfiguration = MMS_ERROR_BASE - 18, // 1XX, 3XX 00075 KMmsErrorHTTPNotFound = MMS_ERROR_BASE - 19, // 4XX 00076 KMmsErrorHTTPServerDown = MMS_ERROR_BASE - 20, // 5XX 00077 00078 // Errors from the MMS protocol to WAP mapping layer 00079 // *** obsolete *** 00080 KMmsErrorWapStack = MMS_ERROR_BASE - 21, 00081 KMmsErrorSessionAlreadyOpen = MMS_ERROR_BASE - 22, 00082 KMmsErrorSessionNotOpen = MMS_ERROR_BASE - 23, 00083 // *** obsolete *** 00084 KMmsErrorBearerSuspended = MMS_ERROR_BASE - 24, 00085 KMmsErrorTimeout = MMS_ERROR_BASE - 25, 00086 // *** obsolete *** 00087 KMmsErrorSuspendTimeout = MMS_ERROR_BASE - 26, 00088 KMmsErrorUnknownRespFromGw = MMS_ERROR_BASE - 27, 00089 KMmsErrorTransferCancelled = MMS_ERROR_BASE - 28, 00090 KMmsErrorBufferEmpty = MMS_ERROR_BASE - 29, 00091 00092 // Could not connect because connection already exists 00093 // *** obsolete *** 00094 KMmsErrorConnectionAlreadyActive = MMS_ERROR_BASE - 30, 00095 // Access point #1 not defined 00096 // *** obsolete *** 00097 KMmsErrorNoWapAp1 = MMS_ERROR_BASE - 31, 00098 // URI 1 missing 00099 KMmsErrorNoURI1 = MMS_ERROR_BASE - 32, 00100 // URI 2 missing 00101 // *** obsolete *** 00102 KMmsErrorNoURI2 = MMS_ERROR_BASE - 33, 00103 00104 // we cannot prove we are in home network and mode is "automatic at home" 00105 // *** obsolete *** 00106 KMmsErrorNotHomeNetwork = MMS_ERROR_BASE - 34, 00107 00108 // error returned by validate service if values are 00109 // outside limits 00110 KMmsErrorInvalidSettings = MMS_ERROR_BASE - 35, 00111 00112 // We must have our own definition for MRUExceeded. 00113 // The actual error code depends on the transport used. 00114 // The tranport component must map the error and 00115 // return it to us in this form 00116 KMmsErrorEMRUExceeded = MMS_ERROR_BASE - 36, 00117 00118 // Error code that corresponds to Symbian OS error -34 00119 // (KErrCouldNotConnect) 00120 // This is for UI use, mmsengine does not remap Symbian 00121 // error codes. 00122 KMmsErrorCouldNotConnect = MMS_ERROR_BASE - 37, 00123 00124 // Error code means that the DRM message is removed 00125 // from the MMS message as the handling of the DRM message has failed. 00126 // This error code is not shown to the end user. 00127 KMmsErrorRemoveDRM = MMS_ERROR_BASE - 38, 00128 00129 // New error codes for mapping MMS encapsulation 1.1 errors 00130 // These errors correspond to X-Mms-Response_Status errors from MMSC 00131 // These are all permanent errors 00132 KMmsErrorStatusReplyChargingLimitationsNotMet = MMS_ERROR_BASE - 39, 00133 KMmsErrorStatusReplyChargingRequestNotAccepted = MMS_ERROR_BASE - 40, 00134 KMmsErrorStatusReplyChargingForwardingDenied = MMS_ERROR_BASE - 41, 00135 KMmsErrorStatusReplyChargingNotSupported = MMS_ERROR_BASE - 42, 00136 KMmsErrorStatusContentUnsupported = MMS_ERROR_BASE - 43, 00137 // Sending address unresolved 00138 KMmsErrorStatusTransientAddressUnresolved = MMS_ERROR_BASE - 44, 00139 KMmsErrorStatusTransientMessageNotFound = MMS_ERROR_BASE - 45, 00140 // Generic values for unspecified permanent and transient errors 00141 // These are used when error codes ouside known ranges are obtained 00142 KMmsErrorStatusPermanentFailure = MMS_ERROR_BASE - 46, 00143 KMmsErrorStatusTransientFailure = MMS_ERROR_BASE - 47, 00144 00145 // This is not actually an error. It means that a message sending 00146 // or receiving has been suspended because of offline mode, and 00147 // it should be resent/refetched as soon as phone is switched to 00148 // online mode again. 00149 KMmsErrorOfflineMode = MMS_ERROR_BASE - 48, 00150 00151 // Mapping of HTTP error codes. 00152 // (addition to previous HTTP error mappings) 00153 KMmsErrorHTTPClientError = MMS_ERROR_BASE - 49, 00154 00155 // Sending is prohibited because the message contains some closed content 00156 KMmsErrorProtectedContent = MMS_ERROR_NEW_BASE - 50, 00157 00158 // Error codes for JSR248 application message handling: 00159 00160 // The incoming message was addressed to an application that has not been 00161 // registered. The message has been discarded (error visible only in the 00162 // notification that is in the inbox in manual mode) 00163 KMmsErrorUnregisteredApplication = MMS_ERROR_NEW_BASE - 51, 00164 // The incoming message was addressed to an application. 00165 // There is not enough room on the disk to store the message. 00166 // However, there are enough old messages addressed to the same application 00167 // so that enough room will be freed by deleting some or all of the old 00168 // messages by MMS engine. 00169 // In automatic mode the retrieval is automatically rescheduled. 00170 // In manual mode the error code appears in the notification in inbox 00171 KMmsErrorApplicationDiskFull = MMS_ERROR_NEW_BASE - 52 00172 00173 }; 00174 00175 // MMSERRORS_H 00176 #endif 00177 00178 // End of File