os/security/cryptomgmtlibs/securityutils/inc/secsettingscommon.inl
author sl
Tue, 10 Jun 2014 14:32:02 +0200
changeset 1 260cb5ec6c19
permissions -rw-r--r--
Update contrib.
     1 /*
     2 * Copyright (c) 2009 Nokia Corporation and/or its subsidiary(-ies).
     3 * All rights reserved.
     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".
     8 *
     9 * Initial Contributors:
    10 * Nokia Corporation - initial contribution.
    11 *
    12 * Contributors:
    13 *
    14 * Description: 
    15 * The functions defined in this file provide constant data which is
    16 * used by both the client and server implementations.
    17 *
    18 */
    19 
    20 
    21 /**
    22  @file
    23  @internalComponent
    24  @released
    25 */
    26 
    27 
    28 #ifndef SECSETTINGSCOMMON_INL
    29 #define SECSETTINGSCOMMON_INL
    30 
    31 
    32 
    33 namespace SecuritySettingsServer
    34 	{
    35 	inline TVersion Version()
    36 	/**
    37 		This function is defined because there is no literal constructor for TVersion.
    38 
    39 		@return					Defines a version number which the client	
    40 								can use to open the server.  If the client
    41 								was built with a higher version number, then
    42 								it cannot open the server.  This ensures that
    43 								a client only talks to a server whose version
    44 								is at least as high as its own.
    45 	 */
    46 		{
    47 		TVersion v(KSecSettingsVerMajor, KSecSettingsVerMinor, KSecSettingsVerBuild);
    48 		return v;
    49 		}
    50 
    51 	inline TUidType ServerImageFullUid()
    52 	/**
    53 		This function is defined because there is no literal constructor
    54 		for TUidType.  It returns the server executable's UID, which is used
    55 		to ensure the client launches the correct server process, as opposed
    56 		to another application which uses the same executable name.
    57 
    58 		@return TUidType		The server executable's full UID.
    59 	 */
    60 		{
    61 		TUidType uidType(KExecutableImageUid, KNullUid, KSecSettingsServerUid);
    62 		return uidType;
    63 		}
    64 	}	// namespace SecuritySettingsServer
    65 	
    66 #endif	// #ifndef SECSETTINGSCOMMON_INL
    67