ncdengine/provider/src/ncdconnectionmethod.cpp
changeset 0 ba25891c3a9e
equal deleted inserted replaced
-1:000000000000 0:ba25891c3a9e
       
     1 /*
       
     2 * Copyright (c) 2008 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 "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 "ncdconnectionmethod.h"
       
    20 
       
    21 #include <s32strm.h>
       
    22 
       
    23 EXPORT_C void TNcdConnectionMethod::ExternalizeL(     
       
    24     RWriteStream& aStream ) const
       
    25     {
       
    26     aStream.WriteUint32L( iId );
       
    27     aStream.WriteInt8L( iType );
       
    28     }
       
    29     
       
    30 EXPORT_C void TNcdConnectionMethod::InternalizeL( 
       
    31     RReadStream& aStream )
       
    32     {
       
    33     TNcdConnectionMethod method;
       
    34     method.iId = aStream.ReadUint32L();
       
    35     method.iType = static_cast<TNcdConnectionMethodType>( 
       
    36         aStream.ReadInt8L() );  
       
    37     *this = method;  
       
    38     }