|
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: CCSXHMainTopics class definition |
|
15 * |
|
16 */ |
|
17 |
|
18 #include "CSXHMainTopics.h" |
|
19 #include "CSXHHTMLContentParser.h" |
|
20 #include "CSXHHelpDataBase.h" |
|
21 #include "CSXHViewIDs.h" |
|
22 #include "csxhconstants.h" |
|
23 |
|
24 #include <eikenv.h> |
|
25 #include <e32base.h> |
|
26 |
|
27 CCSXHMainTopics* CCSXHMainTopics::NewL(const TUid& aUid, const TApaAppCaption& aAppCaption) |
|
28 { |
|
29 CCSXHMainTopics* self = CCSXHMainTopics::NewLC(aUid,aAppCaption); |
|
30 CleanupStack::Pop(self); |
|
31 return self; |
|
32 } |
|
33 |
|
34 CCSXHMainTopics* CCSXHMainTopics::NewLC(const TUid& aUid,const TApaAppCaption& aAppCaption) |
|
35 { |
|
36 CCSXHMainTopics* self = new(ELeave) CCSXHMainTopics(aUid, aAppCaption); |
|
37 CleanupStack::PushL(self); |
|
38 return self; |
|
39 } |
|
40 |
|
41 CCSXHMainTopics::CCSXHMainTopics(const TUid& aUid,const TDesC& aName) : |
|
42 CCSXHGenericTOC1(aName), iUid(aUid) |
|
43 {//No implementation required |
|
44 } |
|
45 |
|
46 CCSXHMainTopics::~CCSXHMainTopics() |
|
47 {//No implementation required |
|
48 } |
|
49 |
|
50 TUid CCSXHMainTopics::GetViewID() const |
|
51 { |
|
52 return iUid; |
|
53 } |
|
54 |
|
55 void CCSXHMainTopics::ResetChildList() |
|
56 { |
|
57 if(iChildList == NULL) |
|
58 return; |
|
59 TInt count = iChildList->Count(); |
|
60 for(TInt i=0;i<count;++i ) |
|
61 { |
|
62 STATIC_CAST(CCSXHGenericTOC1*,(*iChildList)[i])->ResetChildList(); |
|
63 } |
|
64 } |