2 * Copyright (c) 2004 Nokia Corporation and/or its subsidiary(-ies).
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".
9 * Initial Contributors:
10 * Nokia Corporation - initial contribution.
14 * Description: Open IM API errors
19 #ifndef OPENAPI_IM_ERRORS_H
20 #define OPENAPI_IM_ERRORS_H
22 const TInt KImErrorBase = -30130;
24 enum TImErrors // SDK API errors
29 KImApiGeneralError = KImErrorBase - 1,
32 * Error not registered
34 KImApiErrNotRegistered = KImErrorBase - 2,
37 * Error already registered
39 KImApiErrAlreadyRegistered = KImErrorBase - 3,
44 KImApiErrNotLogged = KImErrorBase - 4,
47 * Login is already ongoing
49 KImApiErrLoginInProgress = KImErrorBase - 5,
52 * The contact ID provided in SendPToPMessage is invalid
54 KImApiErrInvalidContactId = KImErrorBase - 6,
57 * The user ID provided in SendPToPMessage is invalid
59 KImApiErrInvalidUserId = KImErrorBase - 7,
62 * Not all the users have a valid User ID when sending message
64 KImApiErrPartialSuccess = KImErrorBase - 8,
67 * Special IM error code: the sender is blocked by the recipient
69 KImApiErrSenderBlocked = KImErrorBase - 9,
72 * Special IM error code: the recipient is not logged in
74 KImApiErrRecipientNotLogged = KImErrorBase - 10,
77 * Logout is already in progress
79 KImApiErrLogoutInProgress = KImErrorBase - 11,
82 * CancelLogin is already in progress
84 KImApiErrCancelLoginInProgress = KImErrorBase - 12,
89 KImApiErrAlreadyLoggedIn = KImErrorBase - 13,
94 KImApiErrWrongPassword = KImErrorBase - 14
98 #endif // OPENAPI_IM_ERRORS_H