epoc32/include/cryptospi/extendedcharacteristics.h
author William Roberts <williamr@symbian.org>
Wed, 31 Mar 2010 12:33:34 +0100
branchSymbian3
changeset 4 837f303aceeb
permissions -rw-r--r--
Current Symbian^3 public API header files (from PDK 3.0.h)
This is the epoc32/include tree with the "platform" subtrees removed, and
all but a selected few mbg and rsg files removed.
     1 /*
     2 * Copyright (c) 2006-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 * plugin extended characteristic definition
    16 *
    17 */
    18 
    19 
    20 /**
    21  @file
    22  @publishedAll
    23  @released
    24 */
    25 
    26 #ifndef __CRYPTOAPI_EXTENDRDCHARACTERISTICS_H__
    27 #define __CRYPTOAPI_EXTENDRDCHARACTERISTICS_H__
    28 
    29 #include <e32base.h>
    30 #include <cryptospi/cryptoparams.h>
    31 #include <s32mem.h>
    32 
    33 namespace CryptoSpi
    34 	{
    35 	/**
    36 	The characteristics associated with the plugin implementation
    37 	*/
    38 
    39 	NONSHARABLE_CLASS(CExtendedCharacteristics) : public CBase
    40 		{
    41 	public:
    42 	
    43 		IMPORT_C static CExtendedCharacteristics* NewL(TInt aAvailableConcurrency,
    44 													 TBool aExclusiveUse);
    45 								
    46 		IMPORT_C void AddCharacteristicL(const TInt value, TUid aUid);
    47 		IMPORT_C void AddCharacteristicL(const TDesC8& value, TUid aUid);
    48 		
    49 		IMPORT_C ~CExtendedCharacteristics();
    50 		
    51 		/**
    52 		Get the extended characteristic for this UID;
    53 		@param aUid	The UID of the extended characteristic
    54 		@param aCharacteristics	The value of the extended characteristic
    55 		*/
    56 		IMPORT_C TInt GetTIntCharacteristicL(TUid aUid) const;
    57 		IMPORT_C const TDesC8& GetTDesC8CharacteristicL(TUid aUid) const;
    58 
    59 		/**
    60 		Retrieve all the extended characteristics
    61 		*/
    62 		IMPORT_C const CCryptoParams* ListExtendedCharacteristics() const;
    63 
    64 	private:
    65 		CExtendedCharacteristics();
    66 		void ConstructL(TInt aAvailableConcurrency, TBool aExclusiveUse);
    67 	
    68 		/**
    69 		The extended characteristics list
    70 		*/
    71 		CCryptoParams* iExtCharacteristics;
    72 		};
    73 	}
    74 #endif //__CRYPTOAPI_EXTENDRDCHARACTERISTICS_H__