DRM::CDrmAutomatedUsageImpl Class Reference
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
drmautomatedusageimpl.lib
- Since
- S60 5.0
Inherits from
- DRM::CDrmAutomatedUsageImpl
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 &) |
Constructor & Destructor Documentation
CDrmAutomatedUsageImpl(CCoeEnv *, CDrmUtility *)
~CDrmAutomatedUsageImpl()
~CDrmAutomatedUsageImpl | ( | ) | [virtual] |
Member Functions Documentation
Activate(TRequestStatus *&)
CanSetAutomatedL(RFile &, const ContentAccess::TIntent, const TDrmAutomatedType)
Checks if given content can be set as an automated content.
- Since
- S60 5.0
-
leave
- System wide or DRM specific error code.
RFile ContentAccess::TIntent DRM::TDrmAutomatedTypeDRM::CDrmaAutomatedUsage
CanSetAutomatedL(const ContentAccess::CData &, const ContentAccess::TIntent, const TDrmAutomatedType)
Checks if given content can be set as an automated content.
- Since
- S60 5.0
-
leave
- System wide or DRM specific error code.
ContentAccess::CData ContentAccess::TIntent DRM::TDrmAutomatedTypeDRM::CDrmaAutomatedUsage
CancelOperation(TInt)
IMPORT_C TInt | CancelOperation | ( | TInt | aOperationId | ) | |
Cancel an asyncronous operation
- Since
- S60 5.0
DRM::CDrmaAutomatedUsage
Parameters
TInt aOperationId | identifier of the async operation to be cancelled |
ConstructL()
void | ConstructL | ( | ) | [private] |
DoCanSetAutomatedL(const TDesC8 &, const ContentAccess::TIntent, const TDrmAutomatedType, const TBool)
DoCanSetAutomatedThemeL(const TDesC8 &)
TBool
| DoCanSetAutomatedThemeL | ( | const TDesC8 & | aUniqueId8 | ) | [private] |
DoCancel()
void | DoCancel | ( | ) | [protected, virtual] |
From CActive Cancels async request.
DoRemoveAutomated(CDrmAutomatedUsageData *)
DoSetAutomatedL(CDrmAutomatedUsageData *)
HandleErrorAsyncL(RFile &, ContentAccess::TIntent, TInt, MDrmHandleErrorObserver &)
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.
HandleErrorAsyncL(ContentAccess::CData &, ContentAccess::TIntent, TInt, MDrmHandleErrorObserver &)
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.
HandleErrorL(RFile &, ContentAccess::TIntent, TInt, MDrmHandleErrorObserver *)
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.
HandleErrorL(ContentAccess::CData &, ContentAccess::TIntent, TInt, MDrmHandleErrorObserver *)
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.
NewL(CCoeEnv *, CDrmUtility *)
NewLC(CCoeEnv *, CDrmUtility *)
RegisterEventObserverL(MDrmAutomatedUsageObserver &)
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.
RemoveAutomatedAsyncL(RFile &, const ContentAccess::TIntent, const TDrmAutomatedType, MDrmAsyncObserver &, const TDrmAutomatedServiceType)
Unregisters given content from being used as an automated content.
- Since
- S60 5.0
-
leave
- System wide or DRM specific error code.
RFile ContentAccess::TIntent DRM::TDrmAutomatedType
DRM::MDrmAsyncObserver DRM::TDrmAutomatedServiceTypeDRM::CDrmaAutomatedUsage
RemoveAutomatedAsyncL(const ContentAccess::CData &, const ContentAccess::TIntent, const TDrmAutomatedType, MDrmAsyncObserver &, const TDrmAutomatedServiceType)
Unregisters given content from being used as an automated content.
RemoveAutomatedAsyncL(const TDesC &, const ContentAccess::TIntent, const TDrmAutomatedType, MDrmAsyncObserver &, const TDrmAutomatedServiceType)
Unregisters given content from being used as an automated content.
RemoveAutomatedL(RFile &, const ContentAccess::TIntent, const TDrmAutomatedType, const TDrmAutomatedServiceType)
Unregisters given content from being used as an automated content.
- Since
- S60 5.0
-
leave
- System wide or DRM specific error code.
RFile ContentAccess::TIntent DRM::TDrmAutomatedType DRM::TDrmAutomatedServiceTypeDRM::CDrmaAutomatedUsage
RemoveAutomatedL(const ContentAccess::CData &, const ContentAccess::TIntent, const TDrmAutomatedType, const TDrmAutomatedServiceType)
Unregisters given content from being used as an automated content.
- Since
- S60 5.0
-
leave
- System wide or DRM specific error code.
ContentAccess::CData ContentAccess::TIntent DRM::TDrmAutomatedType DRM::TDrmAutomatedServiceTypeDRM::CDrmaAutomatedUsage
RemoveAutomatedL(const TDesC &, const ContentAccess::TIntent, const TDrmAutomatedType, const TDrmAutomatedServiceType)
Unregisters given content from being used as an automated content.
- Since
- S60 5.0
-
leave
- System wide or DRM specific error code.
ContentAccess::TIntent
ContentAccess::CData::GetStringAttribute() ContentAccess::TStringAttribute ContentAccess::TIntent DRM::TDrmAutomatedType DRM::TDrmAutomatedServiceTypeDRM::CDrmaAutomatedUsage
RunError(TInt)
TInt
| RunError | ( | TInt | aError | ) | [protected, virtual] |
RunL()
void | RunL | ( | ) | [protected, virtual] |
From CActive Called when async request completes.
SetAutomatedAsyncL(RFile &, const ContentAccess::TIntent, const TDrmAutomatedType, MDrmAsyncObserver &, const TDrmAutomatedServiceType)
Registers given content to be used as an automated content.
- Since
- S60 5.0
-
leave
- System wide or DRM specific error code.
RFile ContentAccess::TIntent DRM::TDrmAutomatedType
DRM::MDrmAsyncObserver DRM::TDrmAutomatedServiceTypeDRM::CDrmaAutomatedUsage
SetAutomatedAsyncL(const ContentAccess::CData &, const ContentAccess::TIntent, const TDrmAutomatedType, MDrmAsyncObserver &, const TDrmAutomatedServiceType)
Registers given content to be used as an automated content.
SetAutomatedL(RFile &, const ContentAccess::TIntent, const TDrmAutomatedType, const TDrmAutomatedServiceType)
Registers given content to be used as an automated content.
- Since
- S60 5.0
-
leave
- System wide or DRM specific error code.
RFile ContentAccess::TIntent DRM::TDrmAutomatedType DRM::TDrmAutomatedServiceTypeDRM::CDrmaAutomatedUsage
SetAutomatedL(const ContentAccess::CData &, const ContentAccess::TIntent, const TDrmAutomatedType, const TDrmAutomatedServiceType)
Registers given content to be used as an automated content.
- Since
- S60 5.0
-
leave
- System wide or DRM specific error code.
ContentAccess::CData ContentAccess::TIntent DRM::TDrmAutomatedType DRM::TDrmAutomatedServiceTypeDRM::CDrmaAutomatedUsage
UnregisterEventObserverL(MDrmAutomatedUsageObserver &)
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.
Member Enumerations Documentation
Enum TState
Enumerators
EInit | |
EHandeError | |
ESetAutomated | |
EReady | |
EComplete | |
Member Data Documentation
MDrmAutomatedUsageObserver * iAuObserver
RDrmHelperClient
iDrmHelperClient
CDrmQueue< CDrmAutomatedUsageData > * iDrmQueue
CDrmUtility * iDrmUtility
CDrmUtilityUI * iDrmUtilityUi
CDrmUtilityUI * | iDrmUtilityUi | [private] |
MDrmAsyncObserver * iObserver
RDRMRightsClient
iOmaClient
TInt
iOperationId
TInt
| iOperationId | [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.