im_pub/im_api/inc/imerrors.h
changeset 0 094583676ce7
equal deleted inserted replaced
-1:000000000000 0:094583676ce7
       
     1 /*
       
     2 * Copyright (c) 2004 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:  Open IM API errors
       
    15 *
       
    16 */
       
    17 
       
    18 
       
    19 #ifndef OPENAPI_IM_ERRORS_H
       
    20 #define OPENAPI_IM_ERRORS_H
       
    21 
       
    22 const TInt KImErrorBase = -30130;
       
    23 
       
    24 enum TImErrors   // SDK API errors
       
    25     {
       
    26     /**
       
    27     * General Error
       
    28     */
       
    29     KImApiGeneralError = KImErrorBase - 1,
       
    30 
       
    31     /**
       
    32     * Error not registered
       
    33     */
       
    34     KImApiErrNotRegistered = KImErrorBase - 2,
       
    35 
       
    36     /**
       
    37     * Error already registered
       
    38     */
       
    39     KImApiErrAlreadyRegistered = KImErrorBase - 3,
       
    40 
       
    41     /**
       
    42     * Error not logged
       
    43     */
       
    44     KImApiErrNotLogged = KImErrorBase - 4,
       
    45 
       
    46     /**
       
    47     * Login is already ongoing
       
    48     */
       
    49     KImApiErrLoginInProgress = KImErrorBase - 5,
       
    50 
       
    51     /**
       
    52     * The contact ID provided in SendPToPMessage is invalid
       
    53     */
       
    54     KImApiErrInvalidContactId = KImErrorBase - 6,
       
    55 
       
    56     /**
       
    57     * The user ID provided in SendPToPMessage is invalid
       
    58     */
       
    59     KImApiErrInvalidUserId = KImErrorBase - 7,
       
    60 
       
    61     /**
       
    62     * Not all the users have a valid User ID when sending message
       
    63     */
       
    64     KImApiErrPartialSuccess = KImErrorBase - 8,
       
    65 
       
    66     /**
       
    67     * Special IM error code: the sender is blocked by the recipient
       
    68     */
       
    69     KImApiErrSenderBlocked = KImErrorBase - 9,
       
    70 
       
    71     /**
       
    72     * Special IM error code: the recipient is not logged in
       
    73     */
       
    74     KImApiErrRecipientNotLogged = KImErrorBase - 10,
       
    75 
       
    76     /**
       
    77     * Logout is already in progress
       
    78     */
       
    79     KImApiErrLogoutInProgress = KImErrorBase - 11,
       
    80 
       
    81     /**
       
    82     * CancelLogin is already in progress
       
    83     */
       
    84     KImApiErrCancelLoginInProgress = KImErrorBase - 12,
       
    85 
       
    86     /**
       
    87     * Already logged in
       
    88     */
       
    89     KImApiErrAlreadyLoggedIn = KImErrorBase - 13,
       
    90 
       
    91     /**
       
    92     * Wrong Password
       
    93     */
       
    94     KImApiErrWrongPassword = KImErrorBase - 14
       
    95     };
       
    96 
       
    97 
       
    98 #endif // OPENAPI_IM_ERRORS_H
       
    99 
       
   100 //  End of File