DRM::MDrmAutomatedUsageObserver Class Reference
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
Usage:
// 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;
}
drmautomatedusage.lib
- Since
- S60 5.0
Member Functions Documentation
AutomatedUsageEvent(TAutomatedUsageEvent, const TDesC &, const TDrmAutomatedType, const TDrmAutomatedServiceType, ContentAccess::TIntent)
Callback for automated usage events
- Since
- S60 5.0
ContentAccess::TIntent DRM::TAutomatedUsageAction DRM::TAutomatedUsageEvent
AutomatedUsageKeyCode(TAutomatedUsageEvent, const TDesC &, TInt)
Callback for drm utility handled event keycodes.
- Since
- S60 5.0
DRM::TAutomatedUsageEvent
Parameters
TAutomatedUsageEvent aAutomatedUsageEvent | Automated usage event type |
const TDesC & aUniqueId | Unique ID of the content under event aKeycode button/key code returned from user interaction |
TInt aKeyCode | |
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.