#include <ups/upstypes.h>
class UserPromptService::CDecisionRecord : public CBase |
Public Member Functions | |
---|---|
~CDecisionRecord() | |
IMPORT_C void | ExternalizeL(RWriteStream &) |
IMPORT_C void | InternalizeL(RReadStream &) |
IMPORT_C CDecisionRecord * | 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 * | 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() |
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.
TUint16 | iMajorPolicyVersion |
Major policy version which this decision record possesses to.
IMPORT_C void | ExternalizeL | ( | RWriteStream & | aStream | ) | const |
Externalise this CDecisionRecord object to the specified stream.
IMPORT_C void | InternalizeL | ( | RReadStream & | aStream | ) |
Internalise this CDecisionRecord object from the specified stream.
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 TUint8 | aResult, | |||
const TUint16 & | aMajorPolicyVersion, | |||
const TUint32 | aEvaluatorInfo, | |||
const TUint32 & | aRecordId = 0 | |||
) | [static] |
Creates a decision record object. The function leaves, if creation of the record object fails.
Parameter | Description |
---|---|
aClientSid | Secure Id of client application |
aEvaluatorId | UID for the policy evaluator DLL |
aServiceId | UID for service e.g. sms, mms, telephony, gprs |
aServerSid | Secure Id for the system server that the decision applies to |
aFingerprint | Hash of the destination and/or opaque data. Maximum length is 32 bytes. |
aClientEntity | The name of the entity within the client that requested the service. Maximum length is 32 bytes. |
aDescription | A copy of description and/or opaque. |
aResult | Whether the request should be approved (=1) or denied (=0) |
aMajorPolicyVersion | The major version of the policy file. |
aEvaluatorInfo | Policy evaluator specific data |
aRecordId | An auto-incrementing record number. |
Returns: A pointer to the newly allocated decision record object, if creation is successful.
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 TUint8 | aResult, | |||
const TUint16 & | aMajorPolicyVersion, | |||
const TUint32 | aEvaluatorInfo, | |||
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.
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.