crypto/weakcryptospi/inc/spi/rulecharacteristics.h
changeset 8 35751d3474b7
equal deleted inserted replaced
2:675a964f4eb5 8:35751d3474b7
       
     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 * Rule-based plugin selector definition
       
    16 *
       
    17 */
       
    18 
       
    19 
       
    20 /**
       
    21  @file
       
    22  @internalTechnology
       
    23  @released
       
    24 */
       
    25 
       
    26 #ifndef CRYPTOAPI_RULECHARACTERISTICS_H
       
    27 #define CRYPTOAPI_RULECHARACTERISTICS_H
       
    28 
       
    29 #include <cryptospi/pluginselectorbase.h>
       
    30 #include <cryptospi/cryptocharacteristics.h>
       
    31 #include <e32hashtab.h>
       
    32 #include <cryptospi/cryptoparams.h>
       
    33 
       
    34 namespace CryptoSpi
       
    35 	{
       
    36 	/**
       
    37 	 *
       
    38 	 * The class holds characteristics and dll index.
       
    39 	 **/
       
    40 	NONSHARABLE_CLASS(CRulesCharacteristicsAndPluginName) : public CCharacteristicsAndPluginName
       
    41 		{
       
    42 	public:
       
    43 		/**
       
    44 		 * Create a new instance of CRulesCharacteristicsAndPluginName.
       
    45 		 *
       
    46 		 * @param aInterface the interface uid
       
    47 		 * @return the pointer of the new object
       
    48 		 **/		
       
    49 		static CRulesCharacteristicsAndPluginName* NewL(TInt32 aInterface);
       
    50 		
       
    51 		/**
       
    52 		 * Create a new instance of CRulesCharacteristicsAndPluginName.
       
    53 		 * Leave it on the cleanup stack.
       
    54 		 *
       
    55 		 * @param aInterface the interface uid
       
    56 		 * @return the pointer of the new object
       
    57 		 **/				
       
    58 		static CRulesCharacteristicsAndPluginName* NewLC(TInt32 aInterface);
       
    59 		
       
    60 		/**
       
    61 		Destructor
       
    62 		*/		
       
    63 		virtual ~CRulesCharacteristicsAndPluginName();
       
    64 		
       
    65 	private:
       
    66 		/**
       
    67 		Constructors
       
    68 		*/
       
    69 		CRulesCharacteristicsAndPluginName();
       
    70 		void ConstructL(TInt32 aInterface);
       
    71 		
       
    72 	public:
       
    73 		/**
       
    74 		This is the extended characteristic uid that need to be sorted.
       
    75 		*/
       
    76 		TInt32 iSortUid;
       
    77 		};
       
    78 		
       
    79 	}
       
    80 
       
    81 #endif //CRYPTOAPI_RULECHARACTERISTICS_H