equal
deleted
inserted
replaced
|
1 // Copyright (c) 1997-2009 Nokia Corporation and/or its subsidiary(-ies). |
|
2 // All rights reserved. |
|
3 // This component and the accompanying materials are made available |
|
4 // under the terms of "Eclipse Public License v1.0" |
|
5 // which accompanies this distribution, and is available |
|
6 // at the URL "http://www.eclipse.org/legal/epl-v10.html". |
|
7 // |
|
8 // Initial Contributors: |
|
9 // Nokia Corporation - initial contribution. |
|
10 // |
|
11 // Contributors: |
|
12 // |
|
13 // Description: |
|
14 // |
|
15 |
|
16 #ifndef __VERSITADDITIONALSTORAGE_H__ |
|
17 #define __VERSITADDITIONALSTORAGE_H__ |
|
18 |
|
19 // System includes |
|
20 #include <e32base.h> |
|
21 |
|
22 // Classes referenced |
|
23 class TVersitAdditionalStorageItem; |
|
24 |
|
25 |
|
26 class CVersitAdditionalStorage : public CBase |
|
27 /** |
|
28 @internalComponent |
|
29 @released |
|
30 */ |
|
31 { |
|
32 public: |
|
33 static CVersitAdditionalStorage* NewL(); |
|
34 ~CVersitAdditionalStorage(); |
|
35 |
|
36 private: |
|
37 CVersitAdditionalStorage(); |
|
38 |
|
39 public: |
|
40 void AddToStorageL(const TAny* aKey, CBase* aValue); |
|
41 CBase* FromStorage(const TAny* aKey); |
|
42 void FreeStorage(const TAny* aKey); |
|
43 |
|
44 private: |
|
45 TVersitAdditionalStorageItem* ItemByKey(const TAny* aKey, TInt& aIndex); |
|
46 static TBool ItemsMatch(const TVersitAdditionalStorageItem& aLeft, const TVersitAdditionalStorageItem& aRight); |
|
47 |
|
48 private: |
|
49 RArray<TVersitAdditionalStorageItem> iStorage; |
|
50 }; |
|
51 |
|
52 |
|
53 #endif |