CSVGTDrmHelper Class Reference

class CSVGTDrmHelper : public CBase

DRM helper for SVG files.

SVGTUIControl.dll
Since
3.0

Inherits from

Constructor & Destructor Documentation

CSVGTDrmHelper()

CSVGTDrmHelper()[private]

C++ default constructor.

~CSVGTDrmHelper()

~CSVGTDrmHelper()[virtual]

Destructor.

Member Functions Documentation

CanSetAutomated()

TBool CanSetAutomated()const
Checks if given content can be set as an automated content.
Since
3.0

CheckRightsAmountL(RFile &)

TInt CheckRightsAmountL(RFile &aFileHandle)
This Function checks the rights associated with the file.
Since
3.0

Parameters

RFile & aFileHandleFile handle for which usage rights is checked.

ConstructL()

voidConstructL()[private]

By default Symbian 2nd phase constructor is private.

GetCount(TUint32 &)

TInt GetCount(TUint32 &aCount)
Gets usage count.
Since
3.0

Parameters

TUint32 & aCountCounts left.

GetDrmDetailsL(RFile &, TBool &, TBool &, TBool &)

voidGetDrmDetailsL(RFile &aFileHandle,
TBool &aRightsValid,
TBool &aIsSeparateDeliveryNS,
TBool &aIsProtected
)
This Function gets the drm details needed for thumbnail generation.
Since
3.0

Parameters

RFile & aFileHandleFile handle for which usage rights info is loaded.
TBool & aRightsValidTrue if the rights are valid
TBool & aIsSeparateDeliveryNSTrue if the file is a separate delivery drm file non-supersitributable
TBool & aIsProtectedTrue if the file is protected

GetEndTime(TTime &)

TInt GetEndTime(TTime &aEndTime)
Gets end time of time based rights.
Since
3.0

Parameters

TTime & aEndTimeEnd time.

GetExpireStatus(TBool &, TSVGTExpireConstraint &, TInt &, TInt &)

voidGetExpireStatus(TBool &aAboutToExpire,
TSVGTExpireConstraint &aConstraint,
TInt &aCountLeft,
TInt &aDaysLeft
)
Checks if the usage rigths are about to expire. If they are, returns info about the rights contraints that are about to expire.
Since
3.0

Parameters

TBool & aAboutToExpireBoolean telling if the rigths are about to expire or not.
TSVGTExpireConstraint & aConstraintConstraint that is about to expire: ESVGTCount: Usage count about to expire ESVGTTime: Usage time about to expire ESVGTCountAndTime: Usage count and time about to expire
TInt & aCountLeftUsage counts left (only if count is about to expire)
TInt & aDaysLeftUsage days left (only if time is about to expire)

GetInterval(TTimeIntervalSeconds &)

TInt GetInterval(TTimeIntervalSeconds &aInterval)
Gets interval time constraint.
Since
3.0

Parameters

TTimeIntervalSeconds & aIntervalInterval.

GetIntervalStart(TTime &)

TInt GetIntervalStart(TTime &aStartTime)
Gets start time of activated interval constraint.
Since
3.0

Parameters

TTime & aStartTimeStart time.

GetStartTime(TTime &)

TInt GetStartTime(TTime &aStartTime)
Gets start time of time based rights.
Since
3.0

Parameters

TTime & aStartTimeStart time.

GetUsageRightsStatus(TSVGTRightsStatus &)

voidGetUsageRightsStatus(TSVGTRightsStatus &aStatus)
Gets usage rigths status.
Since
3.0

Parameters

TSVGTRightsStatus & aStatus

IsPreviewL(RFile &)

TBool IsPreviewL(RFile &aFileHandle)
This Function checks whether the file has preview rights.
Since
3.0

Parameters

RFile & aFileHandleFile handle for which usage rights info is loaded.

IsProtected()

TBool IsProtected()const
Provides info about files DRM protection status.
Since
3.0

LoadUsageRigthsInfoL(RFile &)

voidLoadUsageRigthsInfoL(RFile &aFileHandle)
Loads usage rights information for a svg file using CDRMHelper. The loaded constraint is CContentAccess::EPlay.
Since
3.0

Parameters

RFile & aFileHandleFile handle for which usage rights info is loaded.

NewL()

CSVGTDrmHelper *NewL()[static]

Two-phased constructor.

NewLC()

CSVGTDrmHelper *NewLC()[static]

Two-phased constructor.

SendingAllowed()

TBool SendingAllowed()const
Checks if sending of the file is allowed.
Since
3.0

Member Data Documentation

TBool iCanSetAutomated

TBool iCanSetAutomated[private]

CDRMHelper * iDrmHelper

CDRMHelper *iDrmHelper[private]

CCoeEnv * iEnv

CCoeEnv *iEnv[private]

TBool iExpired

TBool iExpired[private]

TInt iIsSeparateDelivery

TInt iIsSeparateDelivery[private]

TBool iProtected

TBool iProtected[private]

CDRMHelperRightsConstraints * iRightsConstraints

CDRMHelperRightsConstraints *iRightsConstraints[private]

TBool iSendingAllowed

TBool iSendingAllowed[private]