1.1 --- /dev/null Thu Jan 01 00:00:00 1970 +0000
1.2 +++ b/epoc32/include/SyncMLErr.h Tue Mar 16 16:12:26 2010 +0000
1.3 @@ -0,0 +1,223 @@
1.4 +/*
1.5 +* Copyright (c) 2005 Nokia Corporation and/or its subsidiary(-ies).
1.6 +* All rights reserved.
1.7 +* This component and the accompanying materials are made available
1.8 +* 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
1.9 +* which accompanies this distribution, and is available
1.10 +* at the URL "http://www.symbianfoundation.org/legal/licencesv10.html".
1.11 +*
1.12 +* Initial Contributors:
1.13 +* Nokia Corporation - initial contribution.
1.14 +*
1.15 +* Contributors:
1.16 +*
1.17 +* Description: SyncML error codes
1.18 +*
1.19 +*/
1.20 +
1.21 +#ifndef __SYNCMLERR_H__
1.22 +#define __SYNCMLERR_H__
1.23 +
1.24 +#include <e32std.h>
1.25 +
1.26 +namespace SyncMLError
1.27 +/** SyncML-specific error codes.
1.28 + @publishedAll
1.29 + @released
1.30 +*/
1.31 + {
1.32 + /** Base value for transport-related errors. */
1.33 + const TInt KErrTransportErrorBase = -8321;
1.34 + /** Error with the request.
1.35 +
1.36 + The transport cannot send data as created. */
1.37 + const TInt KErrTransportRequest = KErrTransportErrorBase;
1.38 + /** Error in the provided headers.
1.39 +
1.40 + The transport has not been suitably configured. */
1.41 + const TInt KErrTransportHeader = KErrTransportErrorBase - 1;
1.42 + /** The URI does not exist. */
1.43 + const TInt KErrTransportSvrNoUri = KErrTransportErrorBase - 2;
1.44 + /** There was a transport server error. */
1.45 + const TInt KErrTransportSvrError = KErrTransportErrorBase - 3;
1.46 + /** Transport Authentification failure. */
1.47 + const TInt KErrTransportAuthenticationFailure = KErrTransportErrorBase - 4;
1.48 + /** Transport disconnected the session. */
1.49 + const TInt KErrTransportDisconnected = KErrTransportErrorBase - 5;
1.50 + /** Base value for engine-related errors. */
1.51 + const TInt KErrSyncEngineErrorBase = -8050;
1.52 + /** Transports could not connect to the server. */
1.53 + const TInt KErrConnectionError = KErrSyncEngineErrorBase;
1.54 + /** Could not communicate with the server: possibly a time-out occurred. */
1.55 + const TInt KErrCannotCommunicateWithServer = KErrSyncEngineErrorBase - 1;
1.56 + /** Database adapter failed to create an item. */
1.57 + const TInt KErrDatabaseAdapterIndexError = KErrSyncEngineErrorBase - 2;
1.58 + /** Currently unused. */
1.59 + const TInt KErrParseCallbackError = KErrSyncEngineErrorBase - 3;
1.60 + /** Currently unused. */
1.61 + const TInt KErrCommandInvalid = KErrSyncEngineErrorBase - 4;
1.62 + /** Invalid session ID. */
1.63 + const TInt KErrSessionIdNotValid = KErrSyncEngineErrorBase - 5;
1.64 + /** SyncML message did not specify a DTD version. */
1.65 + const TInt KErrVerDTDMissing = KErrSyncEngineErrorBase - 6;
1.66 + /** SyncML message did not specify a protocol. */
1.67 + const TInt KErrProtoMissing = KErrSyncEngineErrorBase - 7;
1.68 + /** Currently unused. */
1.69 + const TInt KErrSyncHdrMissing = KErrSyncEngineErrorBase - 8;
1.70 + /** SyncML message did not specify a target location. */
1.71 + const TInt KErrTargetLocMissing = KErrSyncEngineErrorBase - 9;
1.72 + /** SyncML message did not specify a source location. */
1.73 + const TInt KErrSourceLocMissing = KErrSyncEngineErrorBase - 10;
1.74 + /** Currently unused. */
1.75 + const TInt KErrTargetLocNameMissing = KErrSyncEngineErrorBase - 11;
1.76 + /** Currently unused. */
1.77 + const TInt KErrSourceLocNameMissing = KErrSyncEngineErrorBase - 12;
1.78 + /** Mapping of added item could not created. */
1.79 + const TInt KErrMappingInfoMissing = KErrSyncEngineErrorBase - 13;
1.80 + /** Mapping has not been acknowledged by the server. */
1.81 + const TInt KErrMappingInfoNotAcked = KErrSyncEngineErrorBase - 14;
1.82 + /** SyncML message specified an unsupported DTD version. */
1.83 + const TInt KErrVersionDTDNotSupported = KErrSyncEngineErrorBase - 15;
1.84 + /** SyncML message specified an unsupported protocol. */
1.85 + const TInt KErrProtoNotSupported = KErrSyncEngineErrorBase - 16;
1.86 + /** A status was received for a cmdId, but this cmdId was not sent. */
1.87 + const TInt KErrStatusCommandForCommandNotSent = KErrSyncEngineErrorBase - 17;
1.88 + /** A status was received but the command string does not matched the received one. */
1.89 + const TInt KErrStatusCommandNotTheSame = KErrSyncEngineErrorBase - 18;
1.90 + /** Status command(s) were expected but are missing. */
1.91 + const TInt KErrMissingStatusCommands = KErrSyncEngineErrorBase - 19;
1.92 + /** Failed to add record in database. */
1.93 + const TInt KErrFailedToAddRecord = KErrSyncEngineErrorBase - 20;
1.94 + /** Failed to replace record in database. */
1.95 + const TInt KErrFailedToReplaceRecord = KErrSyncEngineErrorBase - 21;
1.96 + /** Failed to delete record in database. */
1.97 + const TInt KErrFailedToDeleteRecord = KErrSyncEngineErrorBase - 22;
1.98 + /** XML parsing error. */
1.99 + const TInt KErrXmlParsingError = KErrSyncEngineErrorBase - 23;
1.100 + /** There was an error reported in the reference toolkit. */
1.101 + const TInt KErrReferenceToolkitError = KErrSyncEngineErrorBase - 24;
1.102 + /** No suitable database was found on the client device. */
1.103 + const TInt KErrClientDatabaseNotFound = KErrSyncEngineErrorBase - 83;
1.104 + /** No suitable database was found on the server. */
1.105 + const TInt KErrServerDatabaseNotFound = KErrSyncEngineErrorBase - 84;
1.106 + /** Currently unused. */
1.107 + const TInt KErrDevInfFileNotFound = KErrSyncEngineErrorBase - 85;
1.108 + /** Object is too large to send to server. */
1.109 + const TInt KErrObjectTooLargeToSendToServer = KErrSyncEngineErrorBase - 86;
1.110 + /** Sync is going to be slow. */
1.111 + const TInt KErrSlowSync = KErrSyncEngineErrorBase - 87;
1.112 + /** Failed to get record from DevMan. */
1.113 + const TInt KErrFailedToGetRecord = KErrSyncEngineErrorBase - 88;
1.114 + /** User interaction failed. */
1.115 + const TInt KErrUserInteractionFailed = KErrSyncEngineErrorBase - 89;
1.116 + /** Large object size mismatch. */
1.117 + const TInt KErrStatusSizeMismatch = KErrSyncEngineErrorBase - 90;
1.118 + /** Data Provider close failed. */
1.119 + const TInt KErrFailedToCloseDatabase = KErrSyncEngineErrorBase - 91;
1.120 +
1.121 + const TInt KErrPhoneOnOfflineMode = KErrSyncEngineErrorBase - 92;
1.122 +
1.123 + const TInt KErrAuthenticationFailure = KErrSyncEngineErrorBase - 93;
1.124 +
1.125 + const TInt KErrGeneral = KErrSyncEngineErrorBase - 94;
1.126 +
1.127 + /** Base value for push message parser-related errors. */
1.128 + const TInt KErrPushMessageParserErrorBase = -8451; // 8451 - 8480
1.129 + /** Push message is too short. */
1.130 + const TInt KErrMessageTooShort = KErrPushMessageParserErrorBase;
1.131 + /** Push message is corrupt. */
1.132 + const TInt KErrMessageIsCorrupt = KErrPushMessageParserErrorBase - 1;
1.133 + /** Profile has no Transport ID. */
1.134 + const TInt KErrBadTransportId = KErrPushMessageParserErrorBase - 2;
1.135 + /** Push message has no body. */
1.136 + const TInt KErrNoNotificationBody = KErrPushMessageParserErrorBase - 3;
1.137 + /** Push message specifies an unsupported version. */
1.138 + const TInt KErrWrongVersion = KErrPushMessageParserErrorBase - 4;
1.139 + /** Push message specifies an unsupported version. */
1.140 + const TInt KErrUnsupportedMimeType = KErrPushMessageParserErrorBase - 5;
1.141 + /** Currently unused. */
1.142 + const TInt KErrNoSuchTask = KErrPushMessageParserErrorBase - 6;
1.143 + /** Push message specifies an unknown type of sync. */
1.144 + const TInt KErrUnknownSyncType = KErrPushMessageParserErrorBase - 7;
1.145 + /** Push message specifies an unknown profile. */
1.146 + const TInt KErrUnknownProfile = KErrPushMessageParserErrorBase - 8;
1.147 + /** Currently unused. */
1.148 + const TInt KErrInvalidProfile = KErrPushMessageParserErrorBase - 9;
1.149 + /** Unsupported (USERNETWPIN or USERPIN) security mechanism specified. */
1.150 + const TInt KErrInvalidCredentials = KErrPushMessageParserErrorBase - 10;
1.151 + /** Currently unused. */
1.152 + const TInt KErrNoCredentials = KErrPushMessageParserErrorBase - 11;
1.153 + /** Failed to verify the generated HMAC value. */
1.154 + const TInt KErrIntegrityFailureHMAC = KErrPushMessageParserErrorBase - 12;
1.155 + /** Currently unused. */
1.156 + const TInt KErrMustUsageUriNotComplete = KErrPushMessageParserErrorBase - 13;
1.157 + /** Push message has invalid DM account URI. */
1.158 + const TInt KErrDMAccUriIsCorrupt = KErrPushMessageParserErrorBase - 14;
1.159 + /** Push message has invalid DM connection URI. */
1.160 + const TInt KErrDMConUriIsCorrupt = KErrPushMessageParserErrorBase - 15;
1.161 + /** Push message has missing characteristic. */
1.162 + const TInt KErrParmNameNotInProvDoc = KErrPushMessageParserErrorBase - 17;
1.163 + /** Push message has missing or invalid App Id. */
1.164 + const TInt KErrInvalidAppIdValue = KErrPushMessageParserErrorBase - 18;
1.165 + /** Push message has missing or invalid TO-NAPID. */
1.166 + const TInt KErrInvalidToNapIdValue = KErrPushMessageParserErrorBase - 19;
1.167 + /** Push message has missing or invalid Provider-ID. */
1.168 + const TInt KErrInvalidProviderIdValue = KErrPushMessageParserErrorBase - 20;
1.169 + /** Push message has missing or invalid AAUTHLEVEL. */
1.170 + const TInt KErrEmptyAauthLevelValue = KErrPushMessageParserErrorBase - 21;
1.171 + /** Push message has missing or invalid APPSRV */
1.172 + const TInt KErrAppSrvAAuthLevelNotFound = KErrPushMessageParserErrorBase - 22;
1.173 + /** Push message has missing or invalid AppAuth Client */
1.174 + const TInt KErrClientAAuthLevelNotFound = KErrPushMessageParserErrorBase - 23;
1.175 + /** Currently unused. */
1.176 + const TInt KErrInvalidAppAuth = KErrPushMessageParserErrorBase - 24;
1.177 + /** Push message has missing or invalid APPLICATION characteristic */
1.178 + const TInt KErrNoApplicationCharac = KErrPushMessageParserErrorBase - 25;
1.179 + /** Push message has missing or invalid APPAUTH characteristic. */
1.180 + const TInt KErrNoAppAuthCharac = KErrPushMessageParserErrorBase - 27;
1.181 + /** Currently unused. */
1.182 + const TInt KErrMissingRequiredParmInSvr = KErrPushMessageParserErrorBase - 29;
1.183 + /** Currently unused. */
1.184 + const TInt KErrMissingRequiredParmInClient = KErrPushMessageParserErrorBase - 30;
1.185 + /** Missing APPADDR characteristic or sub characteristic */
1.186 + const TInt KErrAppAddrCharacNotFound = KErrPushMessageParserErrorBase - 33;
1.187 + /** Unsupported WBXML version */
1.188 + const TInt KErrUnsupportedVersion = KErrPushMessageParserErrorBase - 34;
1.189 + /** Prov Document identifier not WAP Provisoning version 1.0 */
1.190 + const TInt KErrWrongProvPublicDocId = KErrPushMessageParserErrorBase - 35;
1.191 +
1.192 + /** Base value for client API-related errors. */
1.193 + const TInt KErrClientAPIBase = -8501; // -8501 -> -8700
1.194 + /** The requested profile does not exist. */
1.195 + const TInt KErrProfileNotFound = KErrClientAPIBase;
1.196 + /** The requested connection does not exist within the profile. */
1.197 + const TInt KErrConnectionNotFound = KErrClientAPIBase - 1;
1.198 + /** The requested task does not exist within the profile. */
1.199 + const TInt KErrTaskNotFound = KErrClientAPIBase - 2;
1.200 + /** The requested transport adaptor does not exist. */
1.201 + const TInt KErrTransportNotFound = KErrClientAPIBase - 3;
1.202 + /** The requested data provider does not exist. */
1.203 + const TInt KErrDataProviderNotFound = KErrClientAPIBase - 4;
1.204 + /** The requested job has completed. */
1.205 + const TInt KErrJobNotFound = KErrClientAPIBase - 5;
1.206 + /** The requested object is pending deletion. */
1.207 + const TInt KErrObjectPendingDelete = KErrClientAPIBase - 6;
1.208 + /** The object to modify or delete is currently in use. */
1.209 + const TInt KErrObjectInUse = KErrClientAPIBase - 7;
1.210 + /** The specified profile is not available for edit,
1.211 + e.g. a Device Management profile, or open for edit by another client. */
1.212 + const TInt KErrProfileAccessDenied = KErrClientAPIBase - 8;
1.213 + /** The requested data stream cannot be found in the Data Store. */
1.214 + const TInt KErrSuspended = KErrClientAPIBase - 9;
1.215 + /** The requested data stream cannot be found in the Data Store. */
1.216 + const TInt KErrDataDepotStreamNotFound = KErrClientAPIBase - 10;
1.217 +
1.218 + /** Server id from profile does not match with id from syncML server. */
1.219 + const TInt KErrServerIdNotMatching = KErrClientAPIBase - 11;
1.220 +
1.221 + /** Server certificate is invalid or not in Store. */
1.222 + const TInt KErrInvalidCert = -8702;
1.223 +
1.224 + }
1.225 +
1.226 +#endif // __SYNCMLERR_H__