installationservices/swi/source/sisregistry/common/sisregistryhelpercommon.inl
changeset 0 ba25891c3a9e
equal deleted inserted replaced
-1:000000000000 0:ba25891c3a9e
       
     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 SISRegistry Helper server and client side implementations.
       
    17 *
       
    18 */
       
    19 
       
    20 
       
    21 /**
       
    22  @file
       
    23  @internalComponent
       
    24  @released
       
    25 */
       
    26  
       
    27 #ifndef SISREGISTRYHELPERCOMMON_INL
       
    28 #define SISREGISTRYHELPERCOMMON_INL
       
    29 
       
    30 namespace Swi
       
    31 	{
       
    32 	inline TVersion SisRegistryHelperServerVersion()
       
    33 	/**
       
    34 		This function is defined because there is no literal constructor for TVersion.
       
    35 
       
    36 		@return	Defines a version number which the client side code	
       
    37 				can use to open the SISRegistry Helper server. If the client code
       
    38 				was built with a higher version number, then it cannot
       
    39 				open the SISRegistryHelper server. This ensures that a client only
       
    40 				talks to the SISRegistryHelper server version is at least as high as its own.
       
    41 	*/
       
    42 		{
       
    43 		TVersion version(KSisRegistryHelperServerVersionMajor, KSisRegistryHelperServerVersionMinor, KSisRegistryHelperServerVersionBuild);
       
    44 		return version;
       
    45 		}
       
    46 
       
    47 	inline TUidType SisRegistryHelperServerImageFullUid()
       
    48 	/**
       
    49 		This function is defined because there is no literal constructor
       
    50 		for TUidType.  It returns the SISRegistryHelper server executable's UID, which is used
       
    51 		to ensure the client side code launches the correct server process, as opposed
       
    52 		to another application which uses the same executable name.
       
    53 
       
    54 		@return TUidType		The SISRegistry Helper server executable's full UID.
       
    55 	 */
       
    56 		{
       
    57 		TUidType typ(KExecutableImageUid, KNullUid, KSisRegistryHelperServerUid3);
       
    58 		return typ;
       
    59 		}
       
    60 
       
    61 	} // End of namespace Swi
       
    62 	
       
    63 #endif // SISREGISTRYHELPERCOMMON_INL