epoc32/include/mctwritablecertstore.inl
branchSymbian2
changeset 2 2fe1408b6811
parent 0 061f57f2323e
     1.1 --- a/epoc32/include/mctwritablecertstore.inl	Tue Nov 24 13:55:44 2009 +0000
     1.2 +++ b/epoc32/include/mctwritablecertstore.inl	Tue Mar 16 16:12:26 2010 +0000
     1.3 @@ -1,1 +1,61 @@
     1.4 -mctwritablecertstore.inl
     1.5 +/*
     1.6 +* Copyright (c) 2003-2009 Nokia Corporation and/or its subsidiary(-ies).
     1.7 +* All rights reserved.
     1.8 +* This component and the accompanying materials are made available
     1.9 +* under the terms of the License "Eclipse Public License v1.0"
    1.10 +* which accompanies this distribution, and is available
    1.11 +* at the URL "http://www.eclipse.org/legal/epl-v10.html".
    1.12 +*
    1.13 +* Initial Contributors:
    1.14 +* Nokia Corporation - initial contribution.
    1.15 +*
    1.16 +* Contributors:
    1.17 +*
    1.18 +* Description: 
    1.19 +*
    1.20 +*/
    1.21 +
    1.22 +
    1.23 +#include <e32base.h>
    1.24 +
    1.25 +#include "ct.h"
    1.26 +
    1.27 +
    1.28 +/**
    1.29 +	void MCTWritableCertStore::Add(.., TBool aDeletable, ..)
    1.30 +	
    1.31 +
    1.32 +	This is a default (dummy) implementation of the new Add(.., TBool aDeletable, ..) method
    1.33 +	to ensure backward compatibility with old implementations.
    1.34 +
    1.35 + 	The MCTWritableCertStore is an abstract parent class for other implementation specific 
    1.36 + 	writable cert store classes such as  CFileCertStore, CFSCertStoreClient, CCheckedCertStore,  
    1.37 + 	and other partner defined classes.
    1.38 + 	
    1.39 + 	Every such child class derived from MCTWritableCertStore, provided it is written properly,
    1.40 + 	MUST have its own implementation for the  Add(.., TBool aDeletable, ..) method.
    1.41 + 	
    1.42 + 	Therefore, this dummy implementation in the parent class (MCTWritableCertStore) should NEVER
    1.43 + 	be engaged, since the child's class implementation is supposed to work. 
    1.44 + 	
    1.45 + 	Once, the method is called here, in the parent class, this simply means that child class
    1.46 + 	didn't manage to provide its implementation, which could in turn mean that either the child
    1.47 + 	class is older version, or the child class is poorly written.
    1.48 + 	
    1.49 + 	Thus, the current Add() returns with TRequestStatus& aStatus set to error 
    1.50 + 	value KErrNotSupported.
    1.51 + */ 
    1.52 +
    1.53 +inline void MCTWritableCertStore::Add( const TDesC&,
    1.54 +							TCertificateFormat,
    1.55 +							TCertificateOwnerType, 
    1.56 +					 		const TKeyIdentifier*,
    1.57 +					 		const TKeyIdentifier*,
    1.58 +					 		const TDesC8&, 
    1.59 +					 		const TBool,
    1.60 +					 		TRequestStatus&	aStatus	)
    1.61 +	{
    1.62 +		TRequestStatus* status = &aStatus;	
    1.63 +		User::RequestComplete( status, KErrNotSupported );
    1.64 +	}
    1.65 +