1.1 --- /dev/null Thu Jan 01 00:00:00 1970 +0000
1.2 +++ b/os/security/contentmgmt/contentaccessfwfordrm/inc/caferr.h Fri Jun 15 03:10:57 2012 +0200
1.3 @@ -0,0 +1,154 @@
1.4 +/*
1.5 +* Copyright (c) 2003-2006 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 "Eclipse Public License v1.0"
1.9 +* which accompanies this distribution, and is available
1.10 +* at the URL "http://www.eclipse.org/legal/epl-v10.html".
1.11 +*
1.12 +* Initial Contributors:
1.13 +* Nokia Corporation - initial contribution.
1.14 +*
1.15 +* Contributors:
1.16 +*
1.17 +* Description:
1.18 +*
1.19 +*/
1.20 +
1.21 +
1.22 +
1.23 +/**
1.24 +@file
1.25 +
1.26 +This contains error code definitions required by clients accessing the
1.27 +Content Access Framework.
1.28 +
1.29 +All CAF error codes lie within the range \c KErrCA_LowerLimit to
1.30 +\c KErrCA_UpperLimit inclusive.
1.31 +
1.32 +@publishedAll
1.33 +@released
1.34 +*/
1.35 +
1.36 +
1.37 +
1.38 +#ifndef __CAFERR_H__
1.39 +#define __CAFERR_H__
1.40 +
1.41 +#include <e32std.h>
1.42 +
1.43 +
1.44 +/**
1.45 +This is the upper limit of the CAF error code range.
1.46 +
1.47 +Example usage:
1.48 +@code
1.49 +if (KErrCA_LowerLimit <= err && err <= KErrCA_UpperLimit)
1.50 + {
1.51 + // handle CAF-specific error
1.52 + }
1.53 +@endcode
1.54 +*/
1.55 +const TInt KErrCA_UpperLimit = -17450;
1.56 +
1.57 +
1.58 +/**
1.59 +This is the lower limit of the CAF error code range.
1.60 +
1.61 +Example usage:
1.62 +@code
1.63 +if (KErrCA_LowerLimit <= err && err <= KErrCA_UpperLimit)
1.64 + {
1.65 + // handle CAF-specific error
1.66 + }
1.67 +@endcode
1.68 +*/
1.69 +const TInt KErrCA_LowerLimit = -17549;
1.70 +
1.71 +
1.72 +
1.73 +/**
1.74 +Agent does not support the requested capability.
1.75 +*/
1.76 +const TInt KErrCANotSupported = -17450;
1.77 +
1.78 +/**
1.79 +Rights evaluation failed for the supplied intent. This implies that
1.80 +rights were available, but their evaluation, in the context of
1.81 +supplied intent, failed.
1.82 +*/
1.83 +const TInt KErrCANoPermission = -17451;
1.84 +
1.85 +/**
1.86 +No rights were available for evaluation. A number of causes may
1.87 +generate this error: Perhaps the rights were removed or lost
1.88 +during a separate delivery
1.89 +*/
1.90 +const TInt KErrCANoRights = -17452;
1.91 +
1.92 +/**
1.93 +The Agent required is not present. This may occur if content
1.94 +'belongs' to an agent that is no longer available on the
1.95 +device.
1.96 +*/
1.97 +const TInt KErrCANoAgent = -17453;
1.98 +
1.99 +/**
1.100 +Values specified are out of range.
1.101 +*/
1.102 +const TInt KErrCAOutOfRange = -17454;
1.103 +
1.104 +/**
1.105 +The rights were not available but are 'expected'. Will only be
1.106 +returned if the agent supports this capability.
1.107 +*/
1.108 +const TInt KErrCAPendingRights = -17455;
1.109 +
1.110 +/**
1.111 +A request to get the content size failed because the agent was unable
1.112 +to determine it. This error may occur on circumstances where, say, the
1.113 +content is streamed over HTTP.
1.114 +*/
1.115 +const TInt KErrCASizeNotDetermined = -17456;
1.116 +
1.117 +/**
1.118 +The function failed because the agent needs the client to provide another
1.119 +file handle before the import can continue
1.120 +*/
1.121 +const TInt KErrCANewFileHandleRequired = -17457;
1.122 +
1.123 +
1.124 +/**
1.125 +The rights object failed an integrity check.
1.126 +
1.127 +This error is returned when a client attempts an operation which requires
1.128 +accessing a rights object.
1.129 +
1.130 +*/
1.131 +const TInt KErrCACorruptRights = -17458;
1.132 +
1.133 +
1.134 +/**
1.135 +The content object failed an integrity check.
1.136 +
1.137 +This error is returned when a client attempts an operation which requires
1.138 +accessing a content object.
1.139 +
1.140 +*/
1.141 +const TInt KErrCACorruptContent = -17459;
1.142 +
1.143 +#ifdef SYMBIAN_ENABLE_SDP_WMDRM_SUPPORT
1.144 +/**
1.145 +
1.146 +This error is returned when only a part of encrypted input packet provided for decryption.
1.147 +*/
1.148 +const TInt KErrInsufficientDataPacketLength = -17460;
1.149 +
1.150 +/**
1.151 +
1.152 +This error is returned when only a part of encrypted input packet provided for decryption.
1.153 +*/
1.154 +const TInt KErrMissingWmdrmHeaderData = -17461;
1.155 +
1.156 +#endif //SYMBIAN_ENABLE_SDP_WMDRM_SUPPORT
1.157 +#endif // __CAFERR_H__