equal
deleted
inserted
replaced
|
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 #ifndef C_RSFWLRULISTNODE_H |
|
19 #define C_RSFWLRULISTNODE_H |
|
20 |
|
21 #include <e32base.h> |
|
22 |
|
23 class CRsfwFileEntry; |
|
24 |
|
25 /** Priority of the cached entry */ |
|
26 enum TCachePriority |
|
27 { |
|
28 ECachePriorityNormal |
|
29 }; |
|
30 |
|
31 class CRsfwLruListNode : public CBase |
|
32 { |
|
33 public: |
|
34 static CRsfwLruListNode* NewLC(CRsfwFileEntry* aFe, TInt aPriority); |
|
35 static CRsfwLruListNode* NewL(CRsfwFileEntry* aFe, TInt aPriority); |
|
36 virtual ~CRsfwLruListNode(); |
|
37 public: |
|
38 static const TInt iOffset; |
|
39 private: |
|
40 void ConstructL(CRsfwFileEntry* aFe, TInt aPriority); |
|
41 |
|
42 private: |
|
43 TPriQueLink iLink; |
|
44 CRsfwFileEntry* iEntryPtr; |
|
45 friend class CRsfwLruPriorityList; |
|
46 }; |
|
47 |
|
48 #endif |