|
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: Contains CNcdRootNode class |
|
15 * |
|
16 */ |
|
17 |
|
18 |
|
19 #ifndef NCDROOTNODE_H |
|
20 #define NCDROOTNODE_H |
|
21 |
|
22 |
|
23 #include "ncdparentoftransparentnode.h" |
|
24 |
|
25 class CNcdNodeManager; |
|
26 class CNcdNodeIdentifier; |
|
27 class CNcdContentSourceMap; |
|
28 |
|
29 |
|
30 class CNcdRootNode : public CNcdParentOfTransparentNode |
|
31 { |
|
32 public: |
|
33 /** |
|
34 * @see CNcdNodeFolder::NewL |
|
35 * |
|
36 * @return CNcdRootNode* Pointer to the created object |
|
37 * of this class. |
|
38 */ |
|
39 static CNcdRootNode* NewL( CNcdNodeManager& aNodeManager, |
|
40 const CNcdNodeIdentifier& aIdentifier ); |
|
41 |
|
42 /** |
|
43 * @see CNcdRootNode::NewL |
|
44 */ |
|
45 static CNcdRootNode* NewLC( CNcdNodeManager& aNodeManager, |
|
46 const CNcdNodeIdentifier& aIdentifier ); |
|
47 |
|
48 /** |
|
49 * Destructor. |
|
50 */ |
|
51 virtual ~CNcdRootNode(); |
|
52 |
|
53 CNcdContentSourceMap& ContentSourceMap(); |
|
54 void SetContentSourceMap( CNcdContentSourceMap* aMap ); |
|
55 |
|
56 |
|
57 public: // CNcdNode |
|
58 |
|
59 /** |
|
60 * @see CNcdParentOfTransparentNode::ExternalizeL |
|
61 */ |
|
62 virtual void ExternalizeL( RWriteStream& aStream ); |
|
63 |
|
64 |
|
65 /** |
|
66 * @see CNcdParentOfTransparentNode::InternalizeL |
|
67 */ |
|
68 virtual void InternalizeL( RReadStream& aStream ); |
|
69 |
|
70 |
|
71 |
|
72 public: // CNcdNodeFolder |
|
73 |
|
74 /** |
|
75 * @see CNcdNodeFolder::ServerChildCount |
|
76 */ |
|
77 virtual TInt ServerChildCount() const; |
|
78 |
|
79 /** |
|
80 * @see CNcdNodeFolder::ChildByServerIndexL |
|
81 */ |
|
82 virtual const CNcdNodeIdentifier& ChildByServerIndexL( TInt aIndex ) const; |
|
83 |
|
84 |
|
85 protected: |
|
86 |
|
87 /** |
|
88 * @see CNcdParentOfTransparentNode::CNcdParentOfTransparentNode |
|
89 */ |
|
90 CNcdRootNode( CNcdNodeManager& aNodeManager, |
|
91 NcdNodeClassIds::TNcdNodeClassId aNodeClassId = NcdNodeClassIds::ENcdRootNodeClassId ); |
|
92 |
|
93 /** |
|
94 * @see CNcdParentOfTransparentNode::ConstructL |
|
95 */ |
|
96 void ConstructL( const CNcdNodeIdentifier& aIdentifier ); |
|
97 |
|
98 |
|
99 private: // data |
|
100 |
|
101 CNcdContentSourceMap* iContentSourceMap; |
|
102 }; |
|
103 |
|
104 #endif // NCDROOTNODE_H |