remotestoragefw/remotefileengine/inc/rsfwlruprioritylist.h
changeset 13 6b4fc789785b
parent 2 c32dc0be5eb4
equal deleted inserted replaced
2:c32dc0be5eb4 13:6b4fc789785b
     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:  LRU priority list for cache entries
       
    15 *
       
    16 */
       
    17 
       
    18 #ifndef C_RSFWLRUPRIORITYLIST_H
       
    19 #define C_RSFWLRUPRIORITYLIST_H
       
    20 
       
    21 #include <e32base.h>
       
    22 #include <s32strm.h>
       
    23 
       
    24 class CRsfwLruListNode;
       
    25 class CRsfwFileEntry;
       
    26 class CRsfwVolumeTable;
       
    27 
       
    28 class CRsfwLruPriorityList : public CBase
       
    29     {
       
    30 public:
       
    31     CRsfwLruPriorityList();
       
    32     virtual ~CRsfwLruPriorityList();
       
    33    
       
    34     void AddNodeL(CRsfwFileEntry *aFe, TInt aPriority);
       
    35     TInt RemoveNode(CRsfwFileEntry *aFe);
       
    36     CRsfwFileEntry* GetAndRemoveFirstEntry();
       
    37     void ExternalizeL(RWriteStream& aStream);
       
    38     void InternalizeL(RReadStream& aStream, CRsfwVolumeTable* aVolumeTable);
       
    39     
       
    40 private:
       
    41     TPriQue<CRsfwLruListNode> iHdr;
       
    42     TDblQueIter<CRsfwLruListNode> iIter;
       
    43     };
       
    44 
       
    45 
       
    46 #endif