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