epoc32/include/app/mmserrors.h
author William Roberts <williamr@symbian.org>
Tue, 16 Mar 2010 16:12:26 +0000
branchSymbian2
changeset 2 2fe1408b6811
parent 1 666f914201fb
child 4 837f303aceeb
permissions -rw-r--r--
Final list of Symbian^2 public API header files
     1 /*
     2 * Copyright (c) 2002-2006 Nokia Corporation and/or its subsidiary(-ies).
     3 * All rights reserved.
     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".
     8 *
     9 * Initial Contributors:
    10 * Nokia Corporation - initial contribution.
    11 *
    12 * Contributors:
    13 *
    14 * Description:  
    15 *     MmsEngine error codes
    16 *
    17 */
    18 
    19 
    20 
    21 #ifndef MMSERRORS_H
    22 #define MMSERRORS_H
    23 
    24 
    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
    27 
    28 // Error codes are be defined as enum
    29 enum
    30     {
    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)
    37     // *** obsolete ***
    38     KMmsErrorUrisDontMatch = MMS_ERROR_BASE - 2,
    39     // no IAP for WAP AP 1
    40     // *** obsolete ***
    41     KMmsErrorNoIAP1 = MMS_ERROR_BASE - 3,
    42     // no IAP for WAP AP 2
    43     // *** obsolete ***
    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
    50     // *** obsolete ***
    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
    57     // *** obsolete ***
    58     KMmsErrorDiskSpaceLow = MMS_ERROR_BASE - 9,
    59 
    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,
    70 
    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
    75 
    76     // Errors from the MMS protocol to WAP mapping layer
    77     // *** obsolete ***
    78     KMmsErrorWapStack = MMS_ERROR_BASE - 21,
    79     KMmsErrorSessionAlreadyOpen = MMS_ERROR_BASE - 22,
    80     KMmsErrorSessionNotOpen = MMS_ERROR_BASE - 23,
    81     // *** obsolete ***
    82     KMmsErrorBearerSuspended = MMS_ERROR_BASE - 24,
    83     KMmsErrorTimeout = MMS_ERROR_BASE - 25,
    84     // *** obsolete ***
    85     KMmsErrorSuspendTimeout = MMS_ERROR_BASE - 26,
    86     KMmsErrorUnknownRespFromGw = MMS_ERROR_BASE - 27,
    87     KMmsErrorTransferCancelled = MMS_ERROR_BASE - 28,
    88     KMmsErrorBufferEmpty = MMS_ERROR_BASE - 29,
    89 
    90     // Could not connect because connection already exists
    91     // *** obsolete ***
    92     KMmsErrorConnectionAlreadyActive = MMS_ERROR_BASE - 30,
    93     // Access point #1 not defined
    94     // *** obsolete ***
    95     KMmsErrorNoWapAp1 = MMS_ERROR_BASE - 31,
    96     // URI 1 missing
    97     KMmsErrorNoURI1 = MMS_ERROR_BASE - 32,
    98     // URI 2 missing
    99     // *** obsolete ***
   100     KMmsErrorNoURI2 = MMS_ERROR_BASE - 33,
   101 
   102     // we cannot prove we are in home network and mode is "automatic at home"
   103     // *** obsolete ***
   104     KMmsErrorNotHomeNetwork = MMS_ERROR_BASE - 34,
   105 
   106     // error returned by validate service if values are
   107     // outside limits
   108     KMmsErrorInvalidSettings = MMS_ERROR_BASE - 35,
   109 
   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,
   115 
   116     // Error code that corresponds to Symbian OS error -34
   117     // (KErrCouldNotConnect)
   118     // This is for UI use, mmsengine does not remap Symbian
   119     // error codes.
   120     KMmsErrorCouldNotConnect = MMS_ERROR_BASE - 37,
   121 
   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,
   126 
   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,
   142 
   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,
   148 
   149     // Mapping of HTTP error codes.
   150     // (addition to previous HTTP error mappings)
   151     KMmsErrorHTTPClientError = MMS_ERROR_BASE - 49,
   152 
   153     // Sending is prohibited because the message contains some closed content
   154     KMmsErrorProtectedContent = MMS_ERROR_NEW_BASE - 50,
   155     
   156     // Error codes for JSR248 application message handling:
   157     
   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
   170 
   171     };
   172 
   173 #endif      // MMSERRORS_H
   174 
   175 // End of File