sl@0: /* sl@0: * Copyright (c) 1998-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: * FILECERTSTOREMAPPING.H sl@0: * CFileCertStoreMapping class implementation sl@0: * sl@0: */ sl@0: sl@0: sl@0: /** sl@0: @file sl@0: @internalTechnology sl@0: */ sl@0: sl@0: #ifndef __FILECERTSTOREMAPPING_H__ sl@0: #define __FILECERTSTOREMAPPING_H__ sl@0: sl@0: #include sl@0: #include sl@0: #include sl@0: #include sl@0: sl@0: /** sl@0: * This class is used to associate an entry with the TStreamId of the stream sl@0: * where the data of the certificate is stored. sl@0: */ sl@0: class CFileCertStoreMapping : public CBase sl@0: { sl@0: public: sl@0: static CFileCertStoreMapping* NewL(); sl@0: static CFileCertStoreMapping* NewLC(); sl@0: void ConstructL(); sl@0: CFileCertStoreMapping(); sl@0: ~CFileCertStoreMapping(); sl@0: /** sl@0: * Sets the iEntry member. If there is already an entry, it is deleted. sl@0: */ sl@0: void SetEntry(CCTCertInfo* aCertInfo); sl@0: void SetId(TStreamId aId); sl@0: CCTCertInfo* Entry() const; sl@0: TStreamId Id() const; sl@0: void ExternalizeL(RWriteStream& aStream) const; sl@0: const RArray& CertificateApps() const; sl@0: void SetCertificateApps(RArray* aCertificateApps); sl@0: TBool IsApplicable(const TUid& aApplication) const; sl@0: TBool Trusted() const; sl@0: void SetTrusted(TBool aTrusted); sl@0: void SetTempRemoved(TBool aFlag); sl@0: TBool IsTempRemoved(); sl@0: sl@0: private: sl@0: CCTCertInfo* iEntry; sl@0: RArray* iCertificateApps; sl@0: TBool iTrusted; sl@0: /** sl@0: * The id of the stream where the certificate data is stored. sl@0: */ sl@0: TStreamId iId; sl@0: TBool iTempRemoved; sl@0: }; sl@0: sl@0: #endif