DRM::MDrmErrorHandling Class Reference

class DRM::MDrmErrorHandling

Utility class for DRM related UI

By using this class an application can resolve situation where there is no valid rights for the content, check status of rights and display an embedded rights details view.

Since
S60 v5.0
Public Member Functions
IMPORT_C TInt HandleErrorAsyncL ( RFile &, ContentAccess::TIntent , TInt , MDrmHandleErrorObserver &)
IMPORT_C TInt HandleErrorAsyncL ( ContentAccess::CData &, ContentAccess::TIntent , TInt , MDrmHandleErrorObserver &)
IMPORT_C void HandleErrorL ( RFile &, ContentAccess::TIntent , TInt , MDrmHandleErrorObserver *)
IMPORT_C void HandleErrorL ( ContentAccess::CData &, ContentAccess::TIntent , TInt , MDrmHandleErrorObserver *)

Member Functions Documentation

HandleErrorAsyncL(RFile &, ContentAccess::TIntent, TInt, MDrmHandleErrorObserver &)

IMPORT_C TInt HandleErrorAsyncL ( RFile & aFile,
ContentAccess::TIntent aIntent,
TInt aError,
MDrmHandleErrorObserver & aObserver
) [pure virtual]

Handles DRM error situations related to invalid rights. This method displays appropriate notes, which observer can override, to the user and acquires new rights if needed. Asynchronous version, all errors are signalled using request status.

Since
S60 v5.0
MDrmHandleErrorObserver ContentAccess::TIntent

Parameters

RFile & aFile file for which the error happened
ContentAccess::TIntent aIntent the CAF intent which was used to recieve the error
TInt aError error code
MDrmHandleErrorObserver & aObserver reference to observer

HandleErrorAsyncL(ContentAccess::CData &, ContentAccess::TIntent, TInt, MDrmHandleErrorObserver &)

IMPORT_C TInt HandleErrorAsyncL ( ContentAccess::CData & aFile,
ContentAccess::TIntent aIntent,
TInt aError,
MDrmHandleErrorObserver & aObserver
) [pure virtual]

Handles DRM error situations related to invalid rights. This method displays appropriate notes, which observer can override, to the user and acquires new rights if needed. Asynchronous version, all errors are signalled using request status.

Since
S60 v5.0
MDrmHandleErrorObserver ContentAccess::TIntent

Parameters

ContentAccess::CData & aFile content for which the error happened
ContentAccess::TIntent aIntent the CAF intent which was used to recieve the error
TInt aError error code
MDrmHandleErrorObserver & aObserver reference to observer

HandleErrorL(RFile &, ContentAccess::TIntent, TInt, MDrmHandleErrorObserver *)

IMPORT_C void HandleErrorL ( RFile & aFile,
ContentAccess::TIntent aIntent,
TInt aError,
MDrmHandleErrorObserver * aObserver
) [pure virtual]

Handles DRM error situations related to invalid rights. This method displays appropriate notes, which observer can override, to the user and acquires new rights if needed. Synchronous version, leaves in case of error.

Since
S60 v5.0
leave
KErrArgument File is not DRM protected.
MDrmHandleErrorObserver ContentAccess::TIntent

Parameters

RFile & aFile file for which the error happened
ContentAccess::TIntent aIntent the CAF intent which was used to recieve the error
TInt aError error code
MDrmHandleErrorObserver * aObserver pointer to observer, NULL if no observer

HandleErrorL(ContentAccess::CData &, ContentAccess::TIntent, TInt, MDrmHandleErrorObserver *)

IMPORT_C void HandleErrorL ( ContentAccess::CData & aFile,
ContentAccess::TIntent aIntent,
TInt aError,
MDrmHandleErrorObserver * aObserver
) [pure virtual]

Handles DRM error situations related to invalid rights. This method displays appropriate notes, which observer can override, to the user and acquires new rights if needed. Synchronous version, leaves in case of error.

Since
S60 v5.0
leave
KErrArgument File is not DRM protected.
MDrmHandleErrorObserver ContentAccess::TIntent

Parameters

ContentAccess::CData & aFile content for which the error happened
ContentAccess::TIntent aIntent the CAF intent which was used to recieve the error
TInt aError error code
MDrmHandleErrorObserver * aObserver pointer to observer, NULL if no observer