51
|
1 |
/*
|
|
2 |
* Copyright (c) 2007 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: Protocol agnostic error codes for IM Feature Plugin.
|
|
15 |
*
|
|
16 |
*/
|
|
17 |
|
|
18 |
#ifndef IMERRORS_H
|
|
19 |
#define IMERRORS_H
|
|
20 |
|
|
21 |
|
|
22 |
|
|
23 |
/**
|
|
24 |
* IM Feature Plugin error codes.
|
|
25 |
*
|
|
26 |
* Error codes returned from IM are either:
|
|
27 |
* -# System wide Symbian OS error codes (KErrNone, KErrNoMemory, etc.)
|
|
28 |
* -# Protocol agnostic IM Feature related error codes defined here.
|
|
29 |
* These error codes have range: KImErrBase ... KImErrLow.
|
|
30 |
*
|
|
31 |
* @ingroup Imbaseapi
|
|
32 |
* @since S60
|
|
33 |
*/
|
|
34 |
enum
|
|
35 |
{
|
|
36 |
KImErrBase = -30131,
|
|
37 |
|
|
38 |
/**
|
|
39 |
* Generic error code to indicate that request processing
|
|
40 |
* has failed on IM protocol level to some error,
|
|
41 |
* which isn't mapped to any other more detailed
|
|
42 |
* error code.
|
|
43 |
*/
|
|
44 |
KImErrServiceGeneralError = KImErrBase,
|
|
45 |
|
|
46 |
/**
|
|
47 |
* Error not registered
|
|
48 |
*/
|
|
49 |
KImApiErrNotRegistered = KImErrBase - 2,
|
|
50 |
|
|
51 |
/**
|
|
52 |
* Error already registered
|
|
53 |
*/
|
|
54 |
KImApiErrAlreadyRegistered = KImErrBase - 3,
|
|
55 |
|
|
56 |
/**
|
|
57 |
* Error not logged
|
|
58 |
*/
|
|
59 |
KImApiErrNotLogged = KImErrBase - 4,
|
|
60 |
|
|
61 |
/**
|
|
62 |
* The contact ID provided in send message API is invalid
|
|
63 |
*/
|
|
64 |
KImApiErrInvalidContactId = KImErrBase - 6,
|
|
65 |
|
|
66 |
/**
|
|
67 |
* The user ID provided in send message API is invalid
|
|
68 |
*/
|
|
69 |
KImApiErrInvalidUserId = KImErrBase - 7,
|
|
70 |
|
|
71 |
/**
|
|
72 |
* Not all the users have a valid User ID when sending message
|
|
73 |
*/
|
|
74 |
KImApiErrPartialSuccess = KImErrBase - 8,
|
|
75 |
|
|
76 |
/**
|
|
77 |
* Missing mandatory elements
|
|
78 |
*/
|
|
79 |
KImApiErrMissingMandatoryElement = KImErrBase - 9,
|
|
80 |
|
|
81 |
/**
|
|
82 |
* Special IM error code: the sender is blocked by the recipient
|
|
83 |
*/
|
|
84 |
KImApiErrSenderBlocked = KImErrBase - 10,
|
|
85 |
|
|
86 |
/**
|
|
87 |
* Special IM error code: the recipient is not logged in
|
|
88 |
*/
|
|
89 |
KImApiErrRecipientNotLogged = KImErrBase - 11,
|
|
90 |
|
|
91 |
/**
|
|
92 |
* Error code to indicate that IM service
|
|
93 |
* doesn't support the request issued by the client.
|
|
94 |
*/
|
|
95 |
KImErrServiceRequestTypeNotSupported = KImErrBase - 12,
|
|
96 |
|
|
97 |
/**
|
|
98 |
* Error code to indicate that request handling has
|
|
99 |
* failed because the IM service is
|
|
100 |
* shutting down.
|
|
101 |
*/
|
|
102 |
KImErrServiceShutdown = KImErrBase - 13,
|
|
103 |
|
|
104 |
/**
|
|
105 |
* Error code to indicate that IM service
|
|
106 |
* has terminated the IM session.
|
|
107 |
*/
|
|
108 |
KImErrServiceForceClosedSession = KImErrBase - 14,
|
|
109 |
|
|
110 |
/**
|
|
111 |
* Error code to indicate that request handling has
|
|
112 |
* failed on IM protocol level to insufficient
|
|
113 |
* user authentication.
|
|
114 |
*/
|
|
115 |
KImErrServiceAuthenticationFailed = KImErrBase - 15,
|
|
116 |
|
|
117 |
/**
|
|
118 |
* Error code to indicate that request handling has
|
|
119 |
* timeouted on IM protocol level.
|
|
120 |
*/
|
|
121 |
KImErrServicRequestTimeouted = KImErrBase - 16,
|
|
122 |
|
|
123 |
/**
|
|
124 |
* Error code to indicate that IM protocol or
|
|
125 |
* protocol adaptation does not support given IM
|
|
126 |
* information field type.
|
|
127 |
*/
|
|
128 |
KImErrFieldTypeNotSupported = KImErrBase - 17,
|
|
129 |
|
|
130 |
/**
|
|
131 |
* Error code to indicate that IM protocol or
|
|
132 |
* protocol adaptation does not support given IM
|
|
133 |
* information field value.
|
|
134 |
*/
|
|
135 |
KImErrFieldValueNotSupported = KImErrBase - 18,
|
|
136 |
|
|
137 |
/**
|
|
138 |
* Error code to indicate that IM protocol or
|
|
139 |
* protocol adaptation does not support given
|
|
140 |
* IM group property.
|
|
141 |
*/
|
|
142 |
KImErrGroupPropertyNotSupported = KImErrBase - 19,
|
|
143 |
|
|
144 |
/**
|
|
145 |
* Error code to indicate that request processing has failed
|
|
146 |
* on IM service, because the IM group amount
|
|
147 |
* exceeds the service specific limit.
|
|
148 |
*/
|
|
149 |
KImErrTooManyIMGroups = KImErrBase - 20,
|
|
150 |
|
|
151 |
/**
|
|
152 |
* Error code to indicate that request processing has failed
|
|
153 |
* on IM service, because the IM amount
|
|
154 |
* exceeds the service specific limit.
|
|
155 |
*/
|
|
156 |
KImErrTooManyIM = KImErrBase - 21,
|
|
157 |
|
|
158 |
/**
|
|
159 |
* Error code to indicate that IM service doesn't know
|
|
160 |
* the IM group, which was identified in the request.
|
|
161 |
*/
|
|
162 |
KImErrUnknownIMGroup = KImErrBase - 22,
|
|
163 |
|
|
164 |
/**
|
|
165 |
* Error code to indicate that the IM service
|
|
166 |
* has refused from request handling, because user
|
|
167 |
* doesn't have enough credits for the operation.
|
|
168 |
*/
|
|
169 |
KImErrNotEnoughCredits = KImErrBase - 23,
|
|
170 |
|
|
171 |
/**
|
|
172 |
* Out of range value
|
|
173 |
*/
|
|
174 |
KImErrOutOfRangeValue = KImErrBase - 24,
|
|
175 |
|
|
176 |
/**
|
|
177 |
* Unsupported Context
|
|
178 |
*/
|
|
179 |
KImErrUnsupportedContext = KImErrBase - 25,
|
|
180 |
|
|
181 |
/**
|
|
182 |
* Error code to indicate that request processing has failed
|
|
183 |
* on IM service, because the number of users
|
|
184 |
* exceeds the service specific limit.
|
|
185 |
*/
|
|
186 |
KImErrTooManyUsers = KImErrBase - 26,
|
|
187 |
|
|
188 |
|
|
189 |
/**
|
|
190 |
* Error code to indicate that specified
|
|
191 |
* group does't not exits
|
|
192 |
*
|
|
193 |
*/
|
|
194 |
KImErrGroupDoesNotExists = KImErrBase - 27,
|
|
195 |
|
|
196 |
/**
|
|
197 |
* Error code to indicate that group
|
|
198 |
* already exists
|
|
199 |
*
|
|
200 |
*/
|
|
201 |
KImErrGroupAlreadyExists = KImErrBase - 28,
|
|
202 |
|
|
203 |
/**
|
|
204 |
* Error code to indicate that group
|
|
205 |
* already joined
|
|
206 |
*
|
|
207 |
*/
|
|
208 |
KImErrGroupAlreadyJoined = KImErrBase - 29,
|
|
209 |
|
|
210 |
/**
|
|
211 |
* Error code to indicate that
|
|
212 |
* no joined in the specified group.
|
|
213 |
*
|
|
214 |
*/
|
|
215 |
KImErrGroupNotJoined = KImErrBase - 30,
|
|
216 |
/**
|
|
217 |
* Error code to indicate that not having
|
|
218 |
* permission/access rights.
|
|
219 |
*
|
|
220 |
*/
|
|
221 |
KImErrNotHavingPermission = KImErrBase - 31,
|
|
222 |
|
|
223 |
/**
|
|
224 |
* Error code to indicate that not having
|
|
225 |
* permission/access rights.
|
|
226 |
*
|
|
227 |
*/
|
|
228 |
KImErrJoiningNotAllowed = KImErrBase - 32,
|
|
229 |
|
|
230 |
|
|
231 |
KImErrLow = -30150
|
|
232 |
};
|
|
233 |
|
|
234 |
|
|
235 |
#endif // IMERRORS_H
|
|
236 |
|
|
237 |
|