|
1 /* |
|
2 * Copyright (c) 2004 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 the License "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: |
|
15 * Declaration of class CFavouritesItemImplList. |
|
16 * |
|
17 * |
|
18 */ |
|
19 |
|
20 |
|
21 #ifndef FAVOURITES_ITEM_IMPL_LIST_H |
|
22 #define FAVOURITES_ITEM_IMPL_LIST_H |
|
23 |
|
24 // INCLUDE FILES |
|
25 |
|
26 #include <e32base.h> |
|
27 |
|
28 // FORWARD DECLARATION |
|
29 |
|
30 class CFavouritesItemImpl; |
|
31 class RWriteStream; |
|
32 class RReadStream; |
|
33 |
|
34 // CLASS DECLARATION |
|
35 |
|
36 /** |
|
37 * Array of CFavouritesItemImplImpl-s. Items are owned and deleted upon destruction. |
|
38 * Note: using this array downcasted to its base can result in leaks. |
|
39 * Delete method of base class is not virtual! |
|
40 */ |
|
41 NONSHARABLE_CLASS(CFavouritesItemImplList): public CArrayPtrFlat<CFavouritesItemImpl> |
|
42 { |
|
43 public: // Construct / destruct |
|
44 |
|
45 /** |
|
46 * Constructor. |
|
47 */ |
|
48 CFavouritesItemImplList(); |
|
49 |
|
50 /** |
|
51 * Destructor. Elements are destroyed. |
|
52 */ |
|
53 virtual ~CFavouritesItemImplList(); |
|
54 |
|
55 public: // Streaming |
|
56 |
|
57 /** |
|
58 * Externalize into a stream. |
|
59 * @param aStream The stream to externalize to. |
|
60 */ |
|
61 void ExternalizeL( RWriteStream& aStream ) const; |
|
62 |
|
63 /** |
|
64 * Internalize from a stream. Existing data is kept, new ones appended. |
|
65 * @param aStream The stream to externalize from. |
|
66 */ |
|
67 void InternalizeL( RReadStream& aStream ); |
|
68 |
|
69 }; |
|
70 |
|
71 #endif |
|
72 |
|
73 // End of file |