williamr@2: /* williamr@2: * Copyright (c) 2003-2009 Nokia Corporation and/or its subsidiary(-ies). williamr@2: * All rights reserved. williamr@2: * This component and the accompanying materials are made available williamr@2: * under the terms of the License "Eclipse Public License v1.0" williamr@2: * which accompanies this distribution, and is available williamr@2: * at the URL "http://www.eclipse.org/legal/epl-v10.html". williamr@2: * williamr@2: * Initial Contributors: williamr@2: * Nokia Corporation - initial contribution. williamr@2: * williamr@2: * Contributors: williamr@2: * williamr@2: * Description: williamr@2: * williamr@2: */ williamr@2: williamr@2: williamr@2: #include williamr@2: williamr@2: #include "ct.h" williamr@2: williamr@2: williamr@2: /** williamr@2: void MCTWritableCertStore::Add(.., TBool aDeletable, ..) williamr@2: williamr@2: williamr@2: This is a default (dummy) implementation of the new Add(.., TBool aDeletable, ..) method williamr@2: to ensure backward compatibility with old implementations. williamr@2: williamr@2: The MCTWritableCertStore is an abstract parent class for other implementation specific williamr@2: writable cert store classes such as CFileCertStore, CFSCertStoreClient, CCheckedCertStore, williamr@2: and other partner defined classes. williamr@2: williamr@2: Every such child class derived from MCTWritableCertStore, provided it is written properly, williamr@2: MUST have its own implementation for the Add(.., TBool aDeletable, ..) method. williamr@2: williamr@2: Therefore, this dummy implementation in the parent class (MCTWritableCertStore) should NEVER williamr@2: be engaged, since the child's class implementation is supposed to work. williamr@2: williamr@2: Once, the method is called here, in the parent class, this simply means that child class williamr@2: didn't manage to provide its implementation, which could in turn mean that either the child williamr@2: class is older version, or the child class is poorly written. williamr@2: williamr@2: Thus, the current Add() returns with TRequestStatus& aStatus set to error williamr@2: value KErrNotSupported. williamr@2: */ williamr@2: williamr@2: inline void MCTWritableCertStore::Add( const TDesC&, williamr@2: TCertificateFormat, williamr@2: TCertificateOwnerType, williamr@2: const TKeyIdentifier*, williamr@2: const TKeyIdentifier*, williamr@2: const TDesC8&, williamr@2: const TBool, williamr@2: TRequestStatus& aStatus ) williamr@2: { williamr@2: TRequestStatus* status = &aStatus; williamr@2: User::RequestComplete( status, KErrNotSupported ); williamr@2: } williamr@2: