UserPromptService::CDecisionRecord Class Reference

#include <ups/upstypes.h>

Link against: upsmanagement.lib

class UserPromptService::CDecisionRecord : public CBase

Inherits from

  • UserPromptService::CDecisionRecord

    Detailed Description

    Stores all the field values in a decision database row. All member variables of the class are constant and public. Therefore, the members are assigned during construction and then they can be accessible directly, however, it is not possible to modify them.

    Member Attribute Documentation

    iClientEntity

    RBuf8 iClientEntity

    Name of the entity within client

    iClientSid

    TSecureId iClientSid

    Secure Id of client application

    iDescription

    RBuf iDescription

    A copy of description and/or opaque

    iEvaluatorId

    TUid iEvaluatorId

    UID for the policy evaluator DLL

    iEvaluatorInfo

    TUint32 iEvaluatorInfo

    Policy evaluator specific data

    iFingerprint

    RBuf8 iFingerprint

    Fingerprint

    iMajorPolicyVersion

    TUint16 iMajorPolicyVersion

    Major policy version which this decision record possesses to.

    iRecordId

    TUint32 iRecordId

    Unique decision record Id.

    iResult

    TUint8 iResult

    Whether the request should be approved

    iServerSid

    TSecureId iServerSid

    Secure Id for system server

    iServiceId

    TUid iServiceId

    UID for service

    Constructor & Destructor Documentation

    ~CDecisionRecord ( )

    ~CDecisionRecord()

    Destructor for the decision record object

    Member Function Documentation

    ExternalizeL ( RWriteStream & )

    IMPORT_C voidExternalizeL(RWriteStream &aStream)const

    Externalise this CDecisionRecord object to the specified stream.

    InternalizeL ( RReadStream & )

    IMPORT_C voidInternalizeL(RReadStream &aStream)

    Internalise this CDecisionRecord object from the specified stream.

    NewL ( const TSecureId &, const TUid &, const TUid &, const TSecureId &, const TDesC8 &, const TDesC8 &, const TDesC &, const TUint8, const TUint16 &, const TUint32, const TUint32 & )

    IMPORT_C CDecisionRecord *NewL(const TSecureId &aClientSid,
    const TUid &aEvaluatorId,
    const TUid &aServiceId,
    const TSecureId &aServerSid,
    const TDesC8 &aFingerprint,
    const TDesC8 &aClientEntity,
    const TDesC &aDescription,
    const TUint8aResult,
    const TUint16 &aMajorPolicyVersion,
    const TUint32aEvaluatorInfo,
    const TUint32 &aRecordId = 0
    )[static]

    Creates a decision record object. The function leaves, if creation of the record object fails.

    ParameterDescription
    aClientSidSecure Id of client application
    aEvaluatorIdUID for the policy evaluator DLL
    aServiceIdUID for service e.g. sms, mms, telephony, gprs
    aServerSidSecure Id for the system server that the decision applies to
    aFingerprintHash of the destination and/or opaque data. Maximum length is 32 bytes.
    aClientEntityThe name of the entity within the client that requested the service. Maximum length is 32 bytes.
    aDescriptionA copy of description and/or opaque.
    aResultWhether the request should be approved (=1) or denied (=0)
    aMajorPolicyVersionThe major version of the policy file.
    aEvaluatorInfoPolicy evaluator specific data
    aRecordIdAn auto-incrementing record number.

    Returns: A pointer to the newly allocated decision record object, if creation is successful.

    NewLC ( const TSecureId &, const TUid &, const TUid &, const TSecureId &, const TDesC8 &, const TDesC8 &, const TDesC &, const TUint8, const TUint16 &, const TUint32, const TUint32 & )

    IMPORT_C CDecisionRecord *NewLC(const TSecureId &aClientSid,
    const TUid &aEvaluatorId,
    const TUid &aServiceId,
    const TSecureId &aServerSid,
    const TDesC8 &aFingerprint,
    const TDesC8 &aClientEntity,
    const TDesC &aDescription,
    const TUint8aResult,
    const TUint16 &aMajorPolicyVersion,
    const TUint32aEvaluatorInfo,
    const TUint32 &aRecordId = 0
    )[static]

    Creates a decision record object. The function leaves, if creation of the record object fails.

    See also: CDecisionRecord::NewL()

    Returns: A pointer to the newly allocated decision record object, if creation is successful. The pointer is also put onto the cleanup stack.

    NewLC ( )

    IMPORT_C CDecisionRecord *NewLC()[static]

    Creates a decision record object. The function leaves, if creation of the record object fails.

    Returns: A pointer to the newly allocated decision record object, if creation is successful. The pointer is also put onto the cleanup stack.