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 |
#ifndef UPSPROPERTY_H
|
sl@0
|
25 |
#define UPSPROPERTY_H
|
sl@0
|
26 |
|
sl@0
|
27 |
// interval between instances of either a PE or a DC. This value is added to the indexes below
|
sl@0
|
28 |
static const TInt KInstanceInterval = 100;
|
sl@0
|
29 |
|
sl@0
|
30 |
// policy evaluator indexes
|
sl@0
|
31 |
static const TInt KPe_Start = 0;
|
sl@0
|
32 |
static const TInt KPe_Status = 1;
|
sl@0
|
33 |
static const TInt KPe_RunningInstance = 2;
|
sl@0
|
34 |
static const TInt KPe_ClientSid = 3;
|
sl@0
|
35 |
static const TInt KPe_ServerSid = 4;
|
sl@0
|
36 |
static const TInt KPe_Leave = 5;
|
sl@0
|
37 |
static const TInt KPe_Error = 6;
|
sl@0
|
38 |
static const TInt KPe_ServiceId = 7;
|
sl@0
|
39 |
static const TInt KPe_ForcePrompt = 8;
|
sl@0
|
40 |
static const TInt KPe_EvaluatorInfo = 9;
|
sl@0
|
41 |
static const TInt KPe_HoldEvaluatorOpen = 10;
|
sl@0
|
42 |
|
sl@0
|
43 |
// dialog creator indexes
|
sl@0
|
44 |
static const TInt KDc_Start = 50;
|
sl@0
|
45 |
static const TInt KDc_Status = 1;
|
sl@0
|
46 |
static const TInt KDc_RunningInstance = 2;
|
sl@0
|
47 |
static const TInt KDc_ClientSid = 3;
|
sl@0
|
48 |
static const TInt KDc_ServerSid = 4;
|
sl@0
|
49 |
static const TInt KDc_Leave = 5;
|
sl@0
|
50 |
static const TInt KDc_Error = 6;
|
sl@0
|
51 |
static const TInt KDc_ServiceId = 7;
|
sl@0
|
52 |
static const TInt KDc_UpsRequestedButtons = 20;
|
sl@0
|
53 |
static const TInt KDc_WhichButtonToPress = 21;
|
sl@0
|
54 |
static const TInt KDc_HoldPrepareDialogOpen = 22;
|
sl@0
|
55 |
static const TInt KDc_HoldDisplayDialogOpen = 23;
|
sl@0
|
56 |
static const TInt KDc_SelectFingerprint = 24;
|
sl@0
|
57 |
|
sl@0
|
58 |
static const TInt32 KPropertyCreator=0x101F7784;
|
sl@0
|
59 |
static const TUid KPropertyCreatorUid={KPropertyCreator};
|
sl@0
|
60 |
|
sl@0
|
61 |
class CUpsProperty : public CBase
|
sl@0
|
62 |
{
|
sl@0
|
63 |
public:
|
sl@0
|
64 |
enum TType
|
sl@0
|
65 |
{
|
sl@0
|
66 |
EPolicyEvaluator,
|
sl@0
|
67 |
EDialogCreator
|
sl@0
|
68 |
};
|
sl@0
|
69 |
|
sl@0
|
70 |
static CUpsProperty* NewL(const TUid& aCategory);
|
sl@0
|
71 |
virtual ~CUpsProperty() {};
|
sl@0
|
72 |
|
sl@0
|
73 |
void GetL(TInt aInstanceNumber, TInt aPropertyKey, TType aType, TInt& aValue);
|
sl@0
|
74 |
void GetL(TInt aInstanceNumber, TInt aPropertyKey, TType aType, TDes& aValue);
|
sl@0
|
75 |
void SetL(TInt aInstanceNumber, TInt aPropertyKey, TType aType, TInt aValue);
|
sl@0
|
76 |
void SetL(TInt aInstanceNumber, TInt aPropertyKey, TType aType, TDes& aValue);
|
sl@0
|
77 |
|
sl@0
|
78 |
TInt GetPropertyKey(TInt aPropertyKey, TInt aStart, TInt aInterval, TInt aInstanceNumber);
|
sl@0
|
79 |
|
sl@0
|
80 |
protected:
|
sl@0
|
81 |
TUid iCategory;
|
sl@0
|
82 |
|
sl@0
|
83 |
private:
|
sl@0
|
84 |
CUpsProperty(const TUid& aCategory);
|
sl@0
|
85 |
};
|
sl@0
|
86 |
|
sl@0
|
87 |
|
sl@0
|
88 |
#endif
|