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