sl@0: /* sl@0: * Copyright (c) 2007-2009 Nokia Corporation and/or its subsidiary(-ies). sl@0: * All rights reserved. sl@0: * This component and the accompanying materials are made available sl@0: * under the terms of the License "Eclipse Public License v1.0" sl@0: * which accompanies this distribution, and is available sl@0: * at the URL "http://www.eclipse.org/legal/epl-v10.html". sl@0: * sl@0: * Initial Contributors: sl@0: * Nokia Corporation - initial contribution. sl@0: * sl@0: * Contributors: sl@0: * sl@0: * Description: sl@0: * sl@0: */ sl@0: sl@0: sl@0: /** sl@0: @file sl@0: @test sl@0: */ sl@0: sl@0: #if (!defined __UPSDB_STEP_H__) sl@0: #define __UPSDB_STEP_H__ sl@0: #include sl@0: #include "tupsintegstepbase.h" sl@0: #include "tups_clientapi_sysserver.h" sl@0: #include "tupsproperty.h" sl@0: #include sl@0: using namespace UserPromptService; sl@0: sl@0: /** sl@0: Class for storing a single instance of a UPS Database Request sl@0: */ sl@0: class CUpsDbRequest sl@0: { sl@0: public: sl@0: static CUpsDbRequest* NewL(); sl@0: ~CUpsDbRequest(); sl@0: sl@0: TBuf<30> iOperation; sl@0: TInt iClientSid; sl@0: TInt iEvaluatorId; sl@0: TInt iServiceId; sl@0: TInt iServerSid; sl@0: TBuf8<32> iFingerprint; sl@0: TBuf8<50> iClientEntity; sl@0: TBuf<60> iDescription; sl@0: TBuf<3> iDecisionResult; sl@0: TInt iMajorPolicyVersion; sl@0: TInt iRecordId; sl@0: TInt iEvaluatorInfo; sl@0: TInt iExpectedDecisionCount; sl@0: sl@0: /** sl@0: * Pointer to the Decision Filter object sl@0: */ sl@0: CDecisionFilter* iDecisionFilter; sl@0: sl@0: protected: sl@0: CUpsDbRequest(); sl@0: void ConstructL(); sl@0: }; sl@0: sl@0: sl@0: class CUPSDbManagementStep : public CTUpsIntegStepBase sl@0: { sl@0: public: sl@0: CUPSDbManagementStep(); sl@0: ~CUPSDbManagementStep(); sl@0: virtual TVerdict doTestStepPreambleL(); sl@0: virtual TVerdict doTestStepL(); sl@0: virtual TVerdict doTestStepPostambleL(); sl@0: TBool CheckDecisionRecordL(TInt aIndex, const CDecisionRecord& aRecord); sl@0: HBufC8* StringToHexLC(const TDes8 &aString); sl@0: HBufC8* StringToBinaryLC(const TDes8 &aString); sl@0: sl@0: protected: sl@0: // This array will hold all the request data and corresponding Decision Filter sl@0: RPointerArray iArraySersToRequest; sl@0: RUpsManagement iUpsManager; sl@0: TInt iStepRepeat; sl@0: TName iTEFServerName; sl@0: TInt32 iExpectedClientSid; sl@0: }; sl@0: sl@0: _LIT(KUPSDbManagementStep,"UPSDbManagementStep"); sl@0: sl@0: #endif sl@0: