|
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 MStorable interface |
|
15 * |
|
16 */ |
|
17 |
|
18 |
|
19 #ifndef C_NCD_CHILD_ENTITY_MAP_H |
|
20 #define C_NCD_CHILD_ENTITY_MAP_H |
|
21 |
|
22 #include <e32cmn.h> |
|
23 |
|
24 class CNcdNodeIdentifier; |
|
25 class CNcdChildEntity; |
|
26 |
|
27 class CNcdChildEntityMap : public CBase |
|
28 { |
|
29 public: |
|
30 static CNcdChildEntityMap* NewL( |
|
31 const CNcdNodeIdentifier& aIdentifier, |
|
32 const RPointerArray<CNcdChildEntity>& aChildArray, |
|
33 TInt aChildCount ); |
|
34 |
|
35 static CNcdChildEntityMap* NewLC( |
|
36 const CNcdNodeIdentifier& aIdentifier, |
|
37 const RPointerArray<CNcdChildEntity>& aChildArray, |
|
38 TInt aChildCount ); |
|
39 |
|
40 ~CNcdChildEntityMap(); |
|
41 |
|
42 const CNcdNodeIdentifier& ParentIdentifier() const; |
|
43 |
|
44 const RPointerArray<CNcdChildEntity>& ChildArray() const; |
|
45 |
|
46 TInt ChildCount() const; |
|
47 |
|
48 private: |
|
49 CNcdChildEntityMap( TInt aChildCount ); |
|
50 |
|
51 void ConstructL( const CNcdNodeIdentifier& aIdentifier, |
|
52 const RPointerArray<CNcdChildEntity>& aChildArray ); |
|
53 |
|
54 private: |
|
55 CNcdNodeIdentifier* iParentIdentifier; |
|
56 RPointerArray<CNcdChildEntity> iChildArray; |
|
57 TInt iChildCount; |
|
58 }; |
|
59 |
|
60 #endif // C_NCD_CHILD_ENTITY_MAP_H |