cryptoservices/filebasedcertificateandkeystores/source/generic/server/FSResources.h
changeset 0 2c201484c85f
child 8 35751d3474b7
equal deleted inserted replaced
-1:000000000000 0:2c201484c85f
       
     1 /*
       
     2 * Copyright (c) 2004-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 * FSResources class that contains resources (locale-specific strings
       
    16 * and so on) needed by the file token server
       
    17 *
       
    18 */
       
    19 
       
    20 
       
    21 
       
    22 
       
    23 /**
       
    24  @file 
       
    25  @internalTechnology
       
    26 */
       
    27 
       
    28 #include <barsc.h>
       
    29 #include <bautils.h>
       
    30 #include <barsread.h>
       
    31 #include <ct/rcpointerarray.h>
       
    32 
       
    33 class FSResources
       
    34 	{
       
    35  public:
       
    36 	/// If the resources aren't initialised, initialise them
       
    37 	static void InitialiseL();
       
    38 	/// Free all resources.
       
    39 	static void Cleanup();
       
    40 
       
    41 	/// Returns an array of strings. The strings are identified by
       
    42 	/// enums in TStrings
       
    43 	inline static const CDesCArray& Strings();
       
    44 
       
    45 	/// The meaning of each of the strings returned by Strings
       
    46 	enum TStrings
       
    47 		{
       
    48 		/// The label associated with the passphrase for decrypting
       
    49 		/// imported keys
       
    50 		EImportPassphraseLabel = 0,
       
    51 		EExportPassphraseLabel =1,
       
    52 		EPinGLabel = 2,
       
    53 		ECreatePinGLabel = 3
       
    54 		};
       
    55 
       
    56  private:
       
    57 	static CDesCArray* iStrings;
       
    58 	};
       
    59 
       
    60 inline const CDesCArray& FSResources::Strings()
       
    61 	{
       
    62 	return *iStrings;
       
    63 	}