2 * Copyright (c) 2002-2006 Nokia Corporation and/or its subsidiary(-ies).
4 * This component and the accompanying materials are made available
5 * 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
6 * which accompanies this distribution, and is available
7 * at the URL "http://www.symbianfoundation.org/legal/licencesv10.html".
9 * Initial Contributors:
10 * Nokia Corporation - initial contribution.
15 * MmsEngine error codes
25 #define MMS_ERROR_BASE -11000 //lint !e1923 this should definitely not be a variable
26 #define MMS_ERROR_NEW_BASE -32100 // new mms errors base
28 // Error codes are be defined as enum
31 // Unspecified error, used when no defined error matches.
32 KMmsGeneralError = MMS_ERROR_BASE,
33 // no access points defined
34 KMmsErrorNoWAPAccessPoint = MMS_ERROR_BASE - 1,
35 // Both WAP access points must have the same URI
36 // (both must point to the same MMSC)
38 KMmsErrorUrisDontMatch = MMS_ERROR_BASE - 2,
39 // no IAP for WAP AP 1
41 KMmsErrorNoIAP1 = MMS_ERROR_BASE - 3,
42 // no IAP for WAP AP 2
44 KMmsErrorNoIAP2 = MMS_ERROR_BASE - 4,
45 // access point 1 not valid (something wrong with access point chain)
46 // missing URI has own error code, see below
47 KMmsErrorAP1Invalid = MMS_ERROR_BASE - 5,
48 // access point 2 not valid (something wrong with access point chain)
49 // missing URI has own error code, see below
51 KMmsErrorAP2Invalid = MMS_ERROR_BASE - 6,
52 // message is too big to be sent - cannot allocate encode buffer
53 KMmsErrorMessageTooBig = MMS_ERROR_BASE - 7,
54 // message type invalid - cannot encode
55 KMmsErrorUnknownMessageType = MMS_ERROR_BASE - 8,
56 // Disk space critical level check failed
58 KMmsErrorDiskSpaceLow = MMS_ERROR_BASE - 9,
60 // error codes that come from the X-mms-response status
61 KMmsErrorStatusUnspecified = MMS_ERROR_BASE - 10,
62 KMmsErrorStatusServiceDenied = MMS_ERROR_BASE - 11,
63 KMmsErrorStatusMessageFormatCorrupt = MMS_ERROR_BASE - 12,
64 // sending address unresolved
65 KMmsErrorStatusMessageAddressUnresolved = MMS_ERROR_BASE - 13,
66 KMmsErrorStatusMessageNotFound = MMS_ERROR_BASE - 14,
67 KMmsErrorStatusNetworkProblem = MMS_ERROR_BASE - 15,
68 KMmsErrorStatusContentNotAccepted = MMS_ERROR_BASE - 16,
69 KMmsErrorStatusUnsupportedMessage = MMS_ERROR_BASE - 17,
71 // Mapping of HTTP error codes. Rough categories only
72 KMmsErrorHTTPConfiguration = MMS_ERROR_BASE - 18, // 1XX, 3XX
73 KMmsErrorHTTPNotFound = MMS_ERROR_BASE - 19, // 4XX
74 KMmsErrorHTTPServerDown = MMS_ERROR_BASE - 20, // 5XX
76 // Errors from the MMS protocol to WAP mapping layer
78 KMmsErrorWapStack = MMS_ERROR_BASE - 21,
79 KMmsErrorSessionAlreadyOpen = MMS_ERROR_BASE - 22,
80 KMmsErrorSessionNotOpen = MMS_ERROR_BASE - 23,
82 KMmsErrorBearerSuspended = MMS_ERROR_BASE - 24,
83 KMmsErrorTimeout = MMS_ERROR_BASE - 25,
85 KMmsErrorSuspendTimeout = MMS_ERROR_BASE - 26,
86 KMmsErrorUnknownRespFromGw = MMS_ERROR_BASE - 27,
87 KMmsErrorTransferCancelled = MMS_ERROR_BASE - 28,
88 KMmsErrorBufferEmpty = MMS_ERROR_BASE - 29,
90 // Could not connect because connection already exists
92 KMmsErrorConnectionAlreadyActive = MMS_ERROR_BASE - 30,
93 // Access point #1 not defined
95 KMmsErrorNoWapAp1 = MMS_ERROR_BASE - 31,
97 KMmsErrorNoURI1 = MMS_ERROR_BASE - 32,
100 KMmsErrorNoURI2 = MMS_ERROR_BASE - 33,
102 // we cannot prove we are in home network and mode is "automatic at home"
104 KMmsErrorNotHomeNetwork = MMS_ERROR_BASE - 34,
106 // error returned by validate service if values are
108 KMmsErrorInvalidSettings = MMS_ERROR_BASE - 35,
110 // We must have our own definition for MRUExceeded.
111 // The actual error code depends on the transport used.
112 // The tranport component must map the error and
113 // return it to us in this form
114 KMmsErrorEMRUExceeded = MMS_ERROR_BASE - 36,
116 // Error code that corresponds to Symbian OS error -34
117 // (KErrCouldNotConnect)
118 // This is for UI use, mmsengine does not remap Symbian
120 KMmsErrorCouldNotConnect = MMS_ERROR_BASE - 37,
122 // Error code means that the DRM message is removed
123 // from the MMS message as the handling of the DRM message has failed.
124 // This error code is not shown to the end user.
125 KMmsErrorRemoveDRM = MMS_ERROR_BASE - 38,
127 // New error codes for mapping MMS encapsulation 1.1 errors
128 // These errors correspond to X-Mms-Response_Status errors from MMSC
129 // These are all permanent errors
130 KMmsErrorStatusReplyChargingLimitationsNotMet = MMS_ERROR_BASE - 39,
131 KMmsErrorStatusReplyChargingRequestNotAccepted = MMS_ERROR_BASE - 40,
132 KMmsErrorStatusReplyChargingForwardingDenied = MMS_ERROR_BASE - 41,
133 KMmsErrorStatusReplyChargingNotSupported = MMS_ERROR_BASE - 42,
134 KMmsErrorStatusContentUnsupported = MMS_ERROR_BASE - 43,
135 // Sending address unresolved
136 KMmsErrorStatusTransientAddressUnresolved = MMS_ERROR_BASE - 44,
137 KMmsErrorStatusTransientMessageNotFound = MMS_ERROR_BASE - 45,
138 // Generic values for unspecified permanent and transient errors
139 // These are used when error codes ouside known ranges are obtained
140 KMmsErrorStatusPermanentFailure = MMS_ERROR_BASE - 46,
141 KMmsErrorStatusTransientFailure = MMS_ERROR_BASE - 47,
143 // This is not actually an error. It means that a message sending
144 // or receiving has been suspended because of offline mode, and
145 // it should be resent/refetched as soon as phone is switched to
146 // online mode again.
147 KMmsErrorOfflineMode = MMS_ERROR_BASE - 48,
149 // Mapping of HTTP error codes.
150 // (addition to previous HTTP error mappings)
151 KMmsErrorHTTPClientError = MMS_ERROR_BASE - 49,
153 // Sending is prohibited because the message contains some closed content
154 KMmsErrorProtectedContent = MMS_ERROR_NEW_BASE - 50,
156 // Error codes for JSR248 application message handling:
158 // The incoming message was addressed to an application that has not been
159 // registered. The message has been discarded (error visible only in the
160 // notification that is in the inbox in manual mode)
161 KMmsErrorUnregisteredApplication = MMS_ERROR_NEW_BASE - 51,
162 // The incoming message was addressed to an application.
163 // There is not enough room on the disk to store the message.
164 // However, there are enough old messages addressed to the same application
165 // so that enough room will be freed by deleting some or all of the old
166 // messages by MMS engine.
167 // In automatic mode the retrieval is automatically rescheduled.
168 // In manual mode the error code appears in the notification in inbox
169 KMmsErrorApplicationDiskFull = MMS_ERROR_NEW_BASE - 52
173 #endif // MMSERRORS_H