sl@0: /* sl@0: * Copyright (c) 2008-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 "certclients.h" sl@0: #include "stringconv.h" sl@0: #include sl@0: sl@0: EncDecContainerItem *CertificateAppInfo::Factory() sl@0: { sl@0: return new CertificateAppInfo; sl@0: } sl@0: sl@0: EXPORT_C CertificateAppInfo::CertificateAppInfo() sl@0: : iUid("Uid"), iName("Name") sl@0: { sl@0: } sl@0: sl@0: EXPORT_C CertificateAppInfo& CertificateAppInfo::operator = (const CertificateAppInfo& aClient) sl@0: { sl@0: BULLSEYE_OFF sl@0: if (this == &aClient) return *this; sl@0: BULLSEYE_RESTORE sl@0: iUid = aClient.iUid; sl@0: iName = aClient.iName; sl@0: return *this; sl@0: } sl@0: sl@0: EXPORT_C const TUid& CertificateAppInfo::Id() const sl@0: { sl@0: return iUid.Value(); sl@0: } sl@0: sl@0: EXPORT_C const TName& CertificateAppInfo::Name() const sl@0: { sl@0: return iName.Value(); sl@0: } sl@0: sl@0: CertificateAppInfo::~CertificateAppInfo() sl@0: { sl@0: } sl@0: sl@0: const char *CertificateAppInfo::ItemType() const sl@0: { sl@0: return 0; sl@0: } sl@0: sl@0: sl@0: sl@0: void CertificateAppInfo::Encode(REncodeWriteStream &aWriteStream) sl@0: { sl@0: aWriteStream << iUid; sl@0: aWriteStream << iName; sl@0: } sl@0: sl@0: void CertificateAppInfo::Decode(RDecodeReadStream &aReadStream) sl@0: { sl@0: aReadStream >> iUid; sl@0: aReadStream >> iName; sl@0: } sl@0: sl@0: // End of file