CDRMConstraint Class Reference
class CDRMConstraint : public CBase |
CDRMConstraint implements a constraint for OMA DRM usage
DrmRights.dll
- Since
- S60 3.0
Nested Classes and Structures
Constructor & Destructor Documentation
CDRMConstraint()
IMPORT_C | CDRMConstraint | ( | ) | [protected] |
CDRMConstraint(const CDRMConstraint &)
~CDRMConstraint()
IMPORT_C | ~CDRMConstraint | ( | ) | [virtual] |
Member Functions Documentation
ConstructL()
void | ConstructL | ( | ) | [private] |
Consume(const TTime &)
IMPORT_C void | Consume | ( | const TTime & | aCurrentTime | ) | |
Parameters
const TTime & aCurrentTime | : The current secure time |
DuplicateL(const CDRMConstraint &)
DuplicateL
copies all data from the given constraint to the current one
Expired(const TTime &)
Expired
returns a boolean valua about the validity of the constraint Future rights are considered not be be expired and EFalse is returned for them
Parameters
const TTime & aTime | : current secure time, if the time is Time::NullTTime() time based constraints will not be considered to be expised and EFalse is returned for them |
ExternalizeL(RWriteStream &)
ExternalizeL
Writes the data of the object into the stream
InternalizeL(RReadStream &)
InternalizeL
Reads the data of the object from the stream
Merge(const CDRMConstraint &)
Merge
Merges the two constraints
NewLC()
NewLC
Creates a new CDRMConstraint 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
Stateful()
IMPORT_C TBool | Stateful | ( | ) | const |
Stateful
The function checks if the constraint is stateful
Valid(const TTime &, const RPointerArray< HBufC8 > &, TUint32 &)
Valid
returns if the constraint is valid/usable at this time
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 |
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 Data Documentation
TTimeIntervalSeconds
iAccumulatedTime
TUint32
iActiveConstraints
TDrmMeteringInfo * iDrmMeteringInfo
RPointerArray< HBufC8 > iIndividual
TTimeIntervalSeconds
iInterval
TDRMCounter
iOriginalCounter
TDRMCounter
iOriginalTimedCounter
RPointerArray< HBufC8 > iSystem
TDRMCounter
iTimedCounter
TTimeIntervalSeconds
iTimedInterval
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.