installationservices/swinstallationfw/inc/sifservercommon.h
branchRCL_3
changeset 26 8b7f4e561641
parent 25 7333d7932ef7
child 27 e8965914fac7
equal deleted inserted replaced
25:7333d7932ef7 26:8b7f4e561641
     1 /*
       
     2 * Copyright (c) 2008-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 * Common stuff for the Universal Software Install Framework server and client
       
    16 *
       
    17 */
       
    18 
       
    19 
       
    20 /**
       
    21  @file
       
    22  @internalComponent
       
    23 */
       
    24 
       
    25 #ifndef SIFSERVERCOMMON_H
       
    26 #define SIFSERVERCOMMON_H
       
    27 
       
    28 #include <e32uid.h>
       
    29 
       
    30 namespace Usif
       
    31 	{
       
    32 
       
    33 	/** The name of the SIF Server */
       
    34 	_LIT(KSifServerName,"!SifServer");
       
    35 
       
    36 	const TInt KSifVerMajor = 1;	///< SIF server version major component.
       
    37 	const TInt KSifVerMinor = 0;	///< SIF server version minor component.
       
    38 	const TInt KSifVerBuild = 0;	///< SIF server version build number.
       
    39 
       
    40 	/** Executable image which runs the server process. */
       
    41 	_LIT(KServerImageName, "sifserver.exe");
       
    42 
       
    43 	/**
       
    44 		Returns the version of the SIF Server.
       
    45 
       
    46 		This function is defined because there is no literal constructor for TVersion.
       
    47 
       
    48 		@return	Defines a version number which the client can use to open the server.  If the client
       
    49 				was built with a higher version number, then it cannot open the server.  This ensures that
       
    50 				a client only talks to a server whose version is at least as high as its own.
       
    51 	 */
       
    52 	inline TVersion Version()
       
    53 		{
       
    54 		TVersion v(KSifVerMajor, KSifVerMinor, KSifVerBuild);
       
    55 		return v;
       
    56 		}
       
    57 
       
    58 	} // End of namespace Usif
       
    59 
       
    60 #endif	// #ifndef SIFSERVERCOMMON_H