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.
24 #if (!defined __UPSDB_STEP_H__)
25 #define __UPSDB_STEP_H__
26 #include <test/testexecutestepbase.h>
27 #include "tupsintegstepbase.h"
28 #include "tups_clientapi_sysserver.h"
29 #include "tupsproperty.h"
30 #include <ups/upsclient.h>
31 using namespace UserPromptService;
34 Class for storing a single instance of a UPS Database Request
39 static CUpsDbRequest* NewL();
47 TBuf8<32> iFingerprint;
48 TBuf8<50> iClientEntity;
49 TBuf<60> iDescription;
50 TBuf<3> iDecisionResult;
51 TInt iMajorPolicyVersion;
54 TInt iExpectedDecisionCount;
57 * Pointer to the Decision Filter object
59 CDecisionFilter* iDecisionFilter;
67 class CUPSDbManagementStep : public CTUpsIntegStepBase
70 CUPSDbManagementStep();
71 ~CUPSDbManagementStep();
72 virtual TVerdict doTestStepPreambleL();
73 virtual TVerdict doTestStepL();
74 virtual TVerdict doTestStepPostambleL();
75 TBool CheckDecisionRecordL(TInt aIndex, const CDecisionRecord& aRecord);
76 HBufC8* StringToHexLC(const TDes8 &aString);
77 HBufC8* StringToBinaryLC(const TDes8 &aString);
80 // This array will hold all the request data and corresponding Decision Filter
81 RPointerArray<CUpsDbRequest> iArraySersToRequest;
82 RUpsManagement iUpsManager;
85 TInt32 iExpectedClientSid;
88 _LIT(KUPSDbManagementStep,"UPSDbManagementStep");