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 & aFileHandle File handle for which usage rights is checked.

ConstructL()

void ConstructL ( ) [private]

By default Symbian 2nd phase constructor is private.

GetCount(TUint32 &)

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

Parameters

TUint32 & aCount Counts left.

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

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

Parameters

RFile & aFileHandle File handle for which usage rights info is loaded.
TBool & aRightsValid True if the rights are valid
TBool & aIsSeparateDeliveryNS True if the file is a separate delivery drm file non-supersitributable
TBool & aIsProtected True if the file is protected

GetEndTime(TTime &)

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

Parameters

TTime & aEndTime End time.

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

void GetExpireStatus ( 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 & aAboutToExpire Boolean telling if the rigths are about to expire or not.
TSVGTExpireConstraint & aConstraint Constraint 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 & aCountLeft Usage counts left (only if count is about to expire)
TInt & aDaysLeft Usage days left (only if time is about to expire)

GetInterval(TTimeIntervalSeconds &)

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

Parameters

TTimeIntervalSeconds & aInterval Interval.

GetIntervalStart(TTime &)

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

Parameters

TTime & aStartTime Start time.

GetStartTime(TTime &)

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

Parameters

TTime & aStartTime Start time.

GetUsageRightsStatus(TSVGTRightsStatus &)

void GetUsageRightsStatus ( 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 & aFileHandle File handle for which usage rights info is loaded.

IsProtected()

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

LoadUsageRigthsInfoL(RFile &)

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

Parameters

RFile & aFileHandle File 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]