os/security/contentmgmt/contentaccessfwfordrm/inc/caferr.h
author sl
Tue, 10 Jun 2014 14:32:02 +0200
changeset 1 260cb5ec6c19
permissions -rw-r--r--
Update contrib.
     1 /*
     2 * Copyright (c) 2003-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 the License "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: 
    15 *
    16 */
    17 
    18 
    19 
    20 /** 
    21 @file
    22 
    23 This contains error code definitions required by clients accessing the 
    24 Content Access Framework.
    25 
    26 All CAF error codes lie within the range \c KErrCA_LowerLimit to 
    27 \c KErrCA_UpperLimit inclusive.
    28 
    29 @publishedAll
    30 @released
    31 */
    32 
    33 
    34 
    35 #ifndef __CAFERR_H__
    36 #define __CAFERR_H__
    37 
    38 #include <e32std.h>
    39 
    40 
    41 /**
    42 This is the upper limit of the CAF error code range.
    43 
    44 Example usage:
    45 @code
    46 if (KErrCA_LowerLimit <= err && err <= KErrCA_UpperLimit)
    47 	{
    48 	// handle CAF-specific error
    49 	}
    50 @endcode
    51 */
    52 const TInt KErrCA_UpperLimit = -17450;
    53 
    54 
    55 /**
    56 This is the lower limit of the CAF error code range.
    57 
    58 Example usage:
    59 @code
    60 if (KErrCA_LowerLimit <= err && err <= KErrCA_UpperLimit)
    61 	{
    62 	// handle CAF-specific error
    63 	}
    64 @endcode
    65 */
    66 const TInt KErrCA_LowerLimit = -17549;
    67 
    68 
    69 
    70 /**
    71 Agent does not support the requested capability.
    72 */
    73 const TInt KErrCANotSupported = -17450;
    74 
    75 /** 
    76 Rights evaluation failed for the supplied intent. This implies that
    77 rights were available, but their evaluation, in the context of
    78 supplied intent, failed.
    79 */
    80 const TInt KErrCANoPermission = -17451; 
    81 
    82 /** 
    83 No rights were available for evaluation. A number of causes may
    84 generate this error: Perhaps the rights were removed or lost
    85 during a separate delivery
    86 */
    87 const TInt KErrCANoRights = -17452; 
    88 
    89 /**
    90 The Agent required is not present. This may occur if content
    91 'belongs' to an agent that is no longer available on the 
    92 device. 
    93 */
    94 const TInt KErrCANoAgent = -17453;
    95 
    96 /**
    97 Values specified are out of range. 
    98 */
    99 const TInt KErrCAOutOfRange = -17454;
   100 
   101 /** 
   102 The rights were not available but are 'expected'. Will only be
   103 returned if the agent supports this capability. 
   104 */
   105 const TInt KErrCAPendingRights = -17455;
   106 
   107 /**
   108 A request to get the content size failed because the agent was unable
   109 to determine it. This error may occur on circumstances where, say, the
   110 content is streamed over HTTP.
   111 */
   112 const TInt KErrCASizeNotDetermined = -17456;
   113 
   114 /**
   115 The function failed because the agent needs the client to provide another
   116 file handle before the import can continue
   117 */
   118 const TInt KErrCANewFileHandleRequired = -17457;
   119 
   120 
   121 /**
   122 The rights object failed an integrity check.
   123 
   124 This error is returned when a client attempts an operation which requires 
   125 accessing a rights object.
   126 
   127 */ 
   128 const TInt KErrCACorruptRights = -17458;
   129 
   130 
   131 /**
   132 The content object failed an integrity check.
   133 
   134 This error is returned when a client attempts an operation which requires 
   135 accessing a content object.
   136 
   137 */ 
   138 const TInt KErrCACorruptContent = -17459;
   139 
   140 #ifdef SYMBIAN_ENABLE_SDP_WMDRM_SUPPORT
   141 /**
   142 
   143 This error is returned when only a part of encrypted input packet provided for decryption.
   144 */
   145 const TInt KErrInsufficientDataPacketLength = -17460;
   146 
   147 /**
   148 
   149 This error is returned when only a part of encrypted input packet provided for decryption.
   150 */
   151 const TInt KErrMissingWmdrmHeaderData = -17461;
   152 
   153 #endif //SYMBIAN_ENABLE_SDP_WMDRM_SUPPORT
   154 #endif // __CAFERR_H__