sl@0
|
1 |
/*
|
sl@0
|
2 |
* Copyright (c) 2007-2009 Nokia Corporation and/or its subsidiary(-ies).
|
sl@0
|
3 |
* All rights reserved.
|
sl@0
|
4 |
* This component and the accompanying materials are made available
|
sl@0
|
5 |
* under the terms of the License "Eclipse Public License v1.0"
|
sl@0
|
6 |
* which accompanies this distribution, and is available
|
sl@0
|
7 |
* at the URL "http://www.eclipse.org/legal/epl-v10.html".
|
sl@0
|
8 |
*
|
sl@0
|
9 |
* Initial Contributors:
|
sl@0
|
10 |
* Nokia Corporation - initial contribution.
|
sl@0
|
11 |
*
|
sl@0
|
12 |
* Contributors:
|
sl@0
|
13 |
*
|
sl@0
|
14 |
* Description:
|
sl@0
|
15 |
*
|
sl@0
|
16 |
*/
|
sl@0
|
17 |
|
sl@0
|
18 |
|
sl@0
|
19 |
/**
|
sl@0
|
20 |
@file
|
sl@0
|
21 |
@test
|
sl@0
|
22 |
*/
|
sl@0
|
23 |
|
sl@0
|
24 |
#if (!defined __UPSDB_STEP_H__)
|
sl@0
|
25 |
#define __UPSDB_STEP_H__
|
sl@0
|
26 |
#include <test/testexecutestepbase.h>
|
sl@0
|
27 |
#include "tupsintegstepbase.h"
|
sl@0
|
28 |
#include "tups_clientapi_sysserver.h"
|
sl@0
|
29 |
#include "tupsproperty.h"
|
sl@0
|
30 |
#include <ups/upsclient.h>
|
sl@0
|
31 |
using namespace UserPromptService;
|
sl@0
|
32 |
|
sl@0
|
33 |
/**
|
sl@0
|
34 |
Class for storing a single instance of a UPS Database Request
|
sl@0
|
35 |
*/
|
sl@0
|
36 |
class CUpsDbRequest
|
sl@0
|
37 |
{
|
sl@0
|
38 |
public:
|
sl@0
|
39 |
static CUpsDbRequest* NewL();
|
sl@0
|
40 |
~CUpsDbRequest();
|
sl@0
|
41 |
|
sl@0
|
42 |
TBuf<30> iOperation;
|
sl@0
|
43 |
TInt iClientSid;
|
sl@0
|
44 |
TInt iEvaluatorId;
|
sl@0
|
45 |
TInt iServiceId;
|
sl@0
|
46 |
TInt iServerSid;
|
sl@0
|
47 |
TBuf8<32> iFingerprint;
|
sl@0
|
48 |
TBuf8<50> iClientEntity;
|
sl@0
|
49 |
TBuf<60> iDescription;
|
sl@0
|
50 |
TBuf<3> iDecisionResult;
|
sl@0
|
51 |
TInt iMajorPolicyVersion;
|
sl@0
|
52 |
TInt iRecordId;
|
sl@0
|
53 |
TInt iEvaluatorInfo;
|
sl@0
|
54 |
TInt iExpectedDecisionCount;
|
sl@0
|
55 |
|
sl@0
|
56 |
/**
|
sl@0
|
57 |
* Pointer to the Decision Filter object
|
sl@0
|
58 |
*/
|
sl@0
|
59 |
CDecisionFilter* iDecisionFilter;
|
sl@0
|
60 |
|
sl@0
|
61 |
protected:
|
sl@0
|
62 |
CUpsDbRequest();
|
sl@0
|
63 |
void ConstructL();
|
sl@0
|
64 |
};
|
sl@0
|
65 |
|
sl@0
|
66 |
|
sl@0
|
67 |
class CUPSDbManagementStep : public CTUpsIntegStepBase
|
sl@0
|
68 |
{
|
sl@0
|
69 |
public:
|
sl@0
|
70 |
CUPSDbManagementStep();
|
sl@0
|
71 |
~CUPSDbManagementStep();
|
sl@0
|
72 |
virtual TVerdict doTestStepPreambleL();
|
sl@0
|
73 |
virtual TVerdict doTestStepL();
|
sl@0
|
74 |
virtual TVerdict doTestStepPostambleL();
|
sl@0
|
75 |
TBool CheckDecisionRecordL(TInt aIndex, const CDecisionRecord& aRecord);
|
sl@0
|
76 |
HBufC8* StringToHexLC(const TDes8 &aString);
|
sl@0
|
77 |
HBufC8* StringToBinaryLC(const TDes8 &aString);
|
sl@0
|
78 |
|
sl@0
|
79 |
protected:
|
sl@0
|
80 |
// This array will hold all the request data and corresponding Decision Filter
|
sl@0
|
81 |
RPointerArray<CUpsDbRequest> iArraySersToRequest;
|
sl@0
|
82 |
RUpsManagement iUpsManager;
|
sl@0
|
83 |
TInt iStepRepeat;
|
sl@0
|
84 |
TName iTEFServerName;
|
sl@0
|
85 |
TInt32 iExpectedClientSid;
|
sl@0
|
86 |
};
|
sl@0
|
87 |
|
sl@0
|
88 |
_LIT(KUPSDbManagementStep,"UPSDbManagementStep");
|
sl@0
|
89 |
|
sl@0
|
90 |
#endif
|
sl@0
|
91 |
|