remotestoragefw/remotefileengine/src/rsfwinterface.cpp
branchRCL_3
changeset 19 88ee4cf65e19
parent 16 87c71b25c937
child 20 1aa8c82cb4cb
equal deleted inserted replaced
16:87c71b25c937 19:88ee4cf65e19
     1 /*
       
     2 * Copyright (c) 2002-2004 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:  RSFW interface
       
    15  *
       
    16 */
       
    17 
       
    18 
       
    19 #include "rsfwinterface.h"
       
    20 #include <e32std.h>
       
    21 
       
    22 
       
    23 // ----------------------------------------------------------------------------
       
    24 // TDirEntAttr::ExternalizeL
       
    25 // ----------------------------------------------------------------------------
       
    26 //
       
    27 EXPORT_C void TDirEntAttr::ExternalizeL(RWriteStream& aStream) const
       
    28     {
       
    29     aStream.WriteUint32L(iAtt);
       
    30     aStream.WriteInt32L(iSize);
       
    31     aStream.WriteUint32L(iUid3.iUid);
       
    32     aStream.WriteUint32L(I64HIGH(iModified.Int64()));
       
    33     aStream.WriteUint32L(I64LOW(iModified.Int64()));
       
    34     }
       
    35 
       
    36 // ----------------------------------------------------------------------------
       
    37 // TDirEntAttr::InternalizeL
       
    38 // ----------------------------------------------------------------------------
       
    39 //
       
    40 EXPORT_C void TDirEntAttr::InternalizeL(RReadStream& aStream)
       
    41     {
       
    42     iAtt = aStream.ReadUint32L();
       
    43     iSize = aStream.ReadInt32L();
       
    44     iUid3.iUid = aStream.ReadUint32L();
       
    45     TInt highTime = aStream.ReadUint32L();
       
    46     TInt lowTime = aStream.ReadUint32L();
       
    47     iModified = MAKE_TINT64(highTime, lowTime);
       
    48     }
       
    49 
       
    50 // ----------------------------------------------------------------------------
       
    51 // TDirEntAttr::Clear
       
    52 // ----------------------------------------------------------------------------
       
    53 //
       
    54 EXPORT_C void TDirEntAttr::Clear()
       
    55     {
       
    56     iAtt = 0;
       
    57     iSize = 0;
       
    58     iModified = 0;
       
    59     iUid3.iUid = 0;
       
    60     }
       
    61 
       
    62 // ----------------------------------------------------------------------------
       
    63 // TDirEnt::ExternalizeL
       
    64 // ----------------------------------------------------------------------------
       
    65 //  
       
    66 EXPORT_C void TDirEnt::ExternalizeL(RWriteStream& aStream) const
       
    67     {
       
    68     iAttr.ExternalizeL(aStream);
       
    69     aStream << iName;
       
    70     }
       
    71 
       
    72 // ----------------------------------------------------------------------------
       
    73 // TDirEnt::InternalizeL
       
    74 // ----------------------------------------------------------------------------
       
    75 //    
       
    76 EXPORT_C void TDirEnt::InternalizeL(RReadStream& aStream)
       
    77     {
       
    78     iAttr.InternalizeL(aStream);
       
    79     aStream >> iName;
       
    80     }
       
    81 
       
    82 // ----------------------------------------------------------------------------
       
    83 // TDirEnt::Clear
       
    84 // ----------------------------------------------------------------------------
       
    85 //
       
    86 EXPORT_C void TDirEnt::Clear()
       
    87     {
       
    88     iAttr.Clear();
       
    89     iName.SetLength(0);
       
    90     }
       
    91 
       
    92 
       
    93 // End of File