CDRMRights Class Reference
class CDRMRights : public CBase
|
Public Member Enumerations
|
enum
|
anonymous
{
EPlay
= ContentAccess::EPlay,
EDisplay
= ContentAccess::EView,
EExecute
= ContentAccess::EExecute,
EPrint
= ContentAccess::EPrint,
EInstall
= ContentAccess::EInstall }
|
enum
|
anonymous
{
EOk
= KErrNone,
EGeneralError
= -30100,
EUnknownMIME
= -30101,
EVersionNotSupported
= -30102,
ESessionError
= -30103,
ENoRights
= KErrCANoRights,
ERightsDBCorrupted
= -30105,
EUnsupported
= KErrCANotSupported,
ERightsExpired
= KErrCANoPermission,
EInvalidRights
= -30108
}
|
enum
|
anonymous
{
EForwardLock
= 0x0001,
ECombinedDelivery
= 0x0002,
ESeparateDelivery
= 0x0004,
ESuperDistribution
= 0x0008 }
|
enum
|
TConstraintType
{
ENoConstraints
= 0x0001,
ETimeBased
= 0x0002,
EInActiveInterval
= 0x0004,
ECountBased
= 0x0008,
ETimeIsAccumulatedTime
= 0x0010 }
|
enum
|
TConsumeAction
{
EStart
,
EFinish
}
|
enum
|
TExpiration
{
EValidRights
= 100,
EFutureRights
= 10,
EExpiredRights
= 1 }
|
enum
|
TRestriction
{
EFullRights
= 1,
ERestrictedRights
,
EPreviewRights
}
|
Constructor & Destructor Documentation
CDRMRights(void)
IMPORT_C
|
CDRMRights
|
(
|
void
|
|
)
|
[protected]
|
~CDRMRights(void)
IMPORT_C
|
~CDRMRights
|
(
|
void
|
|
)
|
[virtual]
|
Member Functions Documentation
ConstructL(void)
IMPORT_C void
|
ConstructL
|
(
|
void
|
|
)
|
[protected]
|
ExternalizeL(RWriteStream &)
GetAddTime(TTime &)
IMPORT_C void
|
GetAddTime
|
(
|
TTime
&
|
aTime
|
)
|
|
GetAddTime
This function returns the time when the rights object was added to the rights database
GetContentURI(HBufC8 *&)
IMPORT_C
TInt
|
GetContentURI
|
(
|
HBufC8
*&
|
aContentURI
|
)
|
|
GetContentURI
This function returns the content URI of the object
GetDisplayRight(CDRMRightsConstraints *&)
GetDisplayRight
This function returns the constraints associated with the display right.
GetExecuteRight(CDRMRightsConstraints *&)
GetExecuteRight
This function returns the constraints associated with the execute right.
GetExpirationDetails(TUint32, TTime &, TInt &)
IMPORT_C
TInt
|
GetExpirationDetails
|
(
|
TUint32
|
aConstraintSpec,
|
|
TTime
&
|
aEndTime,
|
|
TInt
&
|
aCountsLeft
|
|
)
|
|
GetExpirationDetails
The function returns the end time and amount of counts left of the object associated with given permission. The use of this method is only recommended for objects, which contain a end time or a count restriction. The constraint type information can be retrieved with e.g. GetRightsInfo -function. In cases of full rights and inactive interval rights the aEndTime is set to 0 and the aCountsLeft is set to < 0.
GetLocalID(void)
IMPORT_C
TUint32
|
GetLocalID
|
(
|
void
|
|
)
|
|
GetLocalID
This function returns the local ID of the object
GetPlayRight(CDRMRightsConstraints *&)
GetPlayRight
This function returns the constraints associated with the play right.
GetPrintRight(CDRMRightsConstraints *&)
GetPrintRight
This function returns the constraints associated with the print right.
GetRightsInfo(TUint32, TRestriction &, TExpiration &, TUint32 &)
GetRightsInfo
This function returns the restriction details associated with given permission.
InternalizeL(RReadStream &)
Merge(const CDRMRights &)
IMPORT_C void
|
Merge
|
(
|
const
CDRMRights
&
|
aRights
|
)
|
|
Merge with another rights object
SetAddTime(TTime)
IMPORT_C void
|
SetAddTime
|
(
|
TTime
|
aTime
|
)
|
|
SetAddTime
Sets the add time of the object.
SetAssetL(CDRMAsset &)
IMPORT_C void
|
SetAssetL
|
(
|
CDRMAsset
&
|
aAsset
|
)
|
|
Asset needs to be freed, doesn't take control
SetContentURI(HBufC8 *)
IMPORT_C
TInt
|
SetContentURI
|
(
|
HBufC8
*
|
aContentURI
|
)
|
|
SetContentURIAndLocalID(HBufC8 *, TUint32)
GetContentURIAndLocalID
This function sets the content URI and local ID of the object.
SetDisplayRight(CDRMRightsConstraints *)
SetDisplayRight
This function sets the constraints.
SetExecuteRight(CDRMRightsConstraints *)
SetExecuteRight
This function sets the execute constraints.
SetPermissionL(CDRMPermission &)
Permission needs to be freed, doesn't take control
SetPlayRight(CDRMRightsConstraints *)
SetPlayRight
This function sets the play constraints.
SetPrintRight(CDRMRightsConstraints *)
SetPrintRight
This function sets the print constraints.
operator=(CDRMRights &)
operator=
Assignment operator.
Member Enumerations Documentation
Enum anonymous
Enumerators
EPlay = ContentAccess::EPlay
|
|
EDisplay = ContentAccess::EView
|
|
EExecute = ContentAccess::EExecute
|
|
EPrint = ContentAccess::EPrint
|
|
EInstall = ContentAccess::EInstall
|
|
Enum anonymous
Enumerators
EOk = KErrNone
|
|
EGeneralError = -30100
|
|
EUnknownMIME = -30101
|
|
EVersionNotSupported = -30102
|
|
ESessionError = -30103
|
|
ENoRights = KErrCANoRights
|
|
ERightsDBCorrupted = -30105
|
|
EUnsupported = KErrCANotSupported
|
|
ERightsExpired = KErrCANoPermission
|
|
EInvalidRights = -30108
|
|
Enum anonymous
Enumerators
EForwardLock = 0x0001
|
|
ECombinedDelivery = 0x0002
|
|
ESeparateDelivery = 0x0004
|
|
ESuperDistribution = 0x0008
|
|
Enum TConstraintType
Enumerators
ENoConstraints = 0x0001
|
|
ETimeBased = 0x0002
|
|
EInActiveInterval = 0x0004
|
|
ECountBased = 0x0008
|
|
ETimeIsAccumulatedTime = 0x0010
|
|
Enum TExpiration
Enumerators
EValidRights = 100
|
|
EFutureRights = 10
|
|
EExpiredRights = 1
|
|
Enum TRestriction
Enumerators
EFullRights = 1
|
|
ERestrictedRights
|
|
EPreviewRights
|
|
Member Data Documentation
CDRMPermission * iPermission
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.