DRM::CDrmAutomatedUsage Class Reference
class DRM::CDrmAutomatedUsage : public CBase |
Utility class for DRM related automated usage handling
Usage:
#include <drmautomatedusage.h>
// Instantiate class CDrmAutomatedUsage
DRM::CDrmAutomatedUsage* iAutomatedUsage =
DRM::CDrmAutomatedUsage::NewLC();
// ...
// RFile myRingToneFile;
// open my Ringtone for reading
// ...
ContentAccess::CData* myDataObject = ContentAccess::CData::NewL(
myRingToneFile,
ContentAccess::KDefaultContentObject,
ContentAccess::EPeek );
// check if content can be set as automated
if ( iAutomatedUsage->CanSetAutomatedL(
myDataObject,
ContentAccess::EPlay,
DRM::EAUAutomatedTypeRingingTone ) )
{
// automated usage allowed
// we register content as ringing tone in this example
iAutomatedUsage->SetAutomated(
myDataObject,
ContentAccess::EPlay,
DRM::EAUAutomatedTypeRingingTone,
DRM::EAUPassive );
}
else
{
// automated usage not allowed
}
drmautomatedusage.lib
- Since
- S60 5.0
Public Member Functions |
---|
| ~CDrmAutomatedUsage() |
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 MDrmErrorHandling & | GetErrorHandler() |
IMPORT_C CDrmUtility & | GetUtility() |
IMPORT_C CDrmAutomatedUsage * | NewL(CCoeEnv *) |
IMPORT_C CDrmAutomatedUsage * | NewLC(CCoeEnv *) |
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
CDrmAutomatedUsage()
CDrmAutomatedUsage | ( | ) | [private] |
~CDrmAutomatedUsage()
~CDrmAutomatedUsage | ( | ) | [virtual] |
Member Functions Documentation
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::TDrmAutomatedType
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::TDrmAutomatedType
CancelOperation(TInt)
IMPORT_C TInt | CancelOperation | ( | TInt | aOperationId | ) | |
Cancel an asyncronous operation
Parameters
TInt aOperationId | identifier of the async operation to be cancelled |
ConstructL(CCoeEnv *)
void | ConstructL | ( | CCoeEnv * | aCoeEnv | ) | [private] |
NewL(CCoeEnv *)
Creates a new CDrmAutomatedUsage object and returns a pointer to it
- Since
- S60 5.0
If no CCoeEnv instance is available, applications launched will be launched as standalone applications.
-
leave
- System wide error code
CCoeEnv
Parameters
CCoeEnv * aCoeEnv = NULL | A pointer to an instance of CCoeEnv. If the parameter is not provided the global instance will be used. In the case of a server process where the global instance is not available, global notes will be used. |
NewLC(CCoeEnv *)
Creates a new CDrmAutomatedUsage object and returns a pointer to it Leaves the pointer to the cleanup stack
- Since
- S60 5.0
If no CCoeEnv instance is available, applications launched will be launched as standalone applications.
-
leave
- System wide error code
CCoeEnv
Parameters
CCoeEnv * aCoeEnv = NULL | A pointer to an instance of CCoeEnv. If the parameter is not provided the global instance will be used. In the case of a server process where the global instance is not available, global notes will be used. |
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::TDrmAutomatedServiceType
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::TDrmAutomatedServiceType
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::TDrmAutomatedServiceType
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::TDrmAutomatedServiceType
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::TDrmAutomatedServiceType
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::TDrmAutomatedServiceType
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::TDrmAutomatedServiceType
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 Data Documentation
MDrmErrorHandling * iErrorHandler
Implementation class pointer Owned
CDrmAutomatedUsageImpl * iImplementation
Implementation class pointer Owned
CDrmUtility * iUtility
Implementation class pointer Owned
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.