|
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: Declaration of CNcdBundleFolder class. |
|
15 * |
|
16 */ |
|
17 |
|
18 |
|
19 #ifndef C_NCDBUNDLEFOLDER_H |
|
20 #define C_NCDBUNDLEFOLDER_H |
|
21 |
|
22 #include "ncdparentoftransparentnode.h" |
|
23 |
|
24 /** |
|
25 * Represents a folder of catalog bundle in server side. |
|
26 */ |
|
27 class CNcdBundleFolder : public CNcdParentOfTransparentNode |
|
28 { |
|
29 public: |
|
30 |
|
31 /** |
|
32 * @see CNcdNodeFolder::NewL |
|
33 */ |
|
34 static CNcdBundleFolder* NewL( |
|
35 CNcdNodeManager& aNodeManager, |
|
36 const CNcdNodeIdentifier& aIdentifier ); |
|
37 |
|
38 /** |
|
39 * @see CNcdNodeBundleFolder::NewL |
|
40 */ |
|
41 static CNcdBundleFolder* NewLC( |
|
42 CNcdNodeManager& aNodeManager, |
|
43 const CNcdNodeIdentifier& aIdentifier ); |
|
44 |
|
45 |
|
46 /** |
|
47 * Destructor |
|
48 */ |
|
49 virtual ~CNcdBundleFolder(); |
|
50 |
|
51 |
|
52 public: // CNcdNodeFolder |
|
53 |
|
54 /** |
|
55 * @see CNcdNodeFolder::ServerChildCount |
|
56 */ |
|
57 virtual TInt ServerChildCount() const; |
|
58 |
|
59 /** |
|
60 * @see CNcdNodeFolder::ChildByServerIndexL |
|
61 */ |
|
62 virtual const CNcdNodeIdentifier& ChildByServerIndexL( TInt aIndex ) const; |
|
63 |
|
64 |
|
65 public: |
|
66 |
|
67 const TDesC& ViewType() const; |
|
68 |
|
69 void SetViewTypeL( const TDesC& aViewType ); |
|
70 |
|
71 |
|
72 |
|
73 public: // CNcdNode |
|
74 |
|
75 /** |
|
76 * @see CNcdParentOfTransparentNode::ExternalizeL |
|
77 */ |
|
78 virtual void ExternalizeL( RWriteStream& aStream ); |
|
79 |
|
80 /** |
|
81 * @see CNcdParentOfTransparentNode::InternalizeL |
|
82 */ |
|
83 virtual void InternalizeL( RReadStream& aStream ); |
|
84 |
|
85 /** |
|
86 * @see CNcdNode::ExternalizeDataForRequestL |
|
87 */ |
|
88 virtual void ExternalizeDataForRequestL( RWriteStream& aStream ) const; |
|
89 |
|
90 |
|
91 protected: |
|
92 |
|
93 /** |
|
94 * @see CNcdNodeFolder::CNcdNodeFolder |
|
95 */ |
|
96 CNcdBundleFolder( CNcdNodeManager& aNodeManager, |
|
97 NcdNodeClassIds::TNcdNodeClassId aNodeClassId |
|
98 = NcdNodeClassIds::ENcdBundleFolderNodeClassId ); |
|
99 |
|
100 void ConstructL( const CNcdNodeIdentifier& aIdentifier ); |
|
101 |
|
102 |
|
103 private: |
|
104 |
|
105 // Prevent these two if they are not implemented |
|
106 CNcdBundleFolder( const CNcdNodeFolder& aObject ); |
|
107 CNcdBundleFolder& operator =( const CNcdNodeFolder& aObject ); |
|
108 |
|
109 private: |
|
110 |
|
111 HBufC* iViewType; |
|
112 }; |
|
113 |
|
114 #endif |