os/security/authorisation/userpromptservice/policies/test/testpolicyevaluator/source/testpolicyevaluator.h
Update contrib.
2 * Copyright (c) 2007-2009 Nokia Corporation and/or its subsidiary(-ies).
4 * This component and the accompanying materials are made available
5 * under the terms of the License "Eclipse Public License v1.0"
6 * which accompanies this distribution, and is available
7 * at the URL "http://www.eclipse.org/legal/epl-v10.html".
9 * Initial Contributors:
10 * Nokia Corporation - initial contribution.
15 * refpolicyevaluator.h
26 #ifndef TESTPOLICYEVALUATOR_H
27 #define TESTPOLICYEVALUATOR_H
32 #include <ups/policyevaluator.h>
34 using namespace UserPromptService;
37 Test/Reference implementation of a policy evaluator.
39 class CTestPolicyEvaluator : public CPolicyEvaluator
42 static CPolicyEvaluator* CreatePolicyEvaluatorL();
44 // From UserPromptService::CPolicyEvaluator
45 void GenerateFingerprints(const CPromptRequest& aRequest, const CPolicy& aPolicy,
46 RPointerArray<CFingerprint>& aFingerprints, const CClientEntity*& aClientEntity,
47 const TAny*& aDialogCreatorParams,
48 TRequestStatus& aStatus);
50 TBool ForcePromptL(const CDecisionRecord& aDecision, TUint& aNewEvaluatorInfo);
56 TInt RunError(TInt aError);
58 ~CTestPolicyEvaluator();
60 CTestPolicyEvaluator();
62 void SetClientEntityL();
64 const CPromptRequest* iRequest;
65 const CPolicy* iPolicy;
66 RPointerArray<CFingerprint>* iFingerprints;
67 CClientEntity* iClientEntity;
68 const CClientEntity** iClientEntityPtr; ///< UPS server's pointer to client entity
70 TRequestStatus* iClientStatus; ///< Request object to complete after generating fingerprints
71 CMessageDigest* iDigest; ///< Message digest used to create fingerprint
74 #endif // TESTPOLICYEVALUATOR_H