|
1 /* |
|
2 * Copyright (c) 2007 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: Declaration of the slot enumerator class |
|
15 * |
|
16 */ |
|
17 |
|
18 |
|
19 #ifndef __SLOTENUMERATORCACHE_H |
|
20 #define __SLOTENUMERATORCACHE_H |
|
21 |
|
22 #include <e32base.h> |
|
23 #include <f32file.h> |
|
24 |
|
25 class CEnumeratorData; |
|
26 class CWmDrmServer; |
|
27 |
|
28 class CSlotEnumeratorCache: public CBase |
|
29 { |
|
30 public: |
|
31 |
|
32 static CSlotEnumeratorCache* NewL( CWmDrmServer* aServer ); |
|
33 |
|
34 void ConstructL(); |
|
35 |
|
36 CSlotEnumeratorCache( CWmDrmServer* aServer ); |
|
37 |
|
38 ~CSlotEnumeratorCache(); |
|
39 |
|
40 CEnumeratorData* GetEnumeratorDataL( |
|
41 const TDesC8& aStore, |
|
42 const TDesC8& aNamespace, |
|
43 const TDesC8& aHashKey ); |
|
44 |
|
45 void Claim( CEnumeratorData* aData ); |
|
46 |
|
47 void Release( CEnumeratorData* aData ); |
|
48 |
|
49 TInt AddEntryL( |
|
50 const TDesC8& aStore, |
|
51 const TDesC8& aNamespace, |
|
52 const TDesC8& aHashKey, |
|
53 const TDesC8& aUniqueKey ); |
|
54 |
|
55 TInt DeleteEntryL( |
|
56 const TDesC8& aStore, |
|
57 const TDesC8& aNamespace, |
|
58 const TDesC8& aHashKey, |
|
59 const TDesC8& aUniqueKey ); |
|
60 |
|
61 void Cleanup(); |
|
62 |
|
63 TInt iMaxCachedEnumerators; |
|
64 RPointerArray<CEnumeratorData> iEnumeratorCache; |
|
65 CWmDrmServer* iServer; |
|
66 }; |
|
67 |
|
68 #endif |