os/security/cryptomgmtlibs/cryptotokenfw/source/ctframework/certificateapps.cpp
author sl
Tue, 10 Jun 2014 14:32:02 +0200
changeset 1 260cb5ec6c19
permissions -rw-r--r--
Update contrib.
     1 /*
     2 * Copyright (c) 1998-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 <mctcertapps.h>
    20 
    21 ////////////////////////////////////////////////////////////////
    22 //	TCertificateAppInfo
    23 ////////////////////////////////////////////////////////////////
    24 
    25 EXPORT_C TCertificateAppInfo::TCertificateAppInfo(const TUid& aUid, const TName& aName)
    26 	:iUid(aUid), iName(aName)
    27 	{
    28 	}
    29 
    30 EXPORT_C TCertificateAppInfo::TCertificateAppInfo()
    31 	{
    32 	}
    33 
    34 EXPORT_C TCertificateAppInfo& TCertificateAppInfo::operator = (const TCertificateAppInfo& aClient)
    35 	{
    36 	if (this == &aClient)
    37 		return *this;
    38 	iUid = aClient.iUid;
    39 	iName = aClient.iName;
    40 	return *this;
    41 	}
    42 
    43 EXPORT_C const TUid& TCertificateAppInfo::Id() const
    44 	{
    45 	return iUid;
    46 	}
    47 
    48 EXPORT_C const TName& TCertificateAppInfo::Name() const
    49 	{
    50 	return iName;
    51 	}
    52 
    53 EXPORT_C void TCertificateAppInfo::ExternalizeL(RWriteStream& aStream) const
    54 	{
    55 	aStream << iUid;
    56 	aStream << iName;
    57 	}
    58 
    59 EXPORT_C void TCertificateAppInfo::InternalizeL(RReadStream& aStream)
    60 	{
    61 	aStream >> iUid;
    62 	aStream >> iName;
    63 	}