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: * Implementation data shared between UPS client and server implementations, sl@0: * but not with the UPS client. sl@0: * sl@0: */ sl@0: sl@0: sl@0: /** sl@0: @file sl@0: @internalComponent sl@0: @released sl@0: */ sl@0: sl@0: sl@0: #ifndef UPSCOMMON_H sl@0: #define UPSCOMMON_H sl@0: sl@0: #include sl@0: #include sl@0: sl@0: #ifndef BULLSEYE_OFF sl@0: #ifdef _BullseyeCoverage sl@0: #define BULLSEYE_OFF "BullseyeCoverage save off"; sl@0: #define BULLSEYE_RESTORE "BullseyeCoverage restore"; sl@0: #else sl@0: #define BULLSEYE_OFF sl@0: #define BULLSEYE_RESTORE sl@0: #endif sl@0: #endif sl@0: sl@0: namespace UserPromptService sl@0: { sl@0: _LIT(KUpsServerName, "!UpsServer"); ///< Identifies UPS Symbian OS server. sl@0: sl@0: const TInt KUpsVerMajor = 1; ///< UPS server version major component. sl@0: const TInt KUpsVerMinor = 0; ///< UPS server version minor component. sl@0: const TInt KUpsVerBuild = 0; ///< UPS server version build component. sl@0: sl@0: inline TVersion Version(); sl@0: sl@0: /** sl@0: Executable which hosts UPS server. Required to launch the process. sl@0: sl@0: @see KUpsServerUid sl@0: */ sl@0: _LIT(KServerImageName, "upsserver.exe"); sl@0: sl@0: /** sl@0: Hosting executable's secure ID. Required to launch the process. sl@0: sl@0: @see KServerImageName sl@0: */ sl@0: const TUid KUpsServerUid = {0x10283558}; sl@0: sl@0: inline TUidType ServerImageFullUid(); sl@0: sl@0: /// The UPS uses this property to notify the clients RUpsSession objects (via their CPolicyChangeWatcher objects) sl@0: /// that they need to re-read the service config information because it may have changed. sl@0: /// This is particularly important if the setting is changing from "never check" to "always check". sl@0: const TInt KUpsServiceConfigProperty = 42; sl@0: sl@0: enum TSessionFunction sl@0: /** sl@0: Functions supported by a UPS session, as opposed to subsession. sl@0: */ sl@0: { sl@0: ESessSubsessFromThreadId = 0, ///< Create a subsession current on a thread. sl@0: EGetClientConfigLength, ///< Get the number of elements in the client config array sl@0: EGetClientConfigData, ///< Get the client config array sl@0: EMngmntRead = 0x100, sl@0: ECreateView, sl@0: ENextMatch, sl@0: ECloseView, sl@0: EMngmntDelete = 0x200, sl@0: EDeleteDatabase, sl@0: ERemoveDecisions, sl@0: EMngmntUpdate = 0x300, sl@0: EUpdateDecision, sl@0: ESwiObserver = 0x400, sl@0: EDeleteDecisionsForExe, sl@0: ENotifyPluginsMayHaveChanged, sl@0: ENotifyPolicyFilesChanged, sl@0: ECancelNotifyPolicyFilesChanged sl@0: }; sl@0: sl@0: enum TSubsessionFunction sl@0: /** sl@0: Functions supported by a UPS subsession. sl@0: */ sl@0: { sl@0: ESubsessPreparePrompt = 0, sl@0: ESubsessExecutePrompt sl@0: }; sl@0: sl@0: /** sl@0: Delay in microseconds before the server is shut down, after sl@0: the last remaining session has been closed. sl@0: */ sl@0: const TInt KShutdownPeriodUs = 2 * 1000 * 1000; sl@0: sl@0: //Shows the flag array index of each column in a filter key sl@0: static const TUint8 KPosClientSid = 0x00; sl@0: static const TUint8 KPosEvaluatorId = 0x01; sl@0: static const TUint8 KPosServiceId = 0x02; sl@0: static const TUint8 KPosServerSid = 0x03; sl@0: static const TUint8 KPosFingerprint = 0x04; sl@0: static const TUint8 KPosClientEntity = 0x05; sl@0: static const TUint8 KPosMajorPolicyVersion = 0x06; sl@0: static const TUint8 KPosRecordId = 0x07; sl@0: static const TUint8 KPosDescription = 0x08; sl@0: static const TUint8 KPosResult = 0x09; sl@0: static const TUint8 KPosEvaluatorInfo = 0x0A; sl@0: sl@0: //Shows which columns are set sl@0: static const TUint32 KSetClientSid = 0x00000001; sl@0: static const TUint32 KSetEvaluatorId = 0x00000002; sl@0: static const TUint32 KSetServiceId = 0x00000004; sl@0: static const TUint32 KSetServerSid = 0x00000008; sl@0: static const TUint32 KSetFingerprint = 0x00000010; sl@0: static const TUint32 KSetClientEntity = 0x00000020; sl@0: static const TUint32 KSetMajorPolicyVersion = 0x00000040; sl@0: static const TUint32 KSetRecordId = 0x00000080; sl@0: static const TUint32 KSetDescription = 0x00000100; sl@0: static const TUint32 KSetResult = 0x00000200; sl@0: static const TUint32 KSetEvaluatorInfo = 0x00000400; sl@0: sl@0: } // End of namespace UserPromptService sl@0: sl@0: #include "upscommon.inl" sl@0: sl@0: #endif // #ifndef UPSCOMMON_H sl@0: