ContentAccess::CAgentRightsManager Class Reference

class ContentAccess::CAgentRightsManager : public CBase

Manages and retrieves rights objects from an agent.

Inherits from

  • ContentAccess::CAgentRightsManager

Member Functions Documentation

DeleteAllRightsObjects(const TVirtualPathPtr &)

TInt DeleteAllRightsObjects(const TVirtualPathPtr &aVirtualPath)[pure virtual]

Deletes all rights associated with a particular content object

The agent may display a dialog asking the user to confirm the delete. Execution will be blocked until the dialog is complete. Applications can request to disable the agents user interface using the SetProperty() command

capability
DRM Access to DRM rights is not permitted for processes without DRM capability.

Parameters

const TVirtualPathPtr & aVirtualPathThe path of the content object.

DeleteAllRightsObjects(RFile &, const TDesC &)

IMPORT_C TIntDeleteAllRightsObjects(RFile &aFile,
const TDesC &aUniqueId
)[virtual]

Deletes all rights associated with a particular content object in a file specified by file handle. Can be used when the source file is in the client's private directory.

The agent may display a dialog asking the user to confirm the delete. Execution will be blocked until the dialog is complete. Applications can request to disable the agents user interface using the SetProperty() command.

capability
DRM Access to DRM rights is not permitted for processes without DRM capability.

Parameters

RFile & aFileThe file handle for the file containing the content object.
const TDesC & aUniqueIdThe unique id of the content object.

DeleteRightsObject(const CRightsInfo &)

TInt DeleteRightsObject(const CRightsInfo &aRightsInfo)[pure virtual]

Asks the DRM agent to delete a rights object

The agent may display a dialog asking the user to confirm the delete. Execution will be blocked until the dialog is complete. Applications can request to disable the agents user interface using the SetProperty() command

capability
DRM Access to DRM rights is not permitted for processes without DRM capability.

Parameters

const CRightsInfo & aRightsInfoThe rights object.

GetRightsDataL(const CRightsInfo &)

MAgentRightsBase *GetRightsDataL(const CRightsInfo &aRightsInfo)const [pure virtual]
This will be used by applications to retrieve an agent specific rights object
leave
KErrPermissionDenied If the agent does not permit the client to access rights information.
leave
... One of the CAF error codes defined in caferr.h or one of the other system-wide error codes for any other errors.
capability
DRM Access to DRM rights is not permitted for processes without DRM capability.

Parameters

const CRightsInfo & aRightsInfoThe rights object.

ListAllRightsL(RStreamablePtrArray< CRightsInfo > &)

voidListAllRightsL(RStreamablePtrArray< CRightsInfo > &aArray)const [pure virtual]
List all rights held by the agent
leave
KErrPermissionDenied If the agent does not permit the client to access rights information.
leave
... One of the CAF error codes defined in caferr.h or one of the other system-wide error codes for any other errors.
capability
DRM Access to DRM rights is not permitted for processes without DRM capability.

Parameters

RStreamablePtrArray< CRightsInfo > & aArrayThe client supplied array used to store the CRightsInfo objects. The agent will add CRightsInfo objects to the supplied array.

ListContentL(RStreamablePtrArray< CVirtualPath > &, CRightsInfo &)

voidListContentL(RStreamablePtrArray< CVirtualPath > &aArray,
CRightsInfo &aRightsInfo
)const [pure virtual]
List all content associated with a particular rights object
leave
KErrPermissionDenied If the agent does not permit the client to access rights information.
leave
... One of the CAF error codes defined in caferr.h or one of the other system-wide error codes for any other errors.
capability
DRM Access to DRM rights is not permitted for processes without DRM capability.

Parameters

RStreamablePtrArray< CVirtualPath > & aArrayThe client supplied array used to store the list of content objects. The agent will add CVirtualPath objects to the supplied array.
CRightsInfo & aRightsInfoThe rights object.

ListRightsL(RStreamablePtrArray< CRightsInfo > &, const TDesC &)

voidListRightsL(RStreamablePtrArray< CRightsInfo > &aArray,
const TDesC &aUri
)const [pure virtual]
List all rights associated with a particular file
leave
KErrPermissionDenied If the agent does not permit the client to access rights information.
leave
... One of the CAF error codes defined in caferr.h or one of the other system-wide error codes for any other errors.
capability
DRM Access to DRM rights is not permitted for processes without DRM capability.

Parameters

RStreamablePtrArray< CRightsInfo > & aArrayThe client supplied array used to store the CRightsInfo objects. The agent will add CRightsInfo objects to the supplied array.
const TDesC & aUriThe name of the file.

ListRightsL(RStreamablePtrArray< CRightsInfo > &, TVirtualPathPtr &)

voidListRightsL(RStreamablePtrArray< CRightsInfo > &aArray,
TVirtualPathPtr &aVirtualPath
)const [pure virtual]
List all rights associated with a particular content object
leave
KErrPermissionDenied If the agent does not permit the client to access rights information.
leave
... One of the CAF error codes defined in caferr.h or one of the other system-wide error codes for any other errors.
capability
DRM Access to DRM rights is not permitted for processes without DRM capability.

Parameters

RStreamablePtrArray< CRightsInfo > & aArrayThe client supplied array used to store the CRightsInfo objects. The agent will add CRightsInfo objects to the supplied array.
TVirtualPathPtr & aVirtualPathThe content object.

ListRightsL(RStreamablePtrArray< CRightsInfo > &, RFile &, const TDesC &)

IMPORT_C voidListRightsL(RStreamablePtrArray< CRightsInfo > &aArray,
RFile &aFile,
const TDesC &aUniqueId
)const [virtual]

List all rights associated with a particular content object in a file specified by file handle. Can be used when the source file is in the client's private directory.

leave
KErrCANotSupported if the feature not supported.
leave
KErrPermissionDenied If the agent does not permit the client to access rights information.
leave
... One of the CAF error codes defined in caferr.h or one of the other system-wide error codes for any other errors.
capability
DRM Access to DRM rights is not permitted for processes without DRM capability.

Parameters

RStreamablePtrArray< CRightsInfo > & aArrayThe client supplied array used to store the CRightsInfo objects. The agent will add CRightsInfo objects to the supplied array.
RFile & aFileThe file handle for the file containing the content object.
const TDesC & aUniqueIdThe unique id of the content object.

SetProperty(TAgentProperty, TInt)

TInt SetProperty(TAgentPropertyaProperty,
TIntaValue
)[pure virtual]

Allows an application to request the modification of a property within the agent. The agent may or may not permit the property to be changed

capability
DRM Access to DRM protected content is not permitted for processes without DRM capability. Access to unprotected content is unrestricted

Parameters

TAgentProperty aPropertyThe property to set.
TInt aValueThe value of the property.