williamr@2
|
1 |
/*
|
williamr@2
|
2 |
* Copyright (c) 2003-2009 Nokia Corporation and/or its subsidiary(-ies).
|
williamr@2
|
3 |
* All rights reserved.
|
williamr@2
|
4 |
* This component and the accompanying materials are made available
|
williamr@2
|
5 |
* under the terms of the License "Eclipse Public License v1.0"
|
williamr@2
|
6 |
* which accompanies this distribution, and is available
|
williamr@2
|
7 |
* at the URL "http://www.eclipse.org/legal/epl-v10.html".
|
williamr@2
|
8 |
*
|
williamr@2
|
9 |
* Initial Contributors:
|
williamr@2
|
10 |
* Nokia Corporation - initial contribution.
|
williamr@2
|
11 |
*
|
williamr@2
|
12 |
* Contributors:
|
williamr@2
|
13 |
*
|
williamr@2
|
14 |
* Description:
|
williamr@2
|
15 |
*
|
williamr@2
|
16 |
*/
|
williamr@2
|
17 |
|
williamr@2
|
18 |
|
williamr@2
|
19 |
#include <e32base.h>
|
williamr@2
|
20 |
|
williamr@2
|
21 |
#include "ct.h"
|
williamr@2
|
22 |
|
williamr@2
|
23 |
|
williamr@2
|
24 |
/**
|
williamr@2
|
25 |
void MCTWritableCertStore::Add(.., TBool aDeletable, ..)
|
williamr@2
|
26 |
|
williamr@2
|
27 |
|
williamr@2
|
28 |
This is a default (dummy) implementation of the new Add(.., TBool aDeletable, ..) method
|
williamr@2
|
29 |
to ensure backward compatibility with old implementations.
|
williamr@2
|
30 |
|
williamr@2
|
31 |
The MCTWritableCertStore is an abstract parent class for other implementation specific
|
williamr@2
|
32 |
writable cert store classes such as CFileCertStore, CFSCertStoreClient, CCheckedCertStore,
|
williamr@2
|
33 |
and other partner defined classes.
|
williamr@2
|
34 |
|
williamr@2
|
35 |
Every such child class derived from MCTWritableCertStore, provided it is written properly,
|
williamr@2
|
36 |
MUST have its own implementation for the Add(.., TBool aDeletable, ..) method.
|
williamr@2
|
37 |
|
williamr@2
|
38 |
Therefore, this dummy implementation in the parent class (MCTWritableCertStore) should NEVER
|
williamr@2
|
39 |
be engaged, since the child's class implementation is supposed to work.
|
williamr@2
|
40 |
|
williamr@2
|
41 |
Once, the method is called here, in the parent class, this simply means that child class
|
williamr@2
|
42 |
didn't manage to provide its implementation, which could in turn mean that either the child
|
williamr@2
|
43 |
class is older version, or the child class is poorly written.
|
williamr@2
|
44 |
|
williamr@2
|
45 |
Thus, the current Add() returns with TRequestStatus& aStatus set to error
|
williamr@2
|
46 |
value KErrNotSupported.
|
williamr@2
|
47 |
*/
|
williamr@2
|
48 |
|
williamr@2
|
49 |
inline void MCTWritableCertStore::Add( const TDesC&,
|
williamr@2
|
50 |
TCertificateFormat,
|
williamr@2
|
51 |
TCertificateOwnerType,
|
williamr@2
|
52 |
const TKeyIdentifier*,
|
williamr@2
|
53 |
const TKeyIdentifier*,
|
williamr@2
|
54 |
const TDesC8&,
|
williamr@2
|
55 |
const TBool,
|
williamr@2
|
56 |
TRequestStatus& aStatus )
|
williamr@2
|
57 |
{
|
williamr@2
|
58 |
TRequestStatus* status = &aStatus;
|
williamr@2
|
59 |
User::RequestComplete( status, KErrNotSupported );
|
williamr@2
|
60 |
}
|
williamr@2
|
61 |
|