presadap12/impsplugin/inc/impspluginwvpresenceerrors2.h
branchRCL_3
changeset 13 a941bc465d9f
parent 0 094583676ce7
equal deleted inserted replaced
12:6ca72c0fe49a 13:a941bc465d9f
       
     1 /*
       
     2 * Copyright (c) 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 "Eclipse Public License v1.0"
       
     6 * which accompanies this distribution, and is available
       
     7 * at the URL "http://www.eclipse.org/legal/epl-v10.html".
       
     8 *
       
     9 * Initial Contributors:
       
    10 * Nokia Corporation - initial contribution.
       
    11 *
       
    12 * Contributors:
       
    13 *
       
    14 * Description:  Wireless Village CSP protocol error codes.
       
    15 *
       
    16 */
       
    17 
       
    18 #ifndef __IMPSPLUGINWVPRESENCEERRORS2_H
       
    19 #define __IMPSPLUGINWVPRESENCEERRORS2_H
       
    20 
       
    21 
       
    22 /**
       
    23  * Wireless Village CSP status code range.
       
    24  * Range is inclusive.
       
    25  *
       
    26  * @since 3.0
       
    27  */
       
    28 
       
    29 #define KImpsPluginWVStatusCodeBase 100	// CSI: 8 #
       
    30 #define KImpsPluginWVStatusCodeTop 999	// CSI: 8 #
       
    31 
       
    32 
       
    33 
       
    34 /**
       
    35  * Wireless Village CSP protocol error codes.
       
    36  *
       
    37  * WV CSP status codes received from network transactions
       
    38  * are translated into Wireless Village CSP error code range
       
    39  * with following mapping:
       
    40  * <WV-CSP-error-code> = KImpsPluginErrorWVServerResponseBase - <WV-CSP-status-code>
       
    41  * WV CSP status code 200, succesfull is handled specially and
       
    42  * mapped to KErrNone.
       
    43  *
       
    44  *
       
    45  * NOTE!! Mapping algorithm above and error symbols defined
       
    46  * below are in sync with algorithm used by the WV Engine.
       
    47  * (See WV Engine error header: impserrors.h)
       
    48  * (With exeption of 200 - KErrNone)
       
    49  *
       
    50  * @since 3.0
       
    51  */
       
    52 enum	// CSI: 28 #
       
    53     {
       
    54     KImpsPluginErrorWVServerResponseBase = -34000,
       
    55 
       
    56 
       
    57     //Successful
       
    58     KImpsPluginNwErrSuccessful = KImpsPluginErrorWVServerResponseBase - 200,
       
    59     KImpsPluginNwErrPartiallySuccessful = KImpsPluginErrorWVServerResponseBase - 201,
       
    60     KImpsPluginNwErrAccepted = KImpsPluginErrorWVServerResponseBase - 202,
       
    61 
       
    62 
       
    63     // Client errors
       
    64     KImpsPluginNwErrBadRequest = KImpsPluginErrorWVServerResponseBase - 400,
       
    65     KImpsPluginNwErrUnauthorized = KImpsPluginErrorWVServerResponseBase - 401,
       
    66     KImpsPluginNwErrBadParameter = KImpsPluginErrorWVServerResponseBase - 402,
       
    67     KImpsPluginNwErrForbidden = KImpsPluginErrorWVServerResponseBase - 403,
       
    68     KImpsPluginNwErrNotFound = KImpsPluginErrorWVServerResponseBase - 404,
       
    69     KImpsPluginNwErrServiceNotSupported = KImpsPluginErrorWVServerResponseBase - 405,
       
    70     KImpsPluginNwErrRequestTimeout = KImpsPluginErrorWVServerResponseBase - 408,
       
    71     KImpsPluginNwErrInvalidPassword = KImpsPluginErrorWVServerResponseBase - 409,
       
    72     KImpsPluginNwErrUnableToDeliver = KImpsPluginErrorWVServerResponseBase - 410,
       
    73     KImpsPluginNwErrUnsupportedMediaType = KImpsPluginErrorWVServerResponseBase - 415,
       
    74     KImpsPluginNwErrInvalidTransaction = KImpsPluginErrorWVServerResponseBase - 420,
       
    75     KImpsPluginNwErrUserIDAndClientIDDoNotMatch = KImpsPluginErrorWVServerResponseBase - 422,
       
    76     KImpsPluginNwErrInvalidInvitationID = KImpsPluginErrorWVServerResponseBase - 423,
       
    77     KImpsPluginNwErrInvalidSearchID = KImpsPluginErrorWVServerResponseBase - 424,
       
    78     KImpsPluginNwErrInvalidSearchIndex = KImpsPluginErrorWVServerResponseBase - 425,
       
    79     KImpsPluginNwErrInvalidMessageID = KImpsPluginErrorWVServerResponseBase - 426,
       
    80     KImpsPluginNwErrUnauthorizedGroupMembership = KImpsPluginErrorWVServerResponseBase - 431,
       
    81     KImpsPluginNwErrResponseTooLarge = KImpsPluginErrorWVServerResponseBase - 432,
       
    82 
       
    83 
       
    84     //Server errors
       
    85     KImpsPluginNwErrInternalServerOrNetworkError = KImpsPluginErrorWVServerResponseBase - 500,
       
    86     KImpsPluginNwErrNotImplemented = KImpsPluginErrorWVServerResponseBase - 501,
       
    87     KImpsPluginNwErrServiceUnavailable = KImpsPluginErrorWVServerResponseBase - 503,
       
    88     KImpsPluginNwErrTimeout = KImpsPluginErrorWVServerResponseBase - 504,
       
    89     KImpsPluginNwErrVersionNotSupported = KImpsPluginErrorWVServerResponseBase - 505,
       
    90     KImpsPluginNwErrServiceNotAgreed = KImpsPluginErrorWVServerResponseBase - 506,
       
    91     KImpsPluginNwErrMessageQueueIsFull = KImpsPluginErrorWVServerResponseBase - 507,
       
    92     KImpsPluginNwErrDomainNotSupported = KImpsPluginErrorWVServerResponseBase - 516,
       
    93     KImpsPluginNwErrUnrespondedPresenceRequest = KImpsPluginErrorWVServerResponseBase - 521,
       
    94     KImpsPluginNwErrUnrespondedGroupRequest = KImpsPluginErrorWVServerResponseBase - 522,
       
    95     KImpsPluginNwErrUnknownUser = KImpsPluginErrorWVServerResponseBase - 531,
       
    96     KImpsPluginNwErrMessageRecipientNotLoggedIn = KImpsPluginErrorWVServerResponseBase - 533,
       
    97     KImpsPluginNwErrMessageRecipientUnauthorized = KImpsPluginErrorWVServerResponseBase - 534,
       
    98     KImpsPluginNwErrSearchTimedOut = KImpsPluginErrorWVServerResponseBase - 535,
       
    99     KImpsPluginNwErrTooManyHits = KImpsPluginErrorWVServerResponseBase - 536,
       
   100     KImpsPluginNwErrTooBroadSearchCriteria = KImpsPluginErrorWVServerResponseBase - 537,
       
   101     KImpsPluginNwErrMessageHasBeenRejected = KImpsPluginErrorWVServerResponseBase - 538,
       
   102     KImpsPluginNwErrHeaderEncodingNotSupported = KImpsPluginErrorWVServerResponseBase - 540,
       
   103 
       
   104 
       
   105     //Session errors
       
   106     KImpsPluginNwErrSessionExpired = KImpsPluginErrorWVServerResponseBase - 600,
       
   107     KImpsPluginNwErrForcedLogout = KImpsPluginErrorWVServerResponseBase - 601,
       
   108     KImpsPluginNwErrAlreadyLoggedIn = KImpsPluginErrorWVServerResponseBase - 603,
       
   109     KImpsPluginNwErrInvalidSessionNotLoggedIn = KImpsPluginErrorWVServerResponseBase - 604,
       
   110     KImpsPluginNwErrNewValueNotAccepted = KImpsPluginErrorWVServerResponseBase - 605,
       
   111 
       
   112 
       
   113     //Presence and contact list errors
       
   114     KImpsPluginNwErrContactListDoesNotExist = KImpsPluginErrorWVServerResponseBase - 700,
       
   115     KImpsPluginNwErrContactListAlreadyExists = KImpsPluginErrorWVServerResponseBase - 701,
       
   116     KImpsPluginNwErrInvalidOrUnSupportedUserProperties = KImpsPluginErrorWVServerResponseBase - 702,
       
   117     KImpsPluginNwErrInvalidOrUnSupportedPresenceAttribute = KImpsPluginErrorWVServerResponseBase - 750,
       
   118     KImpsPluginNwErrInvalidOrUnSupportedPresenceValue = KImpsPluginErrorWVServerResponseBase - 751,
       
   119     KImpsPluginNwErrInvalidOrUnSupportedContactListProperty = KImpsPluginErrorWVServerResponseBase - 752,
       
   120     KImpsPluginNwErrMaxNumberOfContactListsReached = KImpsPluginErrorWVServerResponseBase - 753,
       
   121     KImpsPluginNwErrMaxNumberOfContactsReached = KImpsPluginErrorWVServerResponseBase - 754,
       
   122     KImpsPluginNwErrMaxNumberOfAttributeListsReached = KImpsPluginErrorWVServerResponseBase - 755,
       
   123     KImpsPluginNwErrAutomaticSubscriptionNotSupported = KImpsPluginErrorWVServerResponseBase - 760,
       
   124 
       
   125 
       
   126     //General errors
       
   127     KImpsPluginNwErrMultipleErrors = KImpsPluginErrorWVServerResponseBase - 900,
       
   128     KImpsPluginNwErrGeneralAddressError = KImpsPluginErrorWVServerResponseBase - 901,
       
   129     KImpsPluginNwErrNotEnoughCreditsForOperation = KImpsPluginErrorWVServerResponseBase - 902,
       
   130     KImpsPluginNwErrOperationRequiresHigherServiceClass = KImpsPluginErrorWVServerResponseBase - 903,
       
   131 
       
   132 
       
   133     KImpsPluginErrorWVServerResponseLow = -34999
       
   134     };
       
   135 
       
   136 #endif // __ImpsPluginWVPRESENCEERRORS2_H
       
   137 
       
   138 //  End of File
       
   139 
       
   140