installationservices/swi/source/sisresult/sisinstallationresult.cpp
changeset 0 ba25891c3a9e
equal deleted inserted replaced
-1:000000000000 0:ba25891c3a9e
       
     1 /*
       
     2 * Copyright (c) 1997-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 * SIS Installation Result class
       
    16 *
       
    17 */
       
    18 
       
    19 
       
    20 #include <s32strm.h>
       
    21 #include "sisinstallationresult.h"
       
    22 
       
    23 using namespace Swi;
       
    24 
       
    25 EXPORT_C CInstallationResult* CInstallationResult::NewL()
       
    26 	{
       
    27 	CInstallationResult *self = new(ELeave) CInstallationResult();
       
    28 	return self;
       
    29 	}
       
    30 
       
    31 CInstallationResult::~CInstallationResult()
       
    32 	{
       
    33 	}
       
    34 
       
    35 CInstallationResult::CInstallationResult()
       
    36 	{
       
    37 	}
       
    38 
       
    39 EXPORT_C void CInstallationResult::ExternalizeL(RWriteStream& aStream) const
       
    40 	{
       
    41 	aStream.WriteUint16L(iResult);
       
    42 	aStream.WriteInt32L(iLeaveCode);
       
    43 	aStream << iProblematicFileName;
       
    44 	}
       
    45 
       
    46 EXPORT_C void CInstallationResult::InternalizeL(RReadStream& aStream)
       
    47 	{
       
    48 	iResult = static_cast<TResult>(aStream.ReadUint16L());
       
    49 	iLeaveCode = aStream.ReadInt32L();
       
    50 	aStream >> iProblematicFileName;
       
    51 	}