1 mctwritablecertstore.inl |
1 /* |
|
2 * Copyright (c) 2003-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 * |
|
16 */ |
|
17 |
|
18 |
|
19 #include <e32base.h> |
|
20 |
|
21 #include "ct.h" |
|
22 |
|
23 |
|
24 /** |
|
25 void MCTWritableCertStore::Add(.., TBool aDeletable, ..) |
|
26 |
|
27 |
|
28 This is a default (dummy) implementation of the new Add(.., TBool aDeletable, ..) method |
|
29 to ensure backward compatibility with old implementations. |
|
30 |
|
31 The MCTWritableCertStore is an abstract parent class for other implementation specific |
|
32 writable cert store classes such as CFileCertStore, CFSCertStoreClient, CCheckedCertStore, |
|
33 and other partner defined classes. |
|
34 |
|
35 Every such child class derived from MCTWritableCertStore, provided it is written properly, |
|
36 MUST have its own implementation for the Add(.., TBool aDeletable, ..) method. |
|
37 |
|
38 Therefore, this dummy implementation in the parent class (MCTWritableCertStore) should NEVER |
|
39 be engaged, since the child's class implementation is supposed to work. |
|
40 |
|
41 Once, the method is called here, in the parent class, this simply means that child class |
|
42 didn't manage to provide its implementation, which could in turn mean that either the child |
|
43 class is older version, or the child class is poorly written. |
|
44 |
|
45 Thus, the current Add() returns with TRequestStatus& aStatus set to error |
|
46 value KErrNotSupported. |
|
47 */ |
|
48 |
|
49 inline void MCTWritableCertStore::Add( const TDesC&, |
|
50 TCertificateFormat, |
|
51 TCertificateOwnerType, |
|
52 const TKeyIdentifier*, |
|
53 const TKeyIdentifier*, |
|
54 const TDesC8&, |
|
55 const TBool, |
|
56 TRequestStatus& aStatus ) |
|
57 { |
|
58 TRequestStatus* status = &aStatus; |
|
59 User::RequestComplete( status, KErrNotSupported ); |
|
60 } |
|
61 |