sl@0: /* sl@0: * Copyright (c) 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: * The functions defined in this file provide constant data which is sl@0: * used by both the client and server implementations. 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 SECSETTINGSCOMMON_INL sl@0: #define SECSETTINGSCOMMON_INL sl@0: sl@0: sl@0: sl@0: namespace SecuritySettingsServer sl@0: { sl@0: inline TVersion Version() sl@0: /** sl@0: This function is defined because there is no literal constructor for TVersion. sl@0: sl@0: @return Defines a version number which the client sl@0: can use to open the server. If the client sl@0: was built with a higher version number, then sl@0: it cannot open the server. This ensures that sl@0: a client only talks to a server whose version sl@0: is at least as high as its own. sl@0: */ sl@0: { sl@0: TVersion v(KSecSettingsVerMajor, KSecSettingsVerMinor, KSecSettingsVerBuild); sl@0: return v; sl@0: } sl@0: sl@0: inline TUidType ServerImageFullUid() sl@0: /** sl@0: This function is defined because there is no literal constructor sl@0: for TUidType. It returns the server executable's UID, which is used sl@0: to ensure the client launches the correct server process, as opposed sl@0: to another application which uses the same executable name. sl@0: sl@0: @return TUidType The server executable's full UID. sl@0: */ sl@0: { sl@0: TUidType uidType(KExecutableImageUid, KNullUid, KSecSettingsServerUid); sl@0: return uidType; sl@0: } sl@0: } // namespace SecuritySettingsServer sl@0: sl@0: #endif // #ifndef SECSETTINGSCOMMON_INL sl@0: