imservices/ossprotocoladaptation/inc/ossprotocolpluginerrors.h
branchRCL_3
changeset 14 7797b2f86d2b
parent 13 b6f2a363adf7
child 16 cfe5eb8bb9ca
equal deleted inserted replaced
13:b6f2a363adf7 14:7797b2f86d2b
     1 /*
       
     2 * Copyright (c) 2007-2008 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:  OSs adapter plugin errors
       
    15 *
       
    16 */
       
    17 
       
    18 #ifndef __OSSPROTOCOLPLUGINERRORS_H__
       
    19 #define __OSSPROTOCOLPLUGINERRORS_H__
       
    20 
       
    21 //  INCLUDES
       
    22 #include    <e32std.h>
       
    23 /**
       
    24 * Mapping xmpp protocl errors with ximpfw 
       
    25 *
       
    26 */
       
    27 /**
       
    28  * Xmpp protocol error codes.
       
    29  *
       
    30  * Xmpp status codes received from network transactions
       
    31  * are translated into Xmpp error code range
       
    32  * with following mapping:
       
    33  * <Xmpp-error-code> = KOssAdapBaseErrorXmppServerResponseBase - <Xmpp-status-code>
       
    34  * NOTE!! Mapping algorithm above and error symbols defined
       
    35  * below are in sync with algorithm used by the Xmpp protocol.
       
    36  */
       
    37 enum	
       
    38     {
       
    39     KOssAdapBaseErrorXmppServerResponseBase = -10000,
       
    40     KOssAdapBaseErrorXmppServerLoginResponseBase = -11000,
       
    41 	KOssAdapBaseErrorXmppServerContactResponseBase = -12000,
       
    42 	KOssAdapBaseErrorXmppServerContactListResponseBase = -13000,
       
    43 	KOssAdapBaseErrorXmppServerPresenceResponseBase = -14000,
       
    44 	KOssAdapBaseErrorXmppServerSendMessageResponseBase = -15000,
       
    45 	KOssAdapBaseErrorXmppServerReceiveMessageResponseBase = -16000,
       
    46 	KOssAdapBaseErrorXmppServerLogoutResponseBase = -17000,
       
    47 	KOssAdapBaseErrorMessageQueueResponseBase = -18000,
       
    48 
       
    49     KOssAdapErrMsgQueueCreate = KOssAdapBaseErrorMessageQueueResponseBase - 100,
       
    50     KOssAdapErrMsgQueueSend = KOssAdapBaseErrorMessageQueueResponseBase - 101,
       
    51     
       
    52    
       
    53     KOssadapErrInvalidSettingsId = KOssAdapBaseErrorXmppServerLoginResponseBase - 800,
       
    54     };
       
    55 
       
    56 #endif  //__OSSPROTOCOLPLUGINERRORS_H__