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.
15 * Implementation data shared between UPS client and server implementations,
16 * but not with the UPS client.
35 #ifdef _BullseyeCoverage
36 #define BULLSEYE_OFF "BullseyeCoverage save off";
37 #define BULLSEYE_RESTORE "BullseyeCoverage restore";
40 #define BULLSEYE_RESTORE
44 namespace UserPromptService
46 _LIT(KUpsServerName, "!UpsServer"); ///< Identifies UPS Symbian OS server.
48 const TInt KUpsVerMajor = 1; ///< UPS server version major component.
49 const TInt KUpsVerMinor = 0; ///< UPS server version minor component.
50 const TInt KUpsVerBuild = 0; ///< UPS server version build component.
52 inline TVersion Version();
55 Executable which hosts UPS server. Required to launch the process.
59 _LIT(KServerImageName, "upsserver.exe");
62 Hosting executable's secure ID. Required to launch the process.
66 const TUid KUpsServerUid = {0x10283558};
68 inline TUidType ServerImageFullUid();
70 /// The UPS uses this property to notify the clients RUpsSession objects (via their CPolicyChangeWatcher objects)
71 /// that they need to re-read the service config information because it may have changed.
72 /// This is particularly important if the setting is changing from "never check" to "always check".
73 const TInt KUpsServiceConfigProperty = 42;
77 Functions supported by a UPS session, as opposed to subsession.
80 ESessSubsessFromThreadId = 0, ///< Create a subsession current on a thread.
81 EGetClientConfigLength, ///< Get the number of elements in the client config array
82 EGetClientConfigData, ///< Get the client config array
87 EMngmntDelete = 0x200,
90 EMngmntUpdate = 0x300,
93 EDeleteDecisionsForExe,
94 ENotifyPluginsMayHaveChanged,
95 ENotifyPolicyFilesChanged,
96 ECancelNotifyPolicyFilesChanged
99 enum TSubsessionFunction
101 Functions supported by a UPS subsession.
104 ESubsessPreparePrompt = 0,
105 ESubsessExecutePrompt
109 Delay in microseconds before the server is shut down, after
110 the last remaining session has been closed.
112 const TInt KShutdownPeriodUs = 2 * 1000 * 1000;
114 //Shows the flag array index of each column in a filter key
115 static const TUint8 KPosClientSid = 0x00;
116 static const TUint8 KPosEvaluatorId = 0x01;
117 static const TUint8 KPosServiceId = 0x02;
118 static const TUint8 KPosServerSid = 0x03;
119 static const TUint8 KPosFingerprint = 0x04;
120 static const TUint8 KPosClientEntity = 0x05;
121 static const TUint8 KPosMajorPolicyVersion = 0x06;
122 static const TUint8 KPosRecordId = 0x07;
123 static const TUint8 KPosDescription = 0x08;
124 static const TUint8 KPosResult = 0x09;
125 static const TUint8 KPosEvaluatorInfo = 0x0A;
127 //Shows which columns are set
128 static const TUint32 KSetClientSid = 0x00000001;
129 static const TUint32 KSetEvaluatorId = 0x00000002;
130 static const TUint32 KSetServiceId = 0x00000004;
131 static const TUint32 KSetServerSid = 0x00000008;
132 static const TUint32 KSetFingerprint = 0x00000010;
133 static const TUint32 KSetClientEntity = 0x00000020;
134 static const TUint32 KSetMajorPolicyVersion = 0x00000040;
135 static const TUint32 KSetRecordId = 0x00000080;
136 static const TUint32 KSetDescription = 0x00000100;
137 static const TUint32 KSetResult = 0x00000200;
138 static const TUint32 KSetEvaluatorInfo = 0x00000400;
140 } // End of namespace UserPromptService
142 #include "upscommon.inl"
144 #endif // #ifndef UPSCOMMON_H