epoc32/include/app/imerrors.h
author William Roberts <williamr@symbian.org>
Tue, 16 Mar 2010 16:12:26 +0000
branchSymbian2
changeset 2 2fe1408b6811
parent 1 666f914201fb
permissions -rw-r--r--
Final list of Symbian^2 public API header files
     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 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:  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