epoc32/include/cryptospi/extendedcharacteristics.h
branchSymbian3
changeset 4 837f303aceeb
     1.1 --- /dev/null	Thu Jan 01 00:00:00 1970 +0000
     1.2 +++ b/epoc32/include/cryptospi/extendedcharacteristics.h	Wed Mar 31 12:33:34 2010 +0100
     1.3 @@ -0,0 +1,74 @@
     1.4 +/*
     1.5 +* Copyright (c) 2006-2009 Nokia Corporation and/or its subsidiary(-ies).
     1.6 +* All rights reserved.
     1.7 +* This component and the accompanying materials are made available
     1.8 +* under the terms of the License "Eclipse Public License v1.0"
     1.9 +* which accompanies this distribution, and is available
    1.10 +* at the URL "http://www.eclipse.org/legal/epl-v10.html".
    1.11 +*
    1.12 +* Initial Contributors:
    1.13 +* Nokia Corporation - initial contribution.
    1.14 +*
    1.15 +* Contributors:
    1.16 +*
    1.17 +* Description: 
    1.18 +* plugin extended characteristic definition
    1.19 +*
    1.20 +*/
    1.21 +
    1.22 +
    1.23 +/**
    1.24 + @file
    1.25 + @publishedAll
    1.26 + @released
    1.27 +*/
    1.28 +
    1.29 +#ifndef __CRYPTOAPI_EXTENDRDCHARACTERISTICS_H__
    1.30 +#define __CRYPTOAPI_EXTENDRDCHARACTERISTICS_H__
    1.31 +
    1.32 +#include <e32base.h>
    1.33 +#include <cryptospi/cryptoparams.h>
    1.34 +#include <s32mem.h>
    1.35 +
    1.36 +namespace CryptoSpi
    1.37 +	{
    1.38 +	/**
    1.39 +	The characteristics associated with the plugin implementation
    1.40 +	*/
    1.41 +
    1.42 +	NONSHARABLE_CLASS(CExtendedCharacteristics) : public CBase
    1.43 +		{
    1.44 +	public:
    1.45 +	
    1.46 +		IMPORT_C static CExtendedCharacteristics* NewL(TInt aAvailableConcurrency,
    1.47 +													 TBool aExclusiveUse);
    1.48 +								
    1.49 +		IMPORT_C void AddCharacteristicL(const TInt value, TUid aUid);
    1.50 +		IMPORT_C void AddCharacteristicL(const TDesC8& value, TUid aUid);
    1.51 +		
    1.52 +		IMPORT_C ~CExtendedCharacteristics();
    1.53 +		
    1.54 +		/**
    1.55 +		Get the extended characteristic for this UID;
    1.56 +		@param aUid	The UID of the extended characteristic
    1.57 +		@param aCharacteristics	The value of the extended characteristic
    1.58 +		*/
    1.59 +		IMPORT_C TInt GetTIntCharacteristicL(TUid aUid) const;
    1.60 +		IMPORT_C const TDesC8& GetTDesC8CharacteristicL(TUid aUid) const;
    1.61 +
    1.62 +		/**
    1.63 +		Retrieve all the extended characteristics
    1.64 +		*/
    1.65 +		IMPORT_C const CCryptoParams* ListExtendedCharacteristics() const;
    1.66 +
    1.67 +	private:
    1.68 +		CExtendedCharacteristics();
    1.69 +		void ConstructL(TInt aAvailableConcurrency, TBool aExclusiveUse);
    1.70 +	
    1.71 +		/**
    1.72 +		The extended characteristics list
    1.73 +		*/
    1.74 +		CCryptoParams* iExtCharacteristics;
    1.75 +		};
    1.76 +	}
    1.77 +#endif //__CRYPTOAPI_EXTENDRDCHARACTERISTICS_H__