Create a DRM Rights Management Object

The rights management object is only relevant for agents implementing a DRM scheme. Other agents leaves with KErrCANotSupported.

The manager object must be created using the CManager::NewL() function.

An application can ask a particular DRM agent to create a ContentAccess::CRightsManager object that can be used to provide generic access to DRM rights within that agent. Since it is a generic interface used by all agents, it may not possible to present all the detailed information available.
CRightsManager *rightsmanager;
// Create a CManager object

...

// create the rights manager object for a particular agent 
rightsManager = manager->CreateRightsManagerL(agent); 

// do rights management stuff

To manage the rights in a more comprehensive manner, the application must use the ContentAccess::CManager::DisplayManagementInfoL() function, where the agent can present its own comprehensive information.

Related concepts
Managing CAF Agents