CScript Class Reference

class CScript : public CBase

Type holding data to be used while prompting.

The default or custom (runtime over-ridden) prompt handler requires the permission type to prompt and the user-selection to be returned to security manager for access permission check

rtsecmgrclient.lib

Inherits from

Public Member Functions
~CScript ()
IMPORT_C void ExternalizeL ( RWriteStream &)
TDesC Hash ()
TBool HashMatch (const TDesC &)
IMPORT_C void InternalizeL ( RReadStream &)
IMPORT_C CScript * NewL ( TPolicyID , TExecutableID )
IMPORT_C CScript * NewLC ( TPolicyID , TExecutableID )
IMPORT_C TPermGrant PermDenied ()
IMPORT_C void PermDenied ( RProviderArray &)
IMPORT_C TPermGrant PermGranted ()
IMPORT_C void PermGranted ( RProviderArray &)
IMPORT_C const CPermissionSet & PermissionSet ()
IMPORT_C CPermissionSet & PermissionSet ()
IMPORT_C TPolicyID PolicyID ()
IMPORT_C TExecutableID ScriptID ()
void SetHashMarkL (const TDesC &)
IMPORT_C void SetPermDenied ( TPermGrant )
IMPORT_C void SetPermDenied ( RProviderArray )
IMPORT_C void SetPermGranted ( TPermGrant )
IMPORT_C void SetPermGranted ( RProviderArray )
IMPORT_C void SetPermissionSet (const CPermissionSet &)
IMPORT_C const CScript & operator= (const CScript &)
Private Member Functions
CScript ()
CScript ( TPolicyID , TExecutableID )
CScript (const CScript &)
void ConstructL ()
Inherited Functions
CBase::CBase()
CBase::Delete(CBase *)
CBase::Extension_(TUint,TAny *&,TAny *)
CBase::operator new(TUint)
CBase::operator new(TUint,TAny *)
CBase::operator new(TUint,TLeave)
CBase::operator new(TUint,TLeave,TUint)
CBase::operator new(TUint,TUint)
CBase::~CBase()
Private Attributes
RProviderArray iAllowedProviders
RProviderArray iDeniedProviders
HBufC * iHashMark
TPermGrant iPermDenied
TPermGrant iPermGrant
CPermissionSet * iPermissionSet
TPolicyID iPolicyID
TAny * iReserved
TExecutableID iScriptID

Constructor & Destructor Documentation

CScript()

CScript ( ) [private, inline]

CScript(TPolicyID, TExecutableID)

CScript ( TPolicyID aPolicyID,
TExecutableID aScriptID
) [private, inline]

Parameters

TPolicyID aPolicyID
TExecutableID aScriptID

CScript(const CScript &)

CScript ( const CScript & aRhs ) [private]

Parameters

const CScript & aRhs

~CScript()

IMPORT_C ~CScript ( )

Member Functions Documentation

ConstructL()

void ConstructL ( ) [private]

ExternalizeL(RWriteStream &)

IMPORT_C void ExternalizeL ( RWriteStream & aSink ) const

Externalizes script data to stream

Parameters

RWriteStream & aSink

Hash()

TDesC Hash ( ) [inline]

HashMatch(const TDesC &)

TBool HashMatch ( const TDesC & aHashValue =  KNullDesC ) const [inline]

Parameters

const TDesC & aHashValue =  KNullDesC

InternalizeL(RReadStream &)

IMPORT_C void InternalizeL ( RReadStream & aSource )

Internalizes script data from stream

Parameters

RReadStream & aSource

NewL(TPolicyID, TExecutableID)

IMPORT_C CScript * NewL ( TPolicyID aPolicyID,
TExecutableID aScriptID
) [static]

Two-phased constructor

Constructs a CScript instance

Parameters

TPolicyID aPolicyID TPolicyID policy identifier of the script
TExecutableID aScriptID TExecutableID script identifier

NewLC(TPolicyID, TExecutableID)

IMPORT_C CScript * NewLC ( TPolicyID aPolicyID,
TExecutableID aScriptID
) [static]

Two-phased constructor

Constructs a CScript instance and leaves the created instance on cleanupstack

Parameters

TPolicyID aPolicyID TPolicyID policy identifier of the script
TExecutableID aScriptID TExecutableID script identifier

PermDenied()

IMPORT_C TPermGrant PermDenied ( ) const

PermDenied(RProviderArray &)

IMPORT_C void PermDenied ( RProviderArray & aDeniedProviders )

Parameters

RProviderArray & aDeniedProviders

PermGranted()

IMPORT_C TPermGrant PermGranted ( ) const

PermGranted(RProviderArray &)

IMPORT_C void PermGranted ( RProviderArray & aAllowedProviders )

Parameters

RProviderArray & aAllowedProviders

PermissionSet()

IMPORT_C const CPermissionSet & PermissionSet ( ) const

PermissionSet()

IMPORT_C CPermissionSet & PermissionSet ( )

PolicyID()

IMPORT_C TPolicyID PolicyID ( ) const

ScriptID()

IMPORT_C TExecutableID ScriptID ( ) const

SetHashMarkL(const TDesC &)

void SetHashMarkL ( const TDesC & aHashMark ) [inline]

Parameters

const TDesC & aHashMark

SetPermDenied(TPermGrant)

IMPORT_C void SetPermDenied ( TPermGrant aPermDenied )

Parameters

TPermGrant aPermDenied

SetPermDenied(RProviderArray)

IMPORT_C void SetPermDenied ( RProviderArray aPermDeniedProviders )

Parameters

RProviderArray aPermDeniedProviders

SetPermGranted(TPermGrant)

IMPORT_C void SetPermGranted ( TPermGrant aPermGrant )

Parameters

TPermGrant aPermGrant

SetPermGranted(RProviderArray)

IMPORT_C void SetPermGranted ( RProviderArray aPermGrantProviders )

Parameters

RProviderArray aPermGrantProviders

SetPermissionSet(const CPermissionSet &)

IMPORT_C void SetPermissionSet ( const CPermissionSet & aPermissionSet )

Parameters

const CPermissionSet & aPermissionSet

operator=(const CScript &)

IMPORT_C const CScript & operator= ( const CScript & aRhs )

Parameters

const CScript & aRhs

Member Data Documentation

RProviderArray iAllowedProviders

RProviderArray iAllowedProviders [private]

RProviderArray iDeniedProviders

RProviderArray iDeniedProviders [private]

HBufC * iHashMark

HBufC * iHashMark [private]

TPermGrant iPermDenied

TPermGrant iPermDenied [private]

TPermGrant iPermGrant

TPermGrant iPermGrant [private]

CPermissionSet * iPermissionSet

CPermissionSet * iPermissionSet [private]

TPolicyID iPolicyID

TPolicyID iPolicyID [private]

TAny * iReserved

TAny * iReserved [private]

TExecutableID iScriptID

TExecutableID iScriptID [private]