Symbian
Symbian Developer Library

SYMBIAN OS V9.4

Feedback

[Index] [Previous] [Next]

#include <e32cmn.h>

Struct TStaticSecurityPolicy

struct TStaticSecurityPolicy;

Description

Structure for compile-time initialisation of a security policy.

This structure behaves in the same way as a TSecurityPolicy object but has the advantage that it may be initialised at compile time. E.g. the following line defines a security policy 'KSecurityPolictReadUserData' which checks ReadUserData capability.

_LIT_SECURITY_POLICY_C1(KSecurityPolictReadUserData,ECapabilityReadUserData)

Or, an array of security policies may be created like this:

static const TStaticSecurityPolicy MyPolicies[] = 
    {
    _INIT_SECURITY_POLICY_C1(ECapabilityReadUserData),
    _INIT_SECURITY_POLICY_PASS(),
    _INIT_SECURITY_POLICY_S0(0x1234567)
    }

This class should not be initialised directly, instead one of the following macros should be used:

Members

Defined in TStaticSecurityPolicy:

See also:


Member functions


operator &()const

inline const TSecurityPolicy* operator &() const;

Description

'Address of' operator which generates a TSecurityPolicy*

Return value

const TSecurityPolicy *

A pointer of type TSecurityPolicy which refers to this object


operator const TSecurityPolicy &()const

inline operator const TSecurityPolicy &() const;

Description

'Reference of' operator which generates a TSecurityPolicy&

Return value

A reference of type TSecurityPolicy which refers to this object


operator()()const

inline const TSecurityPolicy& operator()() const;

Description

A method to explicity generate a TSecurityPolicy reference.

Return value

const TSecurityPolicy &

A reference of type TSecurityPolicy which refers to this object


CheckPolicy(RProcess,const char *)const

inline TBool CheckPolicy(RProcess aProcess, const char *aDiagnostic=0) const;

Description

Parameters

RProcess aProcess

const char *aDiagnostic

Return value

TBool


CheckPolicy(RThread,const char *)const

inline TBool CheckPolicy(RThread aThread, const char *aDiagnostic=0) const;

Description

Parameters

RThread aThread

const char *aDiagnostic

Return value

TBool


CheckPolicy(RMessagePtr2,const char *)const

inline TBool CheckPolicy(RMessagePtr2 aMsgPtr, const char *aDiagnostic=0) const;

Description

Parameters

RMessagePtr2 aMsgPtr

const char *aDiagnostic

Return value

TBool


CheckPolicyCreator(const char *)const

inline TBool CheckPolicyCreator(const char *aDiagnostic=0) const;

Description

Parameters

const char *aDiagnostic

Return value

TBool