remotestoragefw/remotefileengine/src/rsfwlrulistnode.cpp
branchRCL_3
changeset 16 1aa8c82cb4cb
parent 0 3ad9d5175a89
equal deleted inserted replaced
15:88ee4cf65e19 16:1aa8c82cb4cb
       
     1 /*
       
     2 * Copyright (c) 2005-2006 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:  A node in the LRU list
       
    15 *
       
    16 */
       
    17 
       
    18 
       
    19 #include "rsfwlrulistnode.h"
       
    20 
       
    21 const TInt CRsfwLruListNode::iOffset    = _FOFF(CRsfwLruListNode,iLink);
       
    22 
       
    23 
       
    24 // ----------------------------------------------------------------------------
       
    25 // CRsfwLruListNode::NewLC
       
    26 // 
       
    27 // ----------------------------------------------------------------------------
       
    28 //
       
    29 CRsfwLruListNode* CRsfwLruListNode::NewLC(CRsfwFileEntry *aFe, TInt aPriority)
       
    30     {
       
    31     CRsfwLruListNode* self = new (ELeave) CRsfwLruListNode;
       
    32     CleanupStack::PushL(self);
       
    33     self->ConstructL(aFe, aPriority);
       
    34     return self;
       
    35     }
       
    36 
       
    37 // ----------------------------------------------------------------------------
       
    38 // CRsfwLruListNode::NewL
       
    39 // 
       
    40 // ----------------------------------------------------------------------------
       
    41 //
       
    42 CRsfwLruListNode* CRsfwLruListNode::NewL(CRsfwFileEntry *aFe, TInt aPriority)
       
    43     {
       
    44     CRsfwLruListNode* self = CRsfwLruListNode::NewLC(aFe, aPriority);
       
    45     CleanupStack::Pop(self);
       
    46     return self;
       
    47     }
       
    48 
       
    49 // ----------------------------------------------------------------------------
       
    50 // CRsfwLruListNode::ConstructL
       
    51 // 
       
    52 // ----------------------------------------------------------------------------
       
    53 //
       
    54 void CRsfwLruListNode::ConstructL(CRsfwFileEntry *aFe, TInt aPriority)
       
    55     {
       
    56     iEntryPtr = aFe;
       
    57     iLink.iPriority = aPriority;
       
    58     }
       
    59 
       
    60 // ----------------------------------------------------------------------------
       
    61 // CRsfwLruListNode::~CRsfwLruListNode
       
    62 // 
       
    63 // ----------------------------------------------------------------------------
       
    64 //
       
    65 CRsfwLruListNode::~CRsfwLruListNode()
       
    66     {
       
    67     }
       
    68