CDRMNotifier Class Reference

class CDRMNotifier : public CBase

With this class an application can register to receive DRM related notifications.

DRMCommon.dll
Since
S60Rel2.6

Inherits from

Constructor & Destructor Documentation

CDRMNotifier(void)

CDRMNotifier(void)[private]

C++ default constructor.

Parameters

void

CDRMNotifier(const CDRMNotifier &)

CDRMNotifier(const CDRMNotifier &)[private]

Parameters

const CDRMNotifier &

~CDRMNotifier()

IMPORT_C~CDRMNotifier()[virtual]

Destructor.

Member Functions Documentation

ConstructL()

voidConstructL()[private]

First Phase constructor

NewL(void)

IMPORT_C CDRMNotifier *NewL(void)[static]

Two-phased constructor.

Parameters

void

NewLC(void)

IMPORT_C CDRMNotifier *NewLC(void)[static]

Two-phased constructor.

Parameters

void

RegisterEventObserverL(MDRMEventObserver &, const TDRMEventType &)

IMPORT_C voidRegisterEventObserverL(MDRMEventObserver &aObserver,
const TDRMEventType &aEvent
)

RegisterEventObserverL

Registers a new event observer to DRM Notifier. Listens to all events of the given type

Since
S60Rel2.6

Parameters

MDRMEventObserver & aObserverObserver.
const TDRMEventType & aEventthe type of event to listen to

RegisterEventObserverL(MDRMEventObserver &, const TDRMEventType &, const TDesC8 &)

IMPORT_C voidRegisterEventObserverL(MDRMEventObserver &aObserver,
const TDRMEventType &aEvent,
const TDesC8 &aContentID
)

RegisterEventObserverL

Registers a new event observer to DRM Notifier. Only recieves notification when the rights accociated with the given content id are handled

Since
S60Rel2.6

Parameters

MDRMEventObserver & aObserverObserver
const TDRMEventType & aEventthe type of event to listen to
const TDesC8 & aContentIDthe specific content id to listen to

SendEventL(MDRMEvent &, TRequestStatus &)

IMPORT_C voidSendEventL(MDRMEvent &aEvent,
TRequestStatus &aStatus
)

SendEventL

Sends a notification to registered observers

Since
S60Rel2.6

Parameters

MDRMEvent & aEventthe event to be sent
TRequestStatus & aStatusthe request status for the event, will be updated when the event has been sent

UnRegisterEventObserverL(MDRMEventObserver &, const TDRMEventType &)

IMPORT_C voidUnRegisterEventObserverL(MDRMEventObserver &aObserver,
const TDRMEventType &aEvent
)

UnRegisterEventObserverL

Unregisters existing event observer from DRM Notifier.

Since
S60Rel2.6

Parameters

MDRMEventObserver & aObserverObserver.
const TDRMEventType & aEventthe type of event to unregister

UnRegisterEventObserverL(MDRMEventObserver &, const TDRMEventType &, const TDesC8 &)

IMPORT_C voidUnRegisterEventObserverL(MDRMEventObserver &aObserver,
const TDRMEventType &aEvent,
const TDesC8 &aContentID
)

UnRegisterEventObserverL

Unregisters existing event observer from DRM Notifier.

Since
S60Rel2.6

Parameters

MDRMEventObserver & aObserverObserver.
const TDRMEventType & aEventthe type of event to listen to
const TDesC8 & aContentIDthe specific content id to listen to

operator=(const CDRMNotifier &)

CDRMNotifier &operator=(const CDRMNotifier &)[private]

Parameters

const CDRMNotifier &

Member Data Documentation

CDRMEventHandler * iEventHandler

CDRMEventHandler *iEventHandler[private]