CDRMPermission Class Reference
class CDRMPermission : public CBase |
CDRMPermission implements the permission for OMA DRM usage
DrmRights.dll
- Since
- S60 3.0
Constructor & Destructor Documentation
CDRMPermission()
IMPORT_C | CDRMPermission | ( | ) | [protected] |
~CDRMPermission()
IMPORT_C | ~CDRMPermission | ( | ) | [virtual] |
Member Functions Documentation
Child()
IMPORT_C TBool | Child | ( | ) | const |
Child()
Tells if the rights object is a child or not
ConstraintForIntent(const ContentAccess::TIntent)
NULL or actual constraints.
ConstructL()
void | ConstructL | ( | ) | [private] |
ConsumeRights(const ContentAccess::TIntent, const TTime &)
Note: Top level constraint is always consumed if it exists.
DuplicateL(const CDRMPermission &)
DuplicateL
Copies the data of the permission into the current one.
Parameters
const CDRMPermission & aPermission | : the permission to duplicate into this one |
Expired(const TTime &)
Expired
Checks if the permission has expired
Parameters
const TTime & aTime | : The current secure time if the time is Time::NullTTime() time based rights will be ignored |
ExportL()
IMPORT_C HBufC8 * | ExportL | ( | ) | const |
ExportL
Writes the data of the object into an HBufC8 and returns a pointer to it. The caller is responsible for deleting the object.
ExternalizeL(RWriteStream &)
ExternalizeL
Writes the data of the object into the stream
ImportL(const TDesC8 &)
IMPORT_C void | ImportL | ( | const TDesC8 & | aBuffer | ) | |
ImportL
Reads the data of the object from the descriptor and initialized the object accordingly
Parameters
const TDesC8 & aBuffer | : the buffer containing the data of the imported object |
InternalizeL(RReadStream &)
InternalizeL
Reads the data of the object from the stream
Merge(const CDRMPermission &)
Merge permission with another permission
NewLC()
NewLC
Creates a new CDRMPermission object and returns a pointer to it. The function leaves the object to the cleanup stack.
ReadInt64L(TInt64 &, RReadStream &)
ReadInt64L
Reads the 64 bit integer from the stream
Parameters
TInt64 & aRead | : the 64 bit integer read |
RReadStream & aStream | : the output stream to write to |
Size()
Size
returns the size of the externalized object
SoftwareConstrained()
IMPORT_C TBool | SoftwareConstrained | ( | ) | const |
Checks if the permission has software constaints
Stateful()
IMPORT_C TBool | Stateful | ( | ) | const |
Stateful()
Tells if the rights object is stateful or not
TopLevelConstraint()
NULL or actual constraint.
Valid(const TTime &, const RPointerArray< HBufC8 > &, TUint32 &, const TRightsType)
Valid
returns if the permission is valid/usable at this time
If no second parameter is given all the constraints will be checked for validity and if any of them is invalid the permission is considered to be invalid.
For ERightsPlay, ERightsDisplay, ERightsExecute, ERightsPrint also the toplevel constraint will be checked for validity
Parameters
const TTime & aTime | : current secure time, if the time is Time::NullTTime() time based constraints will be considered to be invalid |
const RPointerArray< HBufC8 > & aIndividual | : the imsi of the phone |
TUint32 & aRejection | : return value for why the content was rejected |
const TRightsType aType = ERightsAll | |
WriteInt64L(const TInt64 &, RWriteStream &)
WriteInt64L
Writes the 64 bit integer to the stream
Parameters
const TInt64 & aWrite | : the 64 bit integer to write |
RWriteStream & aStream | : the output stream to write to |
Member Enumerations Documentation
Member Data Documentation
CDRMConstraint * iDisplay
CDRMConstraint * iExecute
TTime
iOriginalInsertTime
TTime
| iOriginalInsertTime |
TROVersion
iRightsObjectVersion
CDRMConstraint * iTopLevel
Copyright ©2010 Nokia Corporation and/or its subsidiary(-ies).
All rights
reserved. Unless otherwise stated, these materials are provided under the terms of the Eclipse Public License
v1.0.