|
1 /* |
|
2 * Copyright (c) 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: CCSXHGenericTOC1 class declaration |
|
15 * |
|
16 */ |
|
17 |
|
18 |
|
19 #ifndef INC_CSXHGENERICTOC1_H_HEADER_INCLUDED_BC050AFE |
|
20 #define INC_CSXHGENERICTOC1_H_HEADER_INCLUDED_BC050AFE |
|
21 |
|
22 #include "CSXHHelpContentBase.h" |
|
23 #include <badesca.h> |
|
24 |
|
25 |
|
26 class CCSXHHelpDataBase; |
|
27 /** |
|
28 * @class CCSXHGenericTOC1 |
|
29 * This class has the information of TOC1 |
|
30 */ |
|
31 class CCSXHGenericTOC1 : public CCSXHHelpContentBase |
|
32 { |
|
33 public: |
|
34 /** |
|
35 * @function ~CCSXHGenericTOC1 |
|
36 * @since S60 3.2 |
|
37 * Destroy the object and release all memory objects |
|
38 */ |
|
39 ~CCSXHGenericTOC1(); |
|
40 /** |
|
41 * @function FillChildDataL |
|
42 * @since S60 3.2 |
|
43 * Fill the array |
|
44 * @param aArray - A pointer to a Descriptor Array |
|
45 */ |
|
46 IMPORT_C virtual void FillChildDataL(CDesCArray* aArray); |
|
47 /** |
|
48 * @function GetChildL |
|
49 * @since S60 3.2 |
|
50 * Fill the array |
|
51 * @param aName - toc1 Name |
|
52 * @return pointer to toc2 type casted to database class |
|
53 */ |
|
54 IMPORT_C virtual CCSXHHelpContentBase* GetChildL(const TDesC& aName); |
|
55 |
|
56 /** |
|
57 * @function InsertChild |
|
58 * @since S60 3.2 |
|
59 * Insert toc2 objects |
|
60 * @param atoc2 - toc2 objects |
|
61 * @param aDeleteObject - boolean, default True |
|
62 * @return ETrue Successful, EFalse otherwise |
|
63 */ |
|
64 TBool InsertChild(CCSXHHelpContentBase* atoc2,TBool aDeleteObject = ETrue); |
|
65 |
|
66 /** |
|
67 * @function ResetChildList |
|
68 * @since S60 3.2 |
|
69 * clear Array, delete the objects |
|
70 * @return ETrue Successful, EFalse otherwise |
|
71 */ |
|
72 virtual void ResetChildList(); |
|
73 |
|
74 |
|
75 protected: |
|
76 /** |
|
77 * @function CCSXHGenericTOC1 |
|
78 * @since S60 3.2 |
|
79 * Construct a CCSXHGenericTOC1 |
|
80 * @param aName - TOC1 Name |
|
81 */ |
|
82 CCSXHGenericTOC1(const TDesC& aName); |
|
83 |
|
84 /** |
|
85 * @function InitChildList |
|
86 * @since S60 3.2 |
|
87 * Allocate the Memory for Array |
|
88 */ |
|
89 virtual void InitChildList(); |
|
90 /** |
|
91 * @function CopyChildListL |
|
92 * @since S60 3.2 |
|
93 * Copy the content to Descriptor Array |
|
94 * @param aArray - Descriptor Array |
|
95 */ |
|
96 virtual void CopyChildListL(CDesCArray* aArray); |
|
97 |
|
98 /** |
|
99 * @function ConstructChildList |
|
100 * @since S60 3.2 |
|
101 * Fill the toc2 objects in the array |
|
102 * calls ConstructChildListL internally |
|
103 * @return ETrue on Success, EFalse otherwise |
|
104 */ |
|
105 TBool ConstructChildList(); |
|
106 |
|
107 private: |
|
108 /** |
|
109 * @function ConstructChildListL |
|
110 * @since S60 3.2 |
|
111 * Fill the toc2 objects in the array |
|
112 */ |
|
113 void ConstructChildListL(); |
|
114 |
|
115 protected: |
|
116 |
|
117 RPointerArray<CCSXHHelpContentBase> *iChildList; |
|
118 |
|
119 }; |
|
120 |
|
121 |
|
122 |
|
123 #endif /* INC_CSXHGENERICTOC1_H_HEADER_INCLUDED_BC050AFE */ |