cryptomgmtlibs/securityutils/inc/secsettingscommon.h
changeset 31 5b5ca9f4f7b4
equal deleted inserted replaced
30:cf642210ecb7 31:5b5ca9f4f7b4
       
     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 * Implementation data shared between SecSettings client and server implementations.
       
    16 *
       
    17 */
       
    18 
       
    19 
       
    20 /**
       
    21  @file
       
    22  @internalComponent
       
    23  @released
       
    24 */
       
    25 
       
    26 
       
    27 #ifndef SECSETTINGSCOMMON_H
       
    28 #define SECSETTINGSCOMMON_H
       
    29 
       
    30 #include <e32ver.h>
       
    31 #include <e32uid.h>
       
    32 
       
    33 
       
    34 namespace SecuritySettingsServer
       
    35 	{
       
    36 	_LIT(KSecSettingsServerName, "!SecSettingsServer");		///< Identifies SecSettings Symbian OS server.
       
    37 
       
    38 	const TInt KSecSettingsVerMajor = 1;		///< SecSettings server version major component.
       
    39 	const TInt KSecSettingsVerMinor = 0;		///< SecSettings server version minor component.
       
    40 	const TInt KSecSettingsVerBuild = 0;		///< SecSettings server version build component.
       
    41 
       
    42 	inline TVersion Version();
       
    43 
       
    44 	/**
       
    45 		Executable which hosts SecSettings server.  Required to launch the process.
       
    46 
       
    47 		@see KSecSettingsServerUid
       
    48 	 */
       
    49 	_LIT(KServerImageName, "secsettingsserver.exe");
       
    50 
       
    51 	/**
       
    52 		Hosting executable's secure ID.  Required to launch the process.
       
    53 
       
    54 		@see KServerImageName
       
    55 	 */
       
    56 	const TUid KSecSettingsServerUid = {0x2002B170};
       
    57 
       
    58 	inline TUidType ServerImageFullUid();
       
    59 
       
    60 
       
    61 	enum TSessionFunction
       
    62 	/**
       
    63 		Functions supported by a SecSettings session.
       
    64 	 */
       
    65 		{
       
    66 			ESettingValue = 0
       
    67 		};
       
    68 
       
    69 	/**
       
    70 		Delay in microseconds before the server is shut down, after
       
    71 		the last remaining session has been closed.
       
    72 	 */
       
    73 	const TInt KShutdownPeriodUs = 2 * 1000 * 1000;
       
    74 
       
    75 
       
    76 
       
    77 } // End of namespace SecuritySettingsServer
       
    78 
       
    79 #include "secsettingscommon.inl"
       
    80 
       
    81 #endif	// #ifndef SECSETTINGSCOMMON_H
       
    82