class CDRMHelper : public CBase |
Handles some error situations DRM-aware applications may encounter.
Public Member Enumerations | |
---|---|
enum |
TDRMHelperAutomatedType
{
EAutomatedTypeRingingTone , EAutomatedTypeMessageAlert , EAutomatedTypeEmailAlert , EAutomatedTypeIMAlert , EAutomatedTypeCalendarAlarm , EAutomatedTypeScreenSaver , EAutomatedTypeWallpaper , EAutomatedTypeTheme , EAutomatedTypeClockAlarm , EAutomatedTypeOther = KMaxTUint8 } |
enum | TDRMHelperConsumeAction { EStart , EFinish , EPause , EContinue } |
enum | TDRMHelperDRMMethods { EForwardLock = 0x0001, ECombinedDelivery = 0x0002, ESeparateDelivery = 0x0004, ESuperDistribution = 0x0008 } |
enum | TDRMHelperNotificationID { ETActivateTextId = 1, ETCountBasedErrorTextId = 2, ETCountUsageReduceId = 3, ETCountUsageReduceMediaId = 4 } |
enum | TDRMHelperOMALevel { EOMA_None , EOMA_1_0 , EOMA_2_0 } |
enum | TDRMHelperPreviewType { ENoPreview , EEmbeddedPreview , EPreviewRights } |
Private Attributes | |
---|---|
TInt | iAutomatedType |
CCoeEnv * | iCoeEnv |
RPointerArray < CConsumeData > | iConsumeList |
DRMCommon * | iDRMCommon |
CMediatorEventProvider * | iEventProvider |
RFs | iFs |
TBool | iFsOwned |
RDRMHelper | iHelperServer |
RPointerArray < CDRMHelperInfoNoteWrapper > | iNoteList |
TBool | iOma2 |
TInt | iPreviewMediaType |
TBool | iReturnCancel |
CSchemeHandler * | iSchemeHandler |
CStringResourceReader * | iStringResourceReader |
TBool | iUseCoeEnv |
CActiveSchedulerWait | iWait |
CDRMHelper | ( | CCoeEnv & | aCoeEnv | ) | [private] |
CCoeEnv & aCoeEnv |
IMPORT_C void | ActivateContentL | ( | CData & | aContent | ) |
Acquires rights for given content if rights have been expired or rights are missing. If content already has valid or future rights, does nothing. This function should be called when user selects activate from options menu. Leaves with system-wide error code in case of error.
CData & aContent |
IMPORT_C void | ActivateContentL | ( | TDesC & | aFileName | ) |
Acquires rights for given content if rights have been expired or rights are missing. If content already has valid or future rights, does nothing. This function should be called when user selects activate from options menu. Leaves with system-wide error code in case of error.
TDesC & aFileName |
TInt | AutomatedResIdL | ( | TBool | aExpired, |
TBool | aSecondParameter, | |||
TUint32 | aRejectReason | |||
) | [private] |
Returns correct resource id for automated content notes. If aExpired is ETrue, aSecondParameter indicates if RI URL exists If aExpired is EFalse, aSecondParameter indicates if there is one day left aRejectReason tells the constraints which are invalid.
TInt | CalculateEndTime | ( | CDRMRights * | aRights, |
TInt | aIntent, | |||
TTime & | aEndTime, | |||
TBool & | aInactive | |||
) | [private] |
Get expiration time of given rights object
CDRMRights * aRights | |
TInt aIntent | |
TTime & aEndTime | |
TBool & aInactive |
IMPORT_C TInt | CanSetAutomated | ( | const TDesC8 & | aURI, |
TBool & | aValue | |||
) |
IMPORT_C TInt | CanSetAutomated | ( | const TDesC & | aFilename, |
TBool & | aValue | |||
) |
IMPORT_C TInt | CanSetAutomated | ( | RFile & | aFileHandle, |
TBool & | aValue | |||
) |
void | CancelSecondaryDisplayL | ( | TInt | aResourceId | ) | [private] |
Cancels secondary display for DRM notes
TInt aResourceId |
void | CheckPreviewUriL | ( | const CData * | aContent, |
HBufC *& | aEmbeddedPreviewUri, | |||
TInt & | aPreviewType | |||
) | [private] |
IMPORT_C TInt | CheckRightsAmountL | ( | const TDesC & | aFileName, |
TInt | aCount = KDRMHelperDefaultCountThreshold , | |||
TInt | aDays = KDRMHelperDefaultTimeThreshold | |||
) |
const TDesC & aFileName | |
TInt aCount = KDRMHelperDefaultCountThreshold | |
TInt aDays = KDRMHelperDefaultTimeThreshold |
IMPORT_C TInt | CheckRightsAmountL | ( | RFile & | aFileHandle, |
TInt | aCount = KDRMHelperDefaultCountThreshold , | |||
TInt | aDays = KDRMHelperDefaultTimeThreshold | |||
) |
RFile & aFileHandle | |
TInt aCount = KDRMHelperDefaultCountThreshold | |
TInt aDays = KDRMHelperDefaultTimeThreshold |
IMPORT_C TInt | CheckRightsAmountL | ( | const TDesC8 & | aUri, |
TInt | aCount = KDRMHelperDefaultCountThreshold , | |||
TInt | aDays = KDRMHelperDefaultTimeThreshold | |||
) |
Check rights for the file. If there is less than given amount of usage time/count left, one of the following note is displayed depending on situation: 'Usage rights about to expire. View details?' 'Usage rights about to expire. N days left. View details?' 'Usage rights about to expire. 1 day left. View details?' 'Usage rights about to expire. N counts left. View details?' 'Usage rights about to expire. 1 count left. View details?' It also checks that rights are valid and displays appropriate note, if they are not.
const TDesC8 & aUri | |
TInt aCount = KDRMHelperDefaultCountThreshold | |
TInt aDays = KDRMHelperDefaultTimeThreshold |
IMPORT_C TInt | CheckRightsPercentL | ( | const TDesC & | aFileName, |
TInt | aThreshold = KDRMHelperDefaultPercentageThreshold | |||
) |
Check rights for the file. If there is less than aThreshold percent of usage time/count left, one of the following note is displayed depending on situation: 'Usage rights about to expire. View details?' 'Usage rights about to expire. N days left. View details?' 'Usage rights about to expire. 1 day left. View details?' 'Usage rights about to expire. N counts left. View details?' 'Usage rights about to expire. 1 count left. View details?' It also checks that rights are valid and displays appropriate note, if they are not.
const TDesC & aFileName | |
TInt aThreshold = KDRMHelperDefaultPercentageThreshold |
IMPORT_C TInt | CheckRightsPercentL | ( | RFile & | aFileHandle, |
TInt | aThreshold = KDRMHelperDefaultPercentageThreshold | |||
) |
RFile & aFileHandle | |
TInt aThreshold = KDRMHelperDefaultPercentageThreshold |
void | ConstructL | ( | RFs * | aFs | ) | [private] |
By default Symbian 2nd phase constructor is private.
RFs * aFs |
IMPORT_C TInt | Consume2 | ( | const TDesC8 & | aContentURI, |
TUint32 | aRightsSpec, | |||
TDRMHelperConsumeAction | anAction | |||
) |
Consume2
Overrides any rights consumption. This function must only be used by applications with user interaction and not by intermediate components. The main use cases are signalling that content is to be installed (including thumbnail generation), or that content is to be consumed. They are characterized as calls to this function with the correct intent (i.e. EPlay or EInstall) and the corresponding action (i.e. telling whether the indicated intent is started or finished). Calls to this function must be the result of a user interaction or otherwise high level event.
const TDesC8 & aContentURI | |
TUint32 aRightsSpec | |
TDRMHelperConsumeAction anAction |
IMPORT_C TInt | ConsumeFile2 | ( | const TDesC & | aFileName, |
TUint32 | aRightsSpec, | |||
TDRMHelperConsumeAction | anAction | |||
) |
ConsumeFile2
Overrides any rights consumption. This function must only be used by applications with user interaction and not by intermediate components. The main use cases are signalling that content is to be installed (including thumbnail generation), or that content is to be consumed. They are characterized as calls to this function with the correct intent (i.e. EPlay or EInstall) and the corresponding action (i.e. telling whether the indicated intent is started or finished). Calls to this function must be the result of a user interaction or otherwise high level event.
const TDesC & aFileName | |
TUint32 aRightsSpec | |
TDRMHelperConsumeAction anAction |
IMPORT_C TInt | ConsumeFile2 | ( | RFile & | aFileHandle, |
TUint32 | aRightsSpec, | |||
TDRMHelperConsumeAction | anAction | |||
) |
ConsumeFile2
Overrides any rights consumption. This function must only be used by applications with user interaction and not by intermediate components. The main use cases are signalling that content is to be installed (including thumbnail generation), or that content is to be consumed. They are characterized as calls to this function with the correct intent (i.e. EPlay or EInstall) and the corresponding action (i.e. telling whether the indicated intent is started or finished). Calls to this function must be the result of a user interaction or otherwise high level event.
RFile & aFileHandle | |
TUint32 aRightsSpec | |
TDRMHelperConsumeAction anAction |
void | CreateLaunchParamL | ( | TUint32 | aLocalId, |
const HBufC8 * | aUrl, | |||
HBufC *& | aLaunchParam | |||
) | [private] |
Form string needed to launch rights manager UI embedded.
IMPORT_C TInt | DataTypesCount | ( | TInt & | aCount | ) |
DataTypesCount
Returns the number of previously registered datatypes which are supported by the DRM system and associated applications.
TInt & aCount |
void | DisplayInfoNoteL | ( | TInt | aTextResourceId | ) | [private] |
Display information note
TInt aTextResourceId |
void | DisplayInfoNoteL | ( | TInt | aTextResourceId, |
const TDesC & | aString | |||
) | [private] |
void | DisplayInfoNoteL | ( | TDesC & | aPromptText, |
TInt | aResourceId, | |||
const TDesC & | aString = KNullDesC , | |||
TInt | aValue = -1 | |||
) | [private] |
TInt | DisplayPopupWindowsForPreviewL | ( | TInt | aPreviewType | ) | [private] |
TInt aPreviewType |
TInt | DisplayQueryL | ( | TInt | aTextResourceId, |
const TDesC & | aString | |||
) | [private] |
TInt | DisplayQueryL | ( | TInt | aTextResourceId, |
const TDesC & | aString, | |||
TInt | aValue, | |||
TInt | aStringPos = -1, | |||
TInt | aValuePos = -1 | |||
) | [private] |
TInt | DisplayQueryL | ( | TDesC & | aPromptText, |
TInt | aQueryResourceId | |||
) | [private] |
TInt | DisplayQueryWithIdL | ( | TInt | aTextResourceId, |
TInt | aQueryResourceId | |||
) | [private] |
Display query dialog
TInt | DisplayQueryWithIdValueL | ( | TInt | aTextResourceId, |
TInt | aQueryResourceId, | |||
const TDesC & | aString | |||
) | [private] |
TInt | DoCanSetAutomated | ( | const TDesC8 & | aURI, |
const HBufC * | aMimeType, | |||
TBool & | aValue | |||
) | [private] |
TInt | DoCheckRightsAmountL | ( | HBufC8 * | aContentUri, |
HBufC * | aMimeType, | |||
HBufC * | aRIUrl, | |||
const TDesC & | aFileName, | |||
TInt | aCount, | |||
TInt | aDays | |||
) | [private] |
TInt | DoCheckRightsPercentL | ( | HBufC8 * | aContentUri, |
HBufC * | aMimeType, | |||
HBufC * | aRIUrl, | |||
const TDesC & | aFileName, | |||
TInt | aThreshold | |||
) | [private] |
Checks if rights are about to expire.
TBool | DoCheckSkinCanSetAutomated | ( | CDRMRights * | aRights | ) | [private] |
CDRMRights * aRights |
void | DoGetRightsDetailsL | ( | HBufC8 * | aContentUri, |
TUint32 | aIntent, | |||
TBool & | aExpired, | |||
CDRMHelperRightsConstraints *& | aPlay, | |||
CDRMHelperRightsConstraints *& | aDisplay, | |||
CDRMHelperRightsConstraints *& | aExecute, | |||
CDRMHelperRightsConstraints *& | aPrint | |||
) | [private] |
Gets rights details.
HBufC8 * aContentUri | |
TUint32 aIntent | |
TBool & aExpired | |
CDRMHelperRightsConstraints *& aPlay | |
CDRMHelperRightsConstraints *& aDisplay | |
CDRMHelperRightsConstraints *& aExecute | |
CDRMHelperRightsConstraints *& aPrint |
void | DoGetRightsDetailsL | ( | CData * | aContent, |
TUint32 | aIntent, | |||
TBool & | aExpired, | |||
TBool & | aSendingAllowed, | |||
CDRMRightsConstraints *& | aPlay, | |||
CDRMRightsConstraints *& | aDisplay, | |||
CDRMRightsConstraints *& | aExecute, | |||
CDRMRightsConstraints *& | aPrint | |||
) | [private] |
CData * aContent | |
TUint32 aIntent | |
TBool & aExpired | |
TBool & aSendingAllowed | |
CDRMRightsConstraints *& aPlay | |
CDRMRightsConstraints *& aDisplay | |
CDRMRightsConstraints *& aExecute | |
CDRMRightsConstraints *& aPrint |
TInt | DoHandleErrorL | ( | TInt | aError, |
HBufC8 * | aContentUri, | |||
HBufC * | aMimeType, | |||
HBufC * | aRIUrl, | |||
HBufC * | aDomainRoUrl, | |||
HBufC * | aEta, | |||
HBufC8 * | aRiId8, | |||
HBufC8 * | aDomainId8, | |||
const TDesC & | aFileName | |||
) | [private] |
Handles error by displaying appropriate note to user.
TInt | DoSetAutomatedL | ( | const TDesC8 & | aURI, |
TBool | aActive, | |||
const HBufC * | aMimeType | |||
) | [private] |
TInt | DoSetAutomatedSilent | ( | const TDesC8 & | aURI, |
TBool | aActive, | |||
TInt | aIntent | |||
) | [private] |
TInt | DoShowAutomatedNoteL | ( | const TDesC8 & | aURI, |
const HBufC * | aMimeType | |||
) | [private] |
IMPORT_C TBool | EmbeddedPreviewCompletedL | ( | CData & | aContent | ) |
This method should be called after embedded preview has been played. It asks from user if he/she wants to buy rights and acquires those if user agrees. Leaves with system-wide error code in case of error.
CData & aContent |
IMPORT_C TBool | EmbeddedPreviewCompletedL | ( | TDesC & | aFileName | ) |
This method should be called after embedded preview has been played. It asks from user if he/she wants to buy rights and acquires those if user agrees. Leaves with system-wide error code in case of error.
TDesC & aFileName |
TInt | ErrorResIdL | ( | const TDesC8 & | aContentUri, |
TInt | aIntent, | |||
TBool | aRightsIssuer, | |||
TBool | aExpired | |||
) | [private] |
Returns the correct resource id for expired and no rights notes
void | GetConstraintsL | ( | CDRMRights & | aRights, |
CDRMHelperRightsConstraints *& | aPlay, | |||
CDRMHelperRightsConstraints *& | aDisplay, | |||
CDRMHelperRightsConstraints *& | aExecute, | |||
CDRMHelperRightsConstraints *& | aPrint | |||
) | [private] |
Get constraints for given rights
CDRMRights & aRights | |
CDRMHelperRightsConstraints *& aPlay | |
CDRMHelperRightsConstraints *& aDisplay | |
CDRMHelperRightsConstraints *& aExecute | |
CDRMHelperRightsConstraints *& aPrint |
IMPORT_C TInt | GetContentURIList | ( | RPointerArray < HBufC8 > *& | aURIList | ) |
GetContentURIList
Returns a list of all content URIs that have rights in the rights database.
RPointerArray < HBufC8 > *& aURIList |
TInt | GetCounts | ( | CDRMRightsConstraints * | aConstraint, |
TUint32 & | aOriginalCount, | |||
TTimeIntervalDays & | aDuration | |||
) | [private] |
Get time and count based constraints
CDRMRightsConstraints * aConstraint | |
TUint32 & aOriginalCount | |
TTimeIntervalDays & aDuration |
TInt | GetCounts | ( | CDRMRightsConstraints * | aConstraint, |
TUint32 & | aCountLeft, | |||
TTime & | aEndTime | |||
) | [private] |
CDRMRightsConstraints * aConstraint | |
TUint32 & aCountLeft | |
TTime & aEndTime |
TInt | GetCounts | ( | CDRMConstraint * | aConstraint, |
TUint32 & | aOriginalCount, | |||
TTimeIntervalDays & | aDuration | |||
) | [private] |
CDRMConstraint * aConstraint | |
TUint32 & aOriginalCount | |
TTimeIntervalDays & aDuration |
TInt | GetCounts | ( | CDRMConstraint * | aConstraint, |
TUint32 & | aCountLeft, | |||
TTime & | aEndTime | |||
) | [private] |
CDRMConstraint * aConstraint | |
TUint32 & aCountLeft | |
TTime & aEndTime |
TInt | GetEndTime | ( | CDRMRightsConstraints * | aConstraint, |
TTime & | aEndTime, | |||
TBool & | aInactive | |||
) | [private] |
Get end time of given constraint
CDRMRightsConstraints * aConstraint | |
TTime & aEndTime | |
TBool & aInactive |
TInt | GetExpirationDetails | ( | HBufC8 * | aContentUri, |
TInt | aIntent, | |||
CDRMRights *& | aRightsObject | |||
) | [private] |
Get expiration details of file. Returns DRMCommon::ENoRights if no rights object found or CDRMRights::TExpiration value
HBufC8 * aContentUri | |
TInt aIntent | |
CDRMRights *& aRightsObject |
TInt | GetFileHandleFromURIL | ( | const TDesC8 & | aURI, |
RFile & | aFileHandle | |||
) | [private] |
Gets corresponding filename (including full path) based on content URI
IMPORT_C void | GetPreviewRightsL | ( | CData & | aContent | ) |
Acquires preview rights for given content. Leaves with system-wide error code in case of error.
CData & aContent |
IMPORT_C void | GetPreviewRightsL | ( | TDesC & | aFileName | ) |
Acquires preview rights for given content. Leaves with system-wide error code in case of error.
TDesC & aFileName |
IMPORT_C void | GetRightsDetailsL | ( | const TDesC & | aFileName, |
TUint32 | aIntent, | |||
TBool & | aExpired, | |||
TBool & | aSendingAllowed, | |||
CDRMHelperRightsConstraints *& | aPlay, | |||
CDRMHelperRightsConstraints *& | aDisplay, | |||
CDRMHelperRightsConstraints *& | aExecute, | |||
CDRMHelperRightsConstraints *& | aPrint | |||
) |
Gets details of rights object associated of given file.
const TDesC & aFileName | Full path to file |
TUint32 aIntent | ContentAccess::EPlay, ContentAccess::EView, ContentAccess::EPrint or ContentAccess::EExecute |
TBool & aExpired | ETrue if rights are not valid. If this is ETrue and some constraints are returned, rights will become valid in future |
TBool & aSendingAllowed | ETrue if content can be sent |
CDRMHelperRightsConstraints *& aPlay | play constraints, must be deleted by caller |
CDRMHelperRightsConstraints *& aDisplay | display constraints, must be deleted by caller |
CDRMHelperRightsConstraints *& aExecute | execute constraints, must be deleted by caller |
CDRMHelperRightsConstraints *& aPrint | print constraints, must be deleted by caller |
IMPORT_C void | GetRightsDetailsL | ( | RFile & | aFileHandle, |
TUint32 | aIntent, | |||
TBool & | aExpired, | |||
TBool & | aSendingAllowed, | |||
CDRMHelperRightsConstraints *& | aPlay, | |||
CDRMHelperRightsConstraints *& | aDisplay, | |||
CDRMHelperRightsConstraints *& | aExecute, | |||
CDRMHelperRightsConstraints *& | aPrint | |||
) |
Gets details of rights object associated of given file.
RFile & aFileHandle | file handle to the file |
TUint32 aIntent | ContentAccess::EPlay, ContentAccess::EView, ContentAccess::EPrint or ContentAccess::EExecute |
TBool & aExpired | ETrue if rights are not valid. If this is ETrue and some constraints are returned, rights will become valid in future |
TBool & aSendingAllowed | ETrue if content can be sent |
CDRMHelperRightsConstraints *& aPlay | play constraints, must be deleted by caller |
CDRMHelperRightsConstraints *& aDisplay | display constraints, must be deleted by caller |
CDRMHelperRightsConstraints *& aExecute | execute constraints, must be deleted by caller |
CDRMHelperRightsConstraints *& aPrint | print constraints, must be deleted by caller |
IMPORT_C void | GetRightsDetailsL | ( | const TDesC & | aFileName, |
TUint32 | aIntent, | |||
TBool & | aExpired, | |||
TBool & | aSendingAllowed, | |||
CDRMRightsConstraints *& | aPlay, | |||
CDRMRightsConstraints *& | aDisplay, | |||
CDRMRightsConstraints *& | aExecute, | |||
CDRMRightsConstraints *& | aPrint | |||
) |
Gets details of rights object associated of given file.
const TDesC & aFileName | Full path to file |
TUint32 aIntent | ContentAccess::EPlay, ContentAccess::EView, ContentAccess::EPrint or ContentAccess::EExecute |
TBool & aExpired | ETrue if rights are not valid. If this is ETrue and some constraints are returned, rights will become valid in future |
TBool & aSendingAllowed | ETrue if content can be sent |
CDRMRightsConstraints *& aPlay | play constraints, must be deleted by caller |
CDRMRightsConstraints *& aDisplay | display constraints, must be deleted by caller |
CDRMRightsConstraints *& aExecute | execute constraints, must be deleted by caller |
CDRMRightsConstraints *& aPrint | print constraints, must be deleted by caller |
IMPORT_C void | GetRightsDetailsL | ( | RFile & | aFileHandle, |
TUint32 | aIntent, | |||
TBool & | aExpired, | |||
TBool & | aSendingAllowed, | |||
CDRMRightsConstraints *& | aPlay, | |||
CDRMRightsConstraints *& | aDisplay, | |||
CDRMRightsConstraints *& | aExecute, | |||
CDRMRightsConstraints *& | aPrint | |||
) |
Gets details of rights object associated of given file.
RFile & aFileHandle | file handle to the file |
TUint32 aIntent | ContentAccess::EPlay, ContentAccess::EView, ContentAccess::EPrint or ContentAccess::EExecute |
TBool & aExpired | ETrue if rights are not valid. If this is ETrue and some constraints are returned, rights will become valid in future |
TBool & aSendingAllowed | ETrue if content can be sent |
CDRMRightsConstraints *& aPlay | play constraints, must be deleted by caller |
CDRMRightsConstraints *& aDisplay | display constraints, must be deleted by caller |
CDRMRightsConstraints *& aExecute | execute constraints, must be deleted by caller |
CDRMRightsConstraints *& aPrint | print constraints, must be deleted by caller |
void | GetRightsIssuerL | ( | const CData & | aContent, |
HBufC *& | aIssuer | |||
) | [private] |
Get rights-issuer URI from DCF file
TInt | GetSilentRightsL | ( | const TDesC8 & | aUrl | ) | [private] |
Get rights silently
const TDesC8 & aUrl |
TInt | GetStartTime | ( | CDRMRights * | aRights, |
TInt | aIntent, | |||
TTime & | aStartTime | |||
) | [private] |
Get start time of given rights object
CDRMRights * aRights | |
TInt aIntent | |
TTime & aStartTime |
IMPORT_C TInt | HandleErrorL | ( | TInt | aError, |
const TDesC8 & | aURI | |||
) |
Displays appropriate error note depending on error code.
IMPORT_C TInt | HandleErrorL | ( | TInt | aError, |
const TDesC & | aFileName | |||
) |
Displays: Handles error situations 'rights expired', 'no rights' and 'rights database corrupted'.
IMPORT_C TInt | HandleErrorL | ( | TInt | aError, |
RFile & | aFileHandle | |||
) |
IMPORT_C TInt | HandleErrorOrPreviewL | ( | TInt | aError, |
RFile & | aFile, | |||
HBufC8 *& | aEmbeddedPreviewUri | |||
) |
IMPORT_C TInt | HandleErrorOrPreviewL | ( | TInt | aError, |
const TDesC & | aFileName, | |||
HBufC8 *& | aEmbeddedPreviewUri | |||
) |
void | HandleServerAppExit | ( | TInt | aReason | ) | [private] |
TInt aReason |
IMPORT_C TBool | HasInfoUrlL | ( | CData & | aContent, |
HBufC8 *& | aInfoUrl | |||
) |
Checks if given content has InfoUrl. Leaves with system-wide error code in case of error.
IMPORT_C TBool | HasInfoUrlL | ( | TDesC & | aFileName, |
HBufC8 *& | aInfoUrl | |||
) |
Checks if given content has InfoUrl. Leaves with system-wide error code in case of error.
IMPORT_C TDRMHelperPreviewType | HasPreviewL | ( | CData & | aContent, |
HBufC8 *& | aPreviewUri | |||
) |
Checks if given content has embedded preview or if it is possible to get preview rights for it. Leaves with system-wide error code in case of error.
IMPORT_C TDRMHelperPreviewType | HasPreviewL | ( | TDesC & | aFileName, |
HBufC8 *& | aPreviewUri | |||
) |
Checks if given content has embedded preview or if it is possible to get preview rights for it. Leaves with system-wide error code in case of error.
HBufC8 * | HasSilentRightsUrlL | ( | CData * | aContent | ) | [private] |
Check whether a file as a silent rights URL which can be used, i.e the URL is valid and on the white list.
CData * aContent |
IMPORT_C void | IndicateIdle | ( | ) |
TInt | Intent | ( | const HBufC * | aMimeType | ) | [private] |
Returns default intent for the mimetype
const HBufC * aMimeType |
void | LaunchBrowserL | ( | HBufC8 * | aUrl | ) | [private] |
Launch browser embedded
HBufC8 * aUrl |
IMPORT_C void | LaunchDetailsViewEmbeddedL | ( | const TDesC8 & | aURI | ) |
Launches DRM Rights Manager UI embedded with details view related to given content.
const TDesC8 & aURI |
IMPORT_C void | LaunchDetailsViewEmbeddedL | ( | const TDesC & | aFileName | ) |
Launches DRM Rights Manager UI embedded with details view related to given file.
const TDesC & aFileName |
IMPORT_C void | LaunchDetailsViewEmbeddedL | ( | RFile & | aFileHandle | ) |
RFile & aFileHandle |
IMPORT_C void | LaunchDetailsViewEmbeddedL | ( | const HBufC8 * | aContentURI | ) |
Launches DRM Rights Manager UI embedded with details view related to given content.
const HBufC8 * aContentURI |
void | LaunchRightsManagerUiL | ( | const TDesC & | aParam16 | ) | [private] |
Launch rights manager UI
const TDesC & aParam16 |
HBufC * | MimeTypeFromURIL | ( | const TDesC8 & | aURI | ) | [private] |
Gets mimetype based on content URI
const TDesC8 & aURI |
IMPORT_C CDRMHelper * | NewL | ( | CCoeEnv & | aCoeEnv | ) | [static] |
Two-phased constructor.
CCoeEnv & aCoeEnv |
IMPORT_C CDRMHelper * | NewL | ( | CCoeEnv & | aCoeEnv, |
RFs & | aFs | |||
) | [static] |
IMPORT_C CDRMHelper * | NewL | ( | RFs & | aFs | ) | [static] |
RFs & aFs |
IMPORT_C CDRMHelper * | NewLC | ( | CCoeEnv & | aCoeEnv | ) | [static] |
CCoeEnv & aCoeEnv |
IMPORT_C void | OpenInfoUrlL | ( | CData & | aContent | ) |
Opens browser with InfoUrl of the content. Leaves with system-wide error code in case of error.
CData & aContent |
IMPORT_C void | OpenInfoUrlL | ( | TDesC & | aFileName | ) |
Opens browser with InfoUrl of the content. Leaves with system-wide error code in case of error.
TDesC & aFileName |
TInt | PerformCanSetAutomatedL | ( | const CData & | aContent, |
TBool & | aValue | |||
) | [private] |
Checks if content can be used as automated content
TInt | PerformRemoveAutomatedL | ( | const CData & | aContent, |
TBool | aActive | |||
) | [private] |
Unregisters automated content.
TInt | PerformSetAutomatedL | ( | const CData & | aContent, |
TBool | aActive | |||
) | [private] |
Register content as automated
TInt | PerformSetAutomatedSilentL | ( | const CData & | aContent, |
TBool | aActive | |||
) | [private] |
Register content as automated without showing any queries
TInt | PerformShowAutomatedNoteL | ( | const CData & | aContent | ) | [private] |
Display confirmation query about setting as automated. Does not actually register.
const CData & aContent |
void | PrepareSecondaryDisplayL | ( | CEikDialog & | aDialog, |
TInt | aResourceId, | |||
const TDesC & | aString = KNullDesC , | |||
TInt | aValue = -1 | |||
) | [private] |
Prepares secondary display for DRM notes
CEikDialog & aDialog | |
TInt aResourceId | |
const TDesC & aString = KNullDesC | |
TInt aValue = -1 |
IMPORT_C TInt | RegisterDataType | ( | const TDataType & | aDataType | ) |
RegisterDataType
Registers a datatype as a supported datatype.
const TDataType & aDataType |
TUint32 | RejectReasonL | ( | TInt | aIntent, |
const TDesC8 & | aContentUri | |||
) | [private] |
Returns the constraints which are invalid
IMPORT_C TInt | RemoveAutomated | ( | const TDesC8 & | aURI | ) |
const TDesC8 & aURI |
IMPORT_C TInt | RemoveAutomated | ( | const TDesC & | aFilename | ) |
const TDesC & aFilename |
IMPORT_C TInt | RemoveAutomated | ( | RFile & | aFileHandle | ) |
RFile & aFileHandle |
IMPORT_C TInt | RemoveAutomatedPassive | ( | const TDesC8 & | aURI | ) |
const TDesC8 & aURI |
IMPORT_C TInt | RemoveAutomatedPassive | ( | const TDesC & | aFilename | ) |
const TDesC & aFilename |
IMPORT_C TInt | RemoveAutomatedPassive | ( | RFile & | aFileHandle | ) |
RFile & aFileHandle |
IMPORT_C TInt | SetAutomated | ( | const TDesC8 & | aURI | ) |
const TDesC8 & aURI |
IMPORT_C TInt | SetAutomated | ( | const TDesC & | aFilename | ) |
const TDesC & aFilename |
IMPORT_C TInt | SetAutomated | ( | RFile & | aFileHandle | ) |
RFile & aFileHandle |
IMPORT_C TInt | SetAutomatedPassive | ( | const TDesC8 & | aURI | ) |
const TDesC8 & aURI |
IMPORT_C TInt | SetAutomatedPassive | ( | const TDesC & | aFilename | ) |
const TDesC & aFilename |
IMPORT_C TInt | SetAutomatedPassive | ( | RFile & | aFileHandle | ) |
RFile & aFileHandle |
IMPORT_C TInt | SetAutomatedSilent | ( | const TDesC8 & | aURI, |
TBool | aActive | |||
) |
IMPORT_C TInt | SetAutomatedSilent | ( | const TDesC & | aFilename, |
TBool | aActive | |||
) |
IMPORT_C TInt | SetAutomatedSilent | ( | RFile & | aFileHandle, |
TBool | aActive | |||
) |
IMPORT_C TInt | SetAutomatedType | ( | TDRMHelperAutomatedType | aAutomatedType | ) |
TDRMHelperAutomatedType aAutomatedType |
IMPORT_C void | SetCountLimitL | ( | TUint | aCounts | ) |
Set count limit for CheckRightsAmountL
TUint aCounts |
IMPORT_C void | SetPercentageLimitL | ( | TUint | aPercentage | ) |
Set percentage limit for CheckRightsAmountL. Applies to both counts and time.
TUint aPercentage |
IMPORT_C TInt | SetPreviewMediaType | ( | TDRMHelperPreviewMediaType | aMediaType | ) |
TDRMHelperPreviewMediaType aMediaType |
IMPORT_C void | SetTimeLimitL | ( | TUint | aDays | ) |
Set time limit in days for CheckRightsAmountL
TUint aDays |
IMPORT_C TInt | ShowAutomatedNote | ( | const TDesC8 & | aURI | ) |
const TDesC8 & aURI |
IMPORT_C TInt | ShowAutomatedNote | ( | const TDesC & | aFilename | ) |
const TDesC & aFilename |
IMPORT_C TInt | ShowAutomatedNote | ( | RFile & | aFileHandle | ) |
RFile & aFileHandle |
IMPORT_C TInt | ShowDRMUINotification2L | ( | TDRMHelperNotificationID | aTextId, |
const TDesC8 & | aURI | |||
) |
TDRMHelperNotificationID aTextId | The code for DRM general notification note. |
const TDesC8 & aURI | The DRM files URI, that caused the DRM error. |
IMPORT_C TInt | ShowDRMUINotification2L | ( | TDRMHelperNotificationID | aTextId, |
const TDesC & | aFileName | |||
) |
TDRMHelperNotificationID aTextId | The code for DRM general notification note. |
const TDesC & aFileName | The DRM file's name and path, that caused the DRM error. |
TInt | ShowFutureNoteL | ( | const HBufC * | aMimeType, |
CDRMRights * | aRightsObject | |||
) | [private] |
Displays info note of rights that are not yet valid
const HBufC * aMimeType | |
CDRMRights * aRightsObject |
TBool | SilentRightsAllowedL | ( | ) | [private] |
Check if the user has allowed silent rights
TPtrC | StripPathAndExtension | ( | const TDesC & | aFileName | ) | [private] |
Strip path and extension from given filename. Caller is responsible for freeing returned buffer
const TDesC & aFileName |
IMPORT_C TInt | SupportedDRMMethods2 | ( | TInt & | aDRMMethod, |
TDRMHelperOMALevel & | aOMALevel | |||
) |
SupportedDRMMethods
Returns the supported DRM protection methods and the OMA compliance level of the DRM engine
TInt & aDRMMethod | |
TDRMHelperOMALevel & aOMALevel |
IMPORT_C TInt | SupportedDataType | ( | const TInt | aIndex, |
TDataType & | aDataType | |||
) |
SupportedDataType
Returns a specific datatype which has been registered before by giving an index
IMPORT_C TInt | UnRegisterDataType | ( | const TInt | aIndex | ) |
UnRegisterDataType
Unregisters a datatype via its index.
const TInt aIndex |
EAutomatedTypeRingingTone | |
EAutomatedTypeMessageAlert | |
EAutomatedTypeEmailAlert | |
EAutomatedTypeIMAlert | |
EAutomatedTypeCalendarAlarm | |
EAutomatedTypeScreenSaver | |
EAutomatedTypeWallpaper | |
EAutomatedTypeTheme | |
EAutomatedTypeClockAlarm | |
EAutomatedTypeOther = KMaxTUint8 |
EForwardLock = 0x0001 | |
ECombinedDelivery = 0x0002 | |
ESeparateDelivery = 0x0004 | |
ESuperDistribution = 0x0008 |
ETActivateTextId = 1 | |
ETCountBasedErrorTextId = 2 | |
ETCountUsageReduceId = 3 | |
ETCountUsageReduceMediaId = 4 |
RPointerArray < CDRMHelperInfoNoteWrapper > | iNoteList | [private] |
CStringResourceReader * | iStringResourceReader | [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.