class DRM::CDrmAutomatedUsageImpl : public CActive |
Utility class for DRM related automated usage handling
This is implementation class for interface DRM::DrmAutomatedUsage. This is only used via class DRM::DrmAutomatedUsage
Public Member Functions | |
---|---|
~CDrmAutomatedUsageImpl () | |
IMPORT_C TBool | CanSetAutomatedL ( RFile &, const ContentAccess::TIntent , const TDrmAutomatedType ) |
IMPORT_C TBool | CanSetAutomatedL (const ContentAccess::CData &, const ContentAccess::TIntent , const TDrmAutomatedType ) |
IMPORT_C TInt | CancelOperation ( TInt ) |
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 *) |
IMPORT_C CDrmAutomatedUsageImpl * | NewL ( CCoeEnv *, CDrmUtility *) |
IMPORT_C CDrmAutomatedUsageImpl * | NewLC ( CCoeEnv *, CDrmUtility *) |
IMPORT_C void | RegisterEventObserverL ( MDrmAutomatedUsageObserver &) |
IMPORT_C TInt | RemoveAutomatedAsyncL ( RFile &, const ContentAccess::TIntent , const TDrmAutomatedType , MDrmAsyncObserver &, const TDrmAutomatedServiceType ) |
IMPORT_C TInt | RemoveAutomatedAsyncL (const ContentAccess::CData &, const ContentAccess::TIntent , const TDrmAutomatedType , MDrmAsyncObserver &, const TDrmAutomatedServiceType ) |
IMPORT_C TInt | RemoveAutomatedAsyncL (const TDesC &, const ContentAccess::TIntent , const TDrmAutomatedType , MDrmAsyncObserver &, const TDrmAutomatedServiceType ) |
IMPORT_C void | RemoveAutomatedL ( RFile &, const ContentAccess::TIntent , const TDrmAutomatedType , const TDrmAutomatedServiceType ) |
IMPORT_C void | RemoveAutomatedL (const ContentAccess::CData &, const ContentAccess::TIntent , const TDrmAutomatedType , const TDrmAutomatedServiceType ) |
IMPORT_C void | RemoveAutomatedL (const TDesC &, const ContentAccess::TIntent , const TDrmAutomatedType , const TDrmAutomatedServiceType ) |
IMPORT_C TInt | SetAutomatedAsyncL ( RFile &, const ContentAccess::TIntent , const TDrmAutomatedType , MDrmAsyncObserver &, const TDrmAutomatedServiceType ) |
IMPORT_C TInt | SetAutomatedAsyncL (const ContentAccess::CData &, const ContentAccess::TIntent , const TDrmAutomatedType , MDrmAsyncObserver &, const TDrmAutomatedServiceType ) |
IMPORT_C void | SetAutomatedL ( RFile &, const ContentAccess::TIntent , const TDrmAutomatedType , const TDrmAutomatedServiceType ) |
IMPORT_C void | SetAutomatedL (const ContentAccess::CData &, const ContentAccess::TIntent , const TDrmAutomatedType , const TDrmAutomatedServiceType ) |
IMPORT_C void | UnregisterEventObserverL ( MDrmAutomatedUsageObserver &) |
Protected Member Functions | |
---|---|
void | DoCancel () |
TInt | RunError ( TInt ) |
void | RunL () |
Private Member Functions | |
---|---|
CDrmAutomatedUsageImpl ( CCoeEnv *, CDrmUtility *) | |
void | Activate ( TRequestStatus *&) |
void | ConstructL () |
TBool | DoCanSetAutomatedL (const TDesC8 &, const ContentAccess::TIntent , const TDrmAutomatedType , const TBool ) |
TBool | DoCanSetAutomatedThemeL (const TDesC8 &) |
TInt | DoRemoveAutomated ( CDrmAutomatedUsageData *) |
TInt | DoSetAutomatedL ( CDrmAutomatedUsageData *) |
Public Member Enumerations | |
---|---|
enum | TState { EInit , EHandeError , ESetAutomated , EReady , EComplete } |
Inherited Enumerations | |
---|---|
CActive:TPriority |
Private Attributes | |
---|---|
MDrmAutomatedUsageObserver * | iAuObserver |
CCoeEnv * | iCoeEnv |
RDrmHelperClient | iDrmHelperClient |
CDrmQueue < CDrmAutomatedUsageData > * | iDrmQueue |
CDrmUtility * | iDrmUtility |
CDrmUtilityUI * | iDrmUtilityUi |
MDrmAsyncObserver * | iObserver |
RDRMRightsClient | iOmaClient |
TInt | iOperationId |
Inherited Attributes | |
---|---|
CActive::iStatus |
CDrmAutomatedUsageImpl | ( | CCoeEnv * | aCoeEnv, |
CDrmUtility * | aDrmUtility | ||
) | [private] |
CCoeEnv * aCoeEnv | |
CDrmUtility * aDrmUtility |
void | Activate | ( | TRequestStatus *& | aStatus | ) | [private] |
TRequestStatus *& aStatus |
IMPORT_C TBool | CanSetAutomatedL | ( | RFile & | aFile, |
const ContentAccess::TIntent | aIntent, | |||
const TDrmAutomatedType | aAutomatedType | |||
) |
Checks if given content can be set as an automated content.
RFile & aFile | file handle to the file |
const ContentAccess::TIntent aIntent | See ContentAccess::Intent |
const TDrmAutomatedType aAutomatedType |
IMPORT_C TBool | CanSetAutomatedL | ( | const ContentAccess::CData & | aData, |
const ContentAccess::TIntent | aIntent, | |||
const TDrmAutomatedType | aAutomatedType | |||
) |
Checks if given content can be set as an automated content.
const ContentAccess::CData & aData | CData object to the protected content |
const ContentAccess::TIntent aIntent | See ContentAccess::Intent |
const TDrmAutomatedType aAutomatedType |
IMPORT_C TInt | CancelOperation | ( | TInt | aOperationId | ) |
Cancel an asyncronous operation
TInt aOperationId | identifier of the async operation to be cancelled |
TBool | DoCanSetAutomatedL | ( | const TDesC8 & | aUniqueId8, |
const ContentAccess::TIntent | aIntent, | |||
const TDrmAutomatedType | aAutomatedType, | |||
const TBool | aUseQueries = EFalse | |||
) | [private] |
TBool | DoCanSetAutomatedThemeL | ( | const TDesC8 & | aUniqueId8 | ) | [private] |
const TDesC8 & aUniqueId8 |
TInt | DoRemoveAutomated | ( | CDrmAutomatedUsageData * | aAutomatedUsageData | ) | [private] |
CDrmAutomatedUsageData * aAutomatedUsageData |
TInt | DoSetAutomatedL | ( | CDrmAutomatedUsageData * | aAutomatedUsageData | ) | [private] |
CDrmAutomatedUsageData * aAutomatedUsageData |
IMPORT_C TInt | HandleErrorAsyncL | ( | RFile & | aFile, |
ContentAccess::TIntent | aIntent, | |||
TInt | aError, | |||
MDrmHandleErrorObserver & | aObserver | |||
) |
Implementation for MDrmErrorHandling::HandleErrorAsyncL
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.
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 |
IMPORT_C TInt | HandleErrorAsyncL | ( | ContentAccess::CData & | aFile, |
ContentAccess::TIntent | aIntent, | |||
TInt | aError, | |||
MDrmHandleErrorObserver & | aObserver | |||
) |
Implementation for MDrmErrorHandling::HandleErrorAsyncL
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.
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 |
IMPORT_C void | HandleErrorL | ( | RFile & | aFile, |
ContentAccess::TIntent | aIntent, | |||
TInt | aError, | |||
MDrmHandleErrorObserver * | aObserver | |||
) |
Implementation for MDrmErrorHandling::HandleErrorL
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.
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 |
IMPORT_C void | HandleErrorL | ( | ContentAccess::CData & | aFile, |
ContentAccess::TIntent | aIntent, | |||
TInt | aError, | |||
MDrmHandleErrorObserver * | aObserver | |||
) |
Implementation for MDrmErrorHandling::HandleErrorL
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.
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 |
IMPORT_C CDrmAutomatedUsageImpl * | NewL | ( | CCoeEnv * | aCoeEnv, |
CDrmUtility * | aDrmUtility | |||
) | [static] |
CCoeEnv * aCoeEnv | |
CDrmUtility * aDrmUtility |
IMPORT_C CDrmAutomatedUsageImpl * | NewLC | ( | CCoeEnv * | aCoeEnv, |
CDrmUtility * | aDrmUtility | |||
) | [static] |
CCoeEnv * aCoeEnv | |
CDrmUtility * aDrmUtility |
IMPORT_C void | RegisterEventObserverL | ( | MDrmAutomatedUsageObserver & | aObserver | ) |
Registers client to listen events related to automated usage. If the client doesn't do this, all the events are handled automatically according to the S60 style.
The observer registered with this function needs to be unregistered before it is deleted.
MDrmAutomatedUsageObserver & aObserver |
IMPORT_C TInt | RemoveAutomatedAsyncL | ( | RFile & | aFile, |
const ContentAccess::TIntent | aIntent, | |||
const TDrmAutomatedType | aAutomatedType, | |||
MDrmAsyncObserver & | aObserver, | |||
const TDrmAutomatedServiceType | aServiceType = EAUActive | |||
) |
Unregisters given content from being used as an automated content.
RFile & aFile | file handle to the file |
const ContentAccess::TIntent aIntent | See ContentAccess::Intent |
const TDrmAutomatedType aAutomatedType | Usage intention of the automated content |
MDrmAsyncObserver & aObserver | Async callback observer |
const TDrmAutomatedServiceType aServiceType = EAUActive | default: EAUActive |
IMPORT_C TInt | RemoveAutomatedAsyncL | ( | const ContentAccess::CData & | aData, |
const ContentAccess::TIntent | aIntent, | |||
const TDrmAutomatedType | aAutomatedType, | |||
MDrmAsyncObserver & | aObserver, | |||
const TDrmAutomatedServiceType | aServiceType = EAUActive | |||
) |
Unregisters given content from being used as an automated content.
const ContentAccess::CData & aData | CData object to the protected content |
const ContentAccess::TIntent aIntent | See ContentAccess::Intent |
const TDrmAutomatedType aAutomatedType | Usage intention of the automated content |
MDrmAsyncObserver & aObserver | Async callback observer |
const TDrmAutomatedServiceType aServiceType = EAUActive | default: EAUActive |
IMPORT_C TInt | RemoveAutomatedAsyncL | ( | const TDesC & | aUniqueId, |
const ContentAccess::TIntent | aIntent, | |||
const TDrmAutomatedType | aAutomatedType, | |||
MDrmAsyncObserver & | aObserver, | |||
const TDrmAutomatedServiceType | aServiceType = EAUActive | |||
) |
Unregisters given content from being used as an automated content.
const TDesC & aUniqueId | unique content id |
const ContentAccess::TIntent aIntent | See ContentAccess::Intent |
const TDrmAutomatedType aAutomatedType | Usage intention of the automated content |
MDrmAsyncObserver & aObserver | Async callback observer |
const TDrmAutomatedServiceType aServiceType = EAUActive | default: EAUActive |
IMPORT_C void | RemoveAutomatedL | ( | RFile & | aFile, |
const ContentAccess::TIntent | aIntent, | |||
const TDrmAutomatedType | aAutomatedType, | |||
const TDrmAutomatedServiceType | aServiceType = EAUActive | |||
) |
Unregisters given content from being used as an automated content.
RFile & aFile | file handle to the file |
const ContentAccess::TIntent aIntent | See ContentAccess::Intent |
const TDrmAutomatedType aAutomatedType | Usage intention of the automated content |
const TDrmAutomatedServiceType aServiceType = EAUActive | default: EAUActive |
IMPORT_C void | RemoveAutomatedL | ( | const ContentAccess::CData & | aData, |
const ContentAccess::TIntent | aIntent, | |||
const TDrmAutomatedType | aAutomatedType, | |||
const TDrmAutomatedServiceType | aServiceType = EAUActive | |||
) |
Unregisters given content from being used as an automated content.
const ContentAccess::CData & aData | CData object to the protected content |
const ContentAccess::TIntent aIntent | See ContentAccess::Intent |
const TDrmAutomatedType aAutomatedType | Usage intention of the automated content |
const TDrmAutomatedServiceType aServiceType = EAUActive | default: EAUActive |
IMPORT_C void | RemoveAutomatedL | ( | const TDesC & | aUniqueId, |
const ContentAccess::TIntent | aIntent, | |||
const TDrmAutomatedType | aAutomatedType, | |||
const TDrmAutomatedServiceType | aServiceType = EAUActive | |||
) |
Unregisters given content from being used as an automated content.
const TDesC & aUniqueId | unique content id |
const ContentAccess::TIntent aIntent | See ContentAccess::Intent |
const TDrmAutomatedType aAutomatedType | Usage intention of the automated content |
const TDrmAutomatedServiceType aServiceType = EAUActive | default: EAUActive |
TInt | RunError | ( | TInt | aError | ) | [protected, virtual] |
From CActive Called if RunL leaves
TInt aError |
IMPORT_C TInt | SetAutomatedAsyncL | ( | RFile & | aFile, |
const ContentAccess::TIntent | aIntent, | |||
const TDrmAutomatedType | aAutomatedType, | |||
MDrmAsyncObserver & | aObserver, | |||
const TDrmAutomatedServiceType | aServiceType = EAUActive | |||
) |
Registers given content to be used as an automated content.
RFile & aFile | file handle to the file |
const ContentAccess::TIntent aIntent | See ContentAccess::Intent |
const TDrmAutomatedType aAutomatedType | Usage intention of the automated content |
MDrmAsyncObserver & aObserver | Async callback observer |
const TDrmAutomatedServiceType aServiceType = EAUActive | default: EAUActive |
IMPORT_C TInt | SetAutomatedAsyncL | ( | const ContentAccess::CData & | aData, |
const ContentAccess::TIntent | aIntent, | |||
const TDrmAutomatedType | aAutomatedType, | |||
MDrmAsyncObserver & | aObserver, | |||
const TDrmAutomatedServiceType | aServiceType = EAUActive | |||
) |
Registers given content to be used as an automated content.
const ContentAccess::CData & aData | CData object to the protected content |
const ContentAccess::TIntent aIntent | See ContentAccess::Intent |
const TDrmAutomatedType aAutomatedType | Usage intention of the automated content |
MDrmAsyncObserver & aObserver | Async callback observer |
const TDrmAutomatedServiceType aServiceType = EAUActive | default: EAUActive |
IMPORT_C void | SetAutomatedL | ( | RFile & | aFile, |
const ContentAccess::TIntent | aIntent, | |||
const TDrmAutomatedType | aAutomatedType, | |||
const TDrmAutomatedServiceType | aServiceType = EAUActive | |||
) |
Registers given content to be used as an automated content.
RFile & aFile | file handle to the file |
const ContentAccess::TIntent aIntent | See ContentAccess::Intent |
const TDrmAutomatedType aAutomatedType | Usage intention of the automated content |
const TDrmAutomatedServiceType aServiceType = EAUActive | default: EAUActive |
IMPORT_C void | SetAutomatedL | ( | const ContentAccess::CData & | aData, |
const ContentAccess::TIntent | aIntent, | |||
const TDrmAutomatedType | aAutomatedType, | |||
const TDrmAutomatedServiceType | aServiceType = EAUActive | |||
) |
Registers given content to be used as an automated content.
const ContentAccess::CData & aData | CData object to the protected content |
const ContentAccess::TIntent aIntent | See ContentAccess::Intent |
const TDrmAutomatedType aAutomatedType | Usage intention of the automated content |
const TDrmAutomatedServiceType aServiceType = EAUActive | default: EAUActive |
IMPORT_C void | UnregisterEventObserverL | ( | MDrmAutomatedUsageObserver & | aObserver | ) |
Unregisters client from listening to events related to automated usage.
If register event observer has been called, it must be unregistered before the observer object is deleted.
MDrmAutomatedUsageObserver & aObserver |
CDrmQueue < CDrmAutomatedUsageData > * | iDrmQueue | [private] |
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.