sl@0: /* sl@0: * Copyright (c) 2001-2009 Nokia Corporation and/or its subsidiary(-ies). sl@0: * All rights reserved. sl@0: * This component and the accompanying materials are made available sl@0: * under the terms of the License "Eclipse Public License v1.0" sl@0: * which accompanies this distribution, and is available sl@0: * at the URL "http://www.eclipse.org/legal/epl-v10.html". sl@0: * sl@0: * Initial Contributors: sl@0: * Nokia Corporation - initial contribution. sl@0: * sl@0: * Contributors: sl@0: * sl@0: * Description: sl@0: * sl@0: */ sl@0: sl@0: sl@0: #include "fsdatatypes.h" sl@0: sl@0: EXPORT_C CCertInfo* CCertInfo::NewLC(const CCertInfo& aOther) sl@0: { sl@0: CCertInfo* self = NewL(aOther); sl@0: CleanupStack::PushL(self); sl@0: return self; sl@0: } sl@0: sl@0: EXPORT_C CCertInfo* CCertInfo::NewL(const CCertInfo& aOther) sl@0: { sl@0: return new (ELeave) CCertInfo(aOther); sl@0: } sl@0: CCertInfo::CCertInfo(const CCertInfo& aOther) : sl@0: MCertInfo(aOther) sl@0: { sl@0: } sl@0: sl@0: EXPORT_C CCertInfo* CCertInfo::NewLC(const TDesC& aLabel, sl@0: TCertificateFormat aFormat, sl@0: TCertificateOwnerType aCertificateOwnerType, sl@0: TInt aSize, sl@0: const TKeyIdentifier* aSubjectKeyId, sl@0: const TKeyIdentifier* aIssuerKeyId, sl@0: TInt aCertificateId) sl@0: { sl@0: CCertInfo* self = new(ELeave) CCertInfo(aLabel, sl@0: aFormat, aCertificateOwnerType, aSize, aSubjectKeyId, aIssuerKeyId, sl@0: aCertificateId); sl@0: CleanupStack::PushL(self); sl@0: self->ConstructL(NULL); sl@0: return self; sl@0: } sl@0: sl@0: EXPORT_C CCertInfo* CCertInfo::NewLC(const TDesC& aLabel, sl@0: TCertificateFormat aFormat, sl@0: TCertificateOwnerType aCertificateOwnerType, sl@0: TInt aSize, sl@0: const TKeyIdentifier* aSubjectKeyId, sl@0: const TKeyIdentifier* aIssuerKeyId, sl@0: TInt aCertificateId, sl@0: const TBool aDeletable) sl@0: { sl@0: CCertInfo* self = new(ELeave) CCertInfo(aLabel, sl@0: aFormat, aCertificateOwnerType, aSize, aSubjectKeyId, aIssuerKeyId, sl@0: aCertificateId, aDeletable); sl@0: CleanupStack::PushL(self); sl@0: self->ConstructL(NULL); sl@0: return self; sl@0: } sl@0: sl@0: EXPORT_C CCertInfo* CCertInfo::NewL(const TDesC& aLabel, sl@0: TCertificateFormat aFormat, sl@0: TCertificateOwnerType aCertificateOwnerType, sl@0: TInt aSize, sl@0: const TKeyIdentifier* aSubjectKeyId, sl@0: const TKeyIdentifier* aIssuerKeyId, sl@0: TInt aCertificateId) sl@0: { sl@0: CCertInfo* self = CCertInfo::NewLC(aLabel, sl@0: aFormat, aCertificateOwnerType, aSize, aSubjectKeyId, aIssuerKeyId, sl@0: aCertificateId); sl@0: CleanupStack::Pop(self); sl@0: return self; sl@0: } sl@0: sl@0: EXPORT_C CCertInfo* CCertInfo::NewL(const TDesC& aLabel, sl@0: TCertificateFormat aFormat, sl@0: TCertificateOwnerType aCertificateOwnerType, sl@0: TInt aSize, sl@0: const TKeyIdentifier* aSubjectKeyId, sl@0: const TKeyIdentifier* aIssuerKeyId, sl@0: TInt aCertificateId, sl@0: const TBool aDeletable) sl@0: { sl@0: CCertInfo* self = CCertInfo::NewLC(aLabel, sl@0: aFormat, aCertificateOwnerType, aSize, aSubjectKeyId, aIssuerKeyId, sl@0: aCertificateId, aDeletable); sl@0: CleanupStack::Pop(self); sl@0: return self; sl@0: } sl@0: sl@0: CCertInfo::CCertInfo(const TDesC& aLabel, sl@0: TCertificateFormat aFormat, sl@0: TCertificateOwnerType aCertificateOwnerType, sl@0: TInt aSize, sl@0: const TKeyIdentifier* aSubjectKeyId, sl@0: const TKeyIdentifier* aIssuerKeyId, sl@0: TInt aCertificateId, sl@0: const TBool aDeletable) : sl@0: MCertInfo(aLabel, aFormat, aCertificateOwnerType, aSize, aSubjectKeyId, sl@0: aIssuerKeyId, aCertificateId, aDeletable) sl@0: { sl@0: } sl@0: sl@0: EXPORT_C CCertInfo* CCertInfo::NewL(RReadStream& aStream) sl@0: { sl@0: CCertInfo* me = NewLC(aStream); sl@0: CleanupStack::Pop(me); sl@0: return me; sl@0: } sl@0: sl@0: EXPORT_C CCertInfo* CCertInfo::NewLC(RReadStream& aStream) sl@0: { sl@0: CCertInfo* self = new (ELeave) CCertInfo(); sl@0: CleanupStack::PushL(self); sl@0: self->InternalizeL(aStream); sl@0: return self; sl@0: } sl@0: sl@0: CCertInfo::CCertInfo() : sl@0: MCertInfo() sl@0: { sl@0: }