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 |
* Implementation data shared between UPS client and server implementations,
|
sl@0
|
16 |
* but not with the UPS client.
|
sl@0
|
17 |
*
|
sl@0
|
18 |
*/
|
sl@0
|
19 |
|
sl@0
|
20 |
|
sl@0
|
21 |
/**
|
sl@0
|
22 |
@file
|
sl@0
|
23 |
@internalComponent
|
sl@0
|
24 |
@released
|
sl@0
|
25 |
*/
|
sl@0
|
26 |
|
sl@0
|
27 |
|
sl@0
|
28 |
#ifndef UPSCOMMON_H
|
sl@0
|
29 |
#define UPSCOMMON_H
|
sl@0
|
30 |
|
sl@0
|
31 |
#include <e32ver.h>
|
sl@0
|
32 |
#include <e32uid.h>
|
sl@0
|
33 |
|
sl@0
|
34 |
#ifndef BULLSEYE_OFF
|
sl@0
|
35 |
#ifdef _BullseyeCoverage
|
sl@0
|
36 |
#define BULLSEYE_OFF "BullseyeCoverage save off";
|
sl@0
|
37 |
#define BULLSEYE_RESTORE "BullseyeCoverage restore";
|
sl@0
|
38 |
#else
|
sl@0
|
39 |
#define BULLSEYE_OFF
|
sl@0
|
40 |
#define BULLSEYE_RESTORE
|
sl@0
|
41 |
#endif
|
sl@0
|
42 |
#endif
|
sl@0
|
43 |
|
sl@0
|
44 |
namespace UserPromptService
|
sl@0
|
45 |
{
|
sl@0
|
46 |
_LIT(KUpsServerName, "!UpsServer"); ///< Identifies UPS Symbian OS server.
|
sl@0
|
47 |
|
sl@0
|
48 |
const TInt KUpsVerMajor = 1; ///< UPS server version major component.
|
sl@0
|
49 |
const TInt KUpsVerMinor = 0; ///< UPS server version minor component.
|
sl@0
|
50 |
const TInt KUpsVerBuild = 0; ///< UPS server version build component.
|
sl@0
|
51 |
|
sl@0
|
52 |
inline TVersion Version();
|
sl@0
|
53 |
|
sl@0
|
54 |
/**
|
sl@0
|
55 |
Executable which hosts UPS server. Required to launch the process.
|
sl@0
|
56 |
|
sl@0
|
57 |
@see KUpsServerUid
|
sl@0
|
58 |
*/
|
sl@0
|
59 |
_LIT(KServerImageName, "upsserver.exe");
|
sl@0
|
60 |
|
sl@0
|
61 |
/**
|
sl@0
|
62 |
Hosting executable's secure ID. Required to launch the process.
|
sl@0
|
63 |
|
sl@0
|
64 |
@see KServerImageName
|
sl@0
|
65 |
*/
|
sl@0
|
66 |
const TUid KUpsServerUid = {0x10283558};
|
sl@0
|
67 |
|
sl@0
|
68 |
inline TUidType ServerImageFullUid();
|
sl@0
|
69 |
|
sl@0
|
70 |
/// The UPS uses this property to notify the clients RUpsSession objects (via their CPolicyChangeWatcher objects)
|
sl@0
|
71 |
/// that they need to re-read the service config information because it may have changed.
|
sl@0
|
72 |
/// This is particularly important if the setting is changing from "never check" to "always check".
|
sl@0
|
73 |
const TInt KUpsServiceConfigProperty = 42;
|
sl@0
|
74 |
|
sl@0
|
75 |
enum TSessionFunction
|
sl@0
|
76 |
/**
|
sl@0
|
77 |
Functions supported by a UPS session, as opposed to subsession.
|
sl@0
|
78 |
*/
|
sl@0
|
79 |
{
|
sl@0
|
80 |
ESessSubsessFromThreadId = 0, ///< Create a subsession current on a thread.
|
sl@0
|
81 |
EGetClientConfigLength, ///< Get the number of elements in the client config array
|
sl@0
|
82 |
EGetClientConfigData, ///< Get the client config array
|
sl@0
|
83 |
EMngmntRead = 0x100,
|
sl@0
|
84 |
ECreateView,
|
sl@0
|
85 |
ENextMatch,
|
sl@0
|
86 |
ECloseView,
|
sl@0
|
87 |
EMngmntDelete = 0x200,
|
sl@0
|
88 |
EDeleteDatabase,
|
sl@0
|
89 |
ERemoveDecisions,
|
sl@0
|
90 |
EMngmntUpdate = 0x300,
|
sl@0
|
91 |
EUpdateDecision,
|
sl@0
|
92 |
ESwiObserver = 0x400,
|
sl@0
|
93 |
EDeleteDecisionsForExe,
|
sl@0
|
94 |
ENotifyPluginsMayHaveChanged,
|
sl@0
|
95 |
ENotifyPolicyFilesChanged,
|
sl@0
|
96 |
ECancelNotifyPolicyFilesChanged
|
sl@0
|
97 |
};
|
sl@0
|
98 |
|
sl@0
|
99 |
enum TSubsessionFunction
|
sl@0
|
100 |
/**
|
sl@0
|
101 |
Functions supported by a UPS subsession.
|
sl@0
|
102 |
*/
|
sl@0
|
103 |
{
|
sl@0
|
104 |
ESubsessPreparePrompt = 0,
|
sl@0
|
105 |
ESubsessExecutePrompt
|
sl@0
|
106 |
};
|
sl@0
|
107 |
|
sl@0
|
108 |
/**
|
sl@0
|
109 |
Delay in microseconds before the server is shut down, after
|
sl@0
|
110 |
the last remaining session has been closed.
|
sl@0
|
111 |
*/
|
sl@0
|
112 |
const TInt KShutdownPeriodUs = 2 * 1000 * 1000;
|
sl@0
|
113 |
|
sl@0
|
114 |
//Shows the flag array index of each column in a filter key
|
sl@0
|
115 |
static const TUint8 KPosClientSid = 0x00;
|
sl@0
|
116 |
static const TUint8 KPosEvaluatorId = 0x01;
|
sl@0
|
117 |
static const TUint8 KPosServiceId = 0x02;
|
sl@0
|
118 |
static const TUint8 KPosServerSid = 0x03;
|
sl@0
|
119 |
static const TUint8 KPosFingerprint = 0x04;
|
sl@0
|
120 |
static const TUint8 KPosClientEntity = 0x05;
|
sl@0
|
121 |
static const TUint8 KPosMajorPolicyVersion = 0x06;
|
sl@0
|
122 |
static const TUint8 KPosRecordId = 0x07;
|
sl@0
|
123 |
static const TUint8 KPosDescription = 0x08;
|
sl@0
|
124 |
static const TUint8 KPosResult = 0x09;
|
sl@0
|
125 |
static const TUint8 KPosEvaluatorInfo = 0x0A;
|
sl@0
|
126 |
|
sl@0
|
127 |
//Shows which columns are set
|
sl@0
|
128 |
static const TUint32 KSetClientSid = 0x00000001;
|
sl@0
|
129 |
static const TUint32 KSetEvaluatorId = 0x00000002;
|
sl@0
|
130 |
static const TUint32 KSetServiceId = 0x00000004;
|
sl@0
|
131 |
static const TUint32 KSetServerSid = 0x00000008;
|
sl@0
|
132 |
static const TUint32 KSetFingerprint = 0x00000010;
|
sl@0
|
133 |
static const TUint32 KSetClientEntity = 0x00000020;
|
sl@0
|
134 |
static const TUint32 KSetMajorPolicyVersion = 0x00000040;
|
sl@0
|
135 |
static const TUint32 KSetRecordId = 0x00000080;
|
sl@0
|
136 |
static const TUint32 KSetDescription = 0x00000100;
|
sl@0
|
137 |
static const TUint32 KSetResult = 0x00000200;
|
sl@0
|
138 |
static const TUint32 KSetEvaluatorInfo = 0x00000400;
|
sl@0
|
139 |
|
sl@0
|
140 |
} // End of namespace UserPromptService
|
sl@0
|
141 |
|
sl@0
|
142 |
#include "upscommon.inl"
|
sl@0
|
143 |
|
sl@0
|
144 |
#endif // #ifndef UPSCOMMON_H
|
sl@0
|
145 |
|