|
1 /* |
|
2 * Copyright (c) 2008 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: |
|
15 * |
|
16 */ |
|
17 |
|
18 #ifndef HSCONTENTINFOARRAY_H |
|
19 #define HSCONTENTINFOARRAY_H |
|
20 |
|
21 // System includes |
|
22 #include <e32base.h> |
|
23 #include <s32strm.h> |
|
24 |
|
25 // User includes |
|
26 |
|
27 // Forward declarations |
|
28 class CHsContentInfo; |
|
29 |
|
30 /** |
|
31 * Content data |
|
32 * |
|
33 * |
|
34 * @code |
|
35 * |
|
36 * @endcode |
|
37 * |
|
38 * @lib hscontentcontrol.lib |
|
39 * @since S60 v5.0 |
|
40 */ |
|
41 class CHsContentInfoArray : public CBase |
|
42 { |
|
43 public: |
|
44 /** |
|
45 * Two-phased constructor. |
|
46 */ |
|
47 IMPORT_C static CHsContentInfoArray* NewL(); |
|
48 |
|
49 /** |
|
50 * Two-phased constructor. |
|
51 */ |
|
52 IMPORT_C static CHsContentInfoArray* NewL( RReadStream& aStream ); |
|
53 |
|
54 /** |
|
55 * Destructor. |
|
56 */ |
|
57 virtual ~CHsContentInfoArray(); |
|
58 |
|
59 /** |
|
60 * Externalizes the array into the stream. |
|
61 */ |
|
62 IMPORT_C void ExternalizeL( RWriteStream& aStream ); |
|
63 |
|
64 IMPORT_C RPointerArray< CHsContentInfo >& Array(); |
|
65 |
|
66 /** |
|
67 * Internalizes the array from the stream. |
|
68 */ |
|
69 IMPORT_C void InternalizeL( RReadStream& aStream ); |
|
70 |
|
71 /** |
|
72 * Returns size of a descriptor needed to externalize the class |
|
73 */ |
|
74 IMPORT_C TInt Size(); |
|
75 |
|
76 /** |
|
77 * Marshals Content Info array to a descriptor |
|
78 * |
|
79 * @since S60 5.0 |
|
80 * @return Descriptor containing the externalized Content Info array data |
|
81 */ |
|
82 IMPORT_C HBufC8* MarshalL(); |
|
83 |
|
84 private: |
|
85 /** |
|
86 * Constructor. |
|
87 */ |
|
88 CHsContentInfoArray(); |
|
89 |
|
90 /** |
|
91 * Second phase constructor. |
|
92 */ |
|
93 void ConstructL(); |
|
94 |
|
95 private: // Data |
|
96 RPointerArray< CHsContentInfo > iArray; |
|
97 }; |
|
98 |
|
99 #endif // HSCONTENTINFOARRAY_H |
|
100 |
|
101 // End of file |