|
1 /* |
|
2 * Copyright (c) 2006 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: ImumDaErrorCodes.h |
|
15 * |
|
16 */ |
|
17 |
|
18 |
|
19 #ifndef T_IMUMDAERRORCODE_H |
|
20 #define T_IMUMDAERRORCODE_H |
|
21 |
|
22 class TImumDaErrorCode |
|
23 { |
|
24 public: |
|
25 enum TErrorCode |
|
26 { |
|
27 ENoError = 0, |
|
28 |
|
29 // Settings errors: 0 > -1000 |
|
30 EReadFailure = -1000, |
|
31 EWriteFailure, |
|
32 EConnectionSetNotExist, |
|
33 EParamNotReceivingProtocol, |
|
34 EParamUnsupportedProtocol, |
|
35 EParamEmptyProtocol, |
|
36 EConnectionIndexUnderflow, |
|
37 EConnectionIndexOverflow, |
|
38 ERequestedKeyIsTInt, // -992 |
|
39 ERequestedKeyIsTInt64, // -991 |
|
40 ERequestedKeyIsTMsvId, // -990 |
|
41 ERequestedKeyIsTDesC, // -989 |
|
42 ERequestedKeyIsTDesC8, // -988 |
|
43 ERequestedKeyIsUnknown, // -987 |
|
44 ECopyFailureOfProtocol, |
|
45 ECopyFailureOfEmailAddress, |
|
46 ECopyFailureOfAccessPoint, |
|
47 ECopyFailureOfServer, |
|
48 ECopyFailureOfUsername, |
|
49 ECopyFailureOfPassword, |
|
50 ECopyFailureOfPort, // -980 |
|
51 ECopyFailureOfSecurity, |
|
52 EUnsupportedOperation, |
|
53 EItemCreationFailure, |
|
54 EItemSetFailure, |
|
55 EKeyAndDataArrayInbalanced, |
|
56 ESettingNotFound, |
|
57 EResetUnrecognizedKey, |
|
58 EResetKeyNotFound, |
|
59 EDefaultCopyKeyTypeUnknown, |
|
60 EDefaultCopyKeyNotFound, // -970 |
|
61 EKeyCannotBeAssigned, |
|
62 EAttributeNull, |
|
63 EConnectionSettingsNull, |
|
64 |
|
65 // Validation errors: -1001 > -2000 |
|
66 ESettingEmpty = -2000, |
|
67 NoConnectionSettings, |
|
68 EValueProtocolInvalid, |
|
69 EValueProtocolNotFound, |
|
70 EValueProtocolSendingNotSet, |
|
71 EValueProtocolReceivingNotSet, |
|
72 EValueProtocolFirstNotReceiving, |
|
73 EValueProtocolTooManyReceiving, |
|
74 EEmailAddressNotSet, |
|
75 EEmailAddressInvalid, |
|
76 EEmailAddressEmpty, // -1990 |
|
77 EServerAddressNotSet, |
|
78 EServerAddressInvalid, |
|
79 EServerAddressEmpty, |
|
80 EAccessPointNotSet, |
|
81 EAccessPointIdNotFound, |
|
82 EMailboxNameNotSet, |
|
83 EMailboxNameAlreadyExist, |
|
84 EMailboxNameUnknownError, |
|
85 ESecuritySettingNotFound, |
|
86 ESecuritySettingInvalid, // -1980 |
|
87 ESecurityProtocolIllegal, |
|
88 ESecurityPortNotFound, |
|
89 ESecurityPortInvalid, |
|
90 |
|
91 // Service errors: -2001 > -3000 |
|
92 EUnsupportedProtocol = -3000, |
|
93 EIdNotRecongnized, |
|
94 |
|
95 // Utils errors: -3001 > -4000 |
|
96 EEntryNotFound = -4000, |
|
97 EEntryNotMailbox, |
|
98 |
|
99 // Api errors |
|
100 EServicesNotReady = -5000 |
|
101 }; |
|
102 }; |
|
103 |
|
104 #endif // T_IMUMDAERRORCODE_H |