class DRM::MDrmAutomatedUsageObserver |
Observer for DRM automated usage
In order to be able to get notifications of drm automated usage events client must implement this interface
// Call NewL() to create an instance of CDrmAutomatedUsage. iDrmAutomatedUsage = DRM::CDrmAutomatedUsage::NewL(); // register to listen automated usage events iDrmAutomatedUsage->RegisterEventObserverL( this ); // Implement automated usage callback DRM::TAutomatedUsageAction CMyClass::AutomatedUsageEvent( DRM::TAutomatedUsageEvent aAutomatedUsageEvent, const TDesC& aUniqueId, ContentAccess::TIntent aIntent ) { if ( aAutomatedUsageEvent == DRM::EAutomatedContentExpired ) { // some automated content expired // check unique id if we are interested about this content if ( !aUniqueId.Compare( myUniqueId ) ) { // in this example we let utility to handle situation return DRM::EAUActionDefault; } } return DRM::EAUActionIgnore; }
Public Member Functions | |
---|---|
TAutomatedUsageAction | AutomatedUsageEvent ( TAutomatedUsageEvent , const TDesC &, const TDrmAutomatedType , const TDrmAutomatedServiceType , ContentAccess::TIntent ) |
void | AutomatedUsageKeyCode ( TAutomatedUsageEvent , const TDesC &, TInt ) |
TAutomatedUsageAction | AutomatedUsageEvent | ( | TAutomatedUsageEvent | aAutomatedUsageEvent, |
const TDesC & | aUniqueId, | |||
const TDrmAutomatedType | aType, | |||
const TDrmAutomatedServiceType | aServiceType, | |||
ContentAccess::TIntent | aIntent = ContentAccess::EUnknown | |||
) | [pure virtual] |
Callback for automated usage events
TAutomatedUsageEvent aAutomatedUsageEvent | Automated usage event type |
const TDesC & aUniqueId | Unique ID of the content related to event |
const TDrmAutomatedType aType | Type of the automated content related to the event |
const TDrmAutomatedServiceType aServiceType | |
ContentAccess::TIntent aIntent = ContentAccess::EUnknown |
void | AutomatedUsageKeyCode | ( | TAutomatedUsageEvent | aAutomatedUsageEvent, |
const TDesC & | aUniqueId, | |||
TInt | aKeyCode | |||
) | [pure virtual] |
Callback for drm utility handled event keycodes.
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.