|
1 /* |
|
2 * Copyright (c) 2001-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 "fsdatatypes.h" |
|
20 |
|
21 EXPORT_C CCertInfo* CCertInfo::NewLC(const CCertInfo& aOther) |
|
22 { |
|
23 CCertInfo* self = NewL(aOther); |
|
24 CleanupStack::PushL(self); |
|
25 return self; |
|
26 } |
|
27 |
|
28 EXPORT_C CCertInfo* CCertInfo::NewL(const CCertInfo& aOther) |
|
29 { |
|
30 return new (ELeave) CCertInfo(aOther); |
|
31 } |
|
32 |
|
33 CCertInfo::CCertInfo(const CCertInfo& aOther) : |
|
34 MCertInfo(aOther) |
|
35 { |
|
36 } |
|
37 |
|
38 EXPORT_C CCertInfo* CCertInfo::NewL(const TDesC& aLabel, |
|
39 TCertificateFormat aFormat, |
|
40 TCertificateOwnerType aCertificateOwnerType, |
|
41 TInt aSize, |
|
42 const TKeyIdentifier* aSubjectKeyId, |
|
43 const TKeyIdentifier* aIssuerKeyId, |
|
44 TInt aCertificateId) |
|
45 { |
|
46 CCertInfo* self = new(ELeave) CCertInfo(aLabel, |
|
47 aFormat, aCertificateOwnerType, aSize, aSubjectKeyId, aIssuerKeyId, |
|
48 aCertificateId); |
|
49 self->ConstructL(NULL); |
|
50 return self; |
|
51 } |
|
52 |
|
53 EXPORT_C CCertInfo* CCertInfo::NewL(const TDesC& aLabel, |
|
54 TCertificateFormat aFormat, |
|
55 TCertificateOwnerType aCertificateOwnerType, |
|
56 TInt aSize, |
|
57 const TKeyIdentifier* aSubjectKeyId, |
|
58 const TKeyIdentifier* aIssuerKeyId, |
|
59 TInt aCertificateId, |
|
60 const TBool aDeletable) |
|
61 { |
|
62 CCertInfo* self = new(ELeave) CCertInfo(aLabel, |
|
63 aFormat, aCertificateOwnerType, aSize, aSubjectKeyId, aIssuerKeyId, |
|
64 aCertificateId, aDeletable); |
|
65 self->ConstructL(NULL); |
|
66 return self; |
|
67 } |
|
68 |
|
69 EXPORT_C CCertInfo* CCertInfo::NewLC(const TDesC& aLabel, |
|
70 TCertificateFormat aFormat, |
|
71 TCertificateOwnerType aCertificateOwnerType, |
|
72 TInt aSize, |
|
73 const TKeyIdentifier* aSubjectKeyId, |
|
74 const TKeyIdentifier* aIssuerKeyId, |
|
75 TInt aCertificateId) |
|
76 { |
|
77 CCertInfo* self = CCertInfo::NewL(aLabel, |
|
78 aFormat, aCertificateOwnerType, aSize, aSubjectKeyId, aIssuerKeyId, |
|
79 aCertificateId); |
|
80 CleanupStack::PushL(self); |
|
81 return self; |
|
82 } |
|
83 |
|
84 EXPORT_C CCertInfo* CCertInfo::NewLC(const TDesC& aLabel, |
|
85 TCertificateFormat aFormat, |
|
86 TCertificateOwnerType aCertificateOwnerType, |
|
87 TInt aSize, |
|
88 const TKeyIdentifier* aSubjectKeyId, |
|
89 const TKeyIdentifier* aIssuerKeyId, |
|
90 TInt aCertificateId, |
|
91 const TBool aDeletable) |
|
92 { |
|
93 CCertInfo* self = CCertInfo::NewL(aLabel, |
|
94 aFormat, aCertificateOwnerType, aSize, aSubjectKeyId, aIssuerKeyId, |
|
95 aCertificateId, aDeletable); |
|
96 CleanupStack::PushL(self); |
|
97 return self; |
|
98 } |
|
99 |
|
100 CCertInfo::CCertInfo(const TDesC& aLabel, |
|
101 TCertificateFormat aFormat, |
|
102 TCertificateOwnerType aCertificateOwnerType, |
|
103 TInt aSize, |
|
104 const TKeyIdentifier* aSubjectKeyId, |
|
105 const TKeyIdentifier* aIssuerKeyId, |
|
106 TInt aCertificateId, |
|
107 const TBool aDeletable) : |
|
108 MCertInfo(aLabel, aFormat, aCertificateOwnerType, aSize, aSubjectKeyId, |
|
109 aIssuerKeyId, aCertificateId, aDeletable) |
|
110 { |
|
111 } |
|
112 |
|
113 EXPORT_C CCertInfo* CCertInfo::NewL(RReadStream& aStream) |
|
114 { |
|
115 CCertInfo* me = NewLC(aStream); |
|
116 CleanupStack::Pop(me); |
|
117 return me; |
|
118 } |
|
119 |
|
120 EXPORT_C CCertInfo* CCertInfo::NewLC(RReadStream& aStream) |
|
121 { |
|
122 CCertInfo* self = new (ELeave) CCertInfo(); |
|
123 CleanupStack::PushL(self); |
|
124 self->InternalizeL(aStream); |
|
125 return self; |
|
126 } |
|
127 |
|
128 CCertInfo::CCertInfo() : |
|
129 MCertInfo() |
|
130 { |
|
131 } |