cryptomgmtlibs/securityutils/inc/secsettingscommon.inl
author Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
Thu, 07 Jan 2010 13:42:40 +0200
changeset 31 5b5ca9f4f7b4
permissions -rw-r--r--
Revision: 201001 Kit: 201001

/*
* Copyright (c) 2009 Nokia Corporation and/or its subsidiary(-ies).
* All rights reserved.
* This component and the accompanying materials are made available
* under the terms of the License "Eclipse Public License v1.0"
* which accompanies this distribution, and is available
* at the URL "http://www.eclipse.org/legal/epl-v10.html".
*
* Initial Contributors:
* Nokia Corporation - initial contribution.
*
* Contributors:
*
* Description: 
* The functions defined in this file provide constant data which is
* used by both the client and server implementations.
*
*/


/**
 @file
 @internalComponent
 @released
*/


#ifndef SECSETTINGSCOMMON_INL
#define SECSETTINGSCOMMON_INL



namespace SecuritySettingsServer
	{
	inline TVersion Version()
	/**
		This function is defined because there is no literal constructor for TVersion.

		@return					Defines a version number which the client	
								can use to open the server.  If the client
								was built with a higher version number, then
								it cannot open the server.  This ensures that
								a client only talks to a server whose version
								is at least as high as its own.
	 */
		{
		TVersion v(KSecSettingsVerMajor, KSecSettingsVerMinor, KSecSettingsVerBuild);
		return v;
		}

	inline TUidType ServerImageFullUid()
	/**
		This function is defined because there is no literal constructor
		for TUidType.  It returns the server executable's UID, which is used
		to ensure the client launches the correct server process, as opposed
		to another application which uses the same executable name.

		@return TUidType		The server executable's full UID.
	 */
		{
		TUidType uidType(KExecutableImageUid, KNullUid, KSecSettingsServerUid);
		return uidType;
		}
	}	// namespace SecuritySettingsServer
	
#endif	// #ifndef SECSETTINGSCOMMON_INL