sl@0: /* sl@0: * Copyright (c) 2003-2006 Nokia Corporation and/or its subsidiary(-ies). sl@0: * All rights reserved. sl@0: * This component and the accompanying materials are made available sl@0: * under the terms of the License "Eclipse Public License v1.0" sl@0: * which accompanies this distribution, and is available sl@0: * at the URL "http://www.eclipse.org/legal/epl-v10.html". sl@0: * sl@0: * Initial Contributors: sl@0: * Nokia Corporation - initial contribution. sl@0: * sl@0: * Contributors: sl@0: * sl@0: * Description: sl@0: * sl@0: */ sl@0: sl@0: sl@0: sl@0: /** sl@0: @file sl@0: sl@0: This contains error code definitions required by clients accessing the sl@0: Content Access Framework. sl@0: sl@0: All CAF error codes lie within the range \c KErrCA_LowerLimit to sl@0: \c KErrCA_UpperLimit inclusive. sl@0: sl@0: @publishedAll sl@0: @released sl@0: */ sl@0: sl@0: sl@0: sl@0: #ifndef __CAFERR_H__ sl@0: #define __CAFERR_H__ sl@0: sl@0: #include sl@0: sl@0: sl@0: /** sl@0: This is the upper limit of the CAF error code range. sl@0: sl@0: Example usage: sl@0: @code sl@0: if (KErrCA_LowerLimit <= err && err <= KErrCA_UpperLimit) sl@0: { sl@0: // handle CAF-specific error sl@0: } sl@0: @endcode sl@0: */ sl@0: const TInt KErrCA_UpperLimit = -17450; sl@0: sl@0: sl@0: /** sl@0: This is the lower limit of the CAF error code range. sl@0: sl@0: Example usage: sl@0: @code sl@0: if (KErrCA_LowerLimit <= err && err <= KErrCA_UpperLimit) sl@0: { sl@0: // handle CAF-specific error sl@0: } sl@0: @endcode sl@0: */ sl@0: const TInt KErrCA_LowerLimit = -17549; sl@0: sl@0: sl@0: sl@0: /** sl@0: Agent does not support the requested capability. sl@0: */ sl@0: const TInt KErrCANotSupported = -17450; sl@0: sl@0: /** sl@0: Rights evaluation failed for the supplied intent. This implies that sl@0: rights were available, but their evaluation, in the context of sl@0: supplied intent, failed. sl@0: */ sl@0: const TInt KErrCANoPermission = -17451; sl@0: sl@0: /** sl@0: No rights were available for evaluation. A number of causes may sl@0: generate this error: Perhaps the rights were removed or lost sl@0: during a separate delivery sl@0: */ sl@0: const TInt KErrCANoRights = -17452; sl@0: sl@0: /** sl@0: The Agent required is not present. This may occur if content sl@0: 'belongs' to an agent that is no longer available on the sl@0: device. sl@0: */ sl@0: const TInt KErrCANoAgent = -17453; sl@0: sl@0: /** sl@0: Values specified are out of range. sl@0: */ sl@0: const TInt KErrCAOutOfRange = -17454; sl@0: sl@0: /** sl@0: The rights were not available but are 'expected'. Will only be sl@0: returned if the agent supports this capability. sl@0: */ sl@0: const TInt KErrCAPendingRights = -17455; sl@0: sl@0: /** sl@0: A request to get the content size failed because the agent was unable sl@0: to determine it. This error may occur on circumstances where, say, the sl@0: content is streamed over HTTP. sl@0: */ sl@0: const TInt KErrCASizeNotDetermined = -17456; sl@0: sl@0: /** sl@0: The function failed because the agent needs the client to provide another sl@0: file handle before the import can continue sl@0: */ sl@0: const TInt KErrCANewFileHandleRequired = -17457; sl@0: sl@0: sl@0: /** sl@0: The rights object failed an integrity check. sl@0: sl@0: This error is returned when a client attempts an operation which requires sl@0: accessing a rights object. sl@0: sl@0: */ sl@0: const TInt KErrCACorruptRights = -17458; sl@0: sl@0: sl@0: /** sl@0: The content object failed an integrity check. sl@0: sl@0: This error is returned when a client attempts an operation which requires sl@0: accessing a content object. sl@0: sl@0: */ sl@0: const TInt KErrCACorruptContent = -17459; sl@0: sl@0: #ifdef SYMBIAN_ENABLE_SDP_WMDRM_SUPPORT sl@0: /** sl@0: sl@0: This error is returned when only a part of encrypted input packet provided for decryption. sl@0: */ sl@0: const TInt KErrInsufficientDataPacketLength = -17460; sl@0: sl@0: /** sl@0: sl@0: This error is returned when only a part of encrypted input packet provided for decryption. sl@0: */ sl@0: const TInt KErrMissingWmdrmHeaderData = -17461; sl@0: sl@0: #endif //SYMBIAN_ENABLE_SDP_WMDRM_SUPPORT sl@0: #endif // __CAFERR_H__