|
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 CNcdParentOfTransparentNode class |
|
15 * |
|
16 */ |
|
17 |
|
18 |
|
19 #ifndef NCDPARENTOFTRANSPARENTNODE_H |
|
20 #define NCDPARENTOFTRANSPARENTNODE_H |
|
21 |
|
22 #include "ncdnodefolder.h" |
|
23 |
|
24 class CNcdNodeManager; |
|
25 class CNcdNodeIdentifier; |
|
26 |
|
27 |
|
28 class CNcdParentOfTransparentNode : public CNcdNodeFolder |
|
29 { |
|
30 public: |
|
31 /** |
|
32 * Destructor. |
|
33 */ |
|
34 virtual ~CNcdParentOfTransparentNode(); |
|
35 |
|
36 public: //New functions |
|
37 |
|
38 /** |
|
39 * Checks whether a transparent child has been expired. |
|
40 * |
|
41 * @return ETrue if one of the children is expired/uninitialized or missing. |
|
42 */ |
|
43 TBool IsTransparentChildExpiredL() const; |
|
44 |
|
45 public: // CCatalogsCommunicable |
|
46 |
|
47 /** |
|
48 * @see CCatalogsCommunicable::ReceiveMessage |
|
49 */ |
|
50 virtual void ReceiveMessage( MCatalogsBaseMessage* aMessage, |
|
51 TInt aFunctionNumber ); |
|
52 |
|
53 public: // CNcdNode |
|
54 |
|
55 /** |
|
56 * @see CNcdNodeFolder::ExternalizeL |
|
57 */ |
|
58 virtual void ExternalizeL( RWriteStream& aStream ); |
|
59 |
|
60 |
|
61 /** |
|
62 * @see CNcdNodeFolder::InternalizeL |
|
63 */ |
|
64 virtual void InternalizeL( RReadStream& aStream ); |
|
65 |
|
66 |
|
67 protected: |
|
68 |
|
69 /** |
|
70 * @see CNcdNodeFolder::CNcdNodeFolder |
|
71 */ |
|
72 CNcdParentOfTransparentNode( CNcdNodeManager& aNodeManager, |
|
73 NcdNodeClassIds::TNcdNodeClassId aNodeClassId = NcdNodeClassIds::ENcdRootNodeClassId ); |
|
74 |
|
75 /** |
|
76 * @see CNcdNodeFolder::ConstructL |
|
77 */ |
|
78 void ConstructL( const CNcdNodeIdentifier& aIdentifier ); |
|
79 |
|
80 |
|
81 /** |
|
82 * @see CNcdNode::ExternalizeDataForRequestL |
|
83 */ |
|
84 virtual void ExternalizeDataForRequestL( RWriteStream& aStream ) const; |
|
85 |
|
86 |
|
87 /** |
|
88 * This function replaces transparent folder by their children |
|
89 * when the child array is sent for the proxy. |
|
90 * |
|
91 * @see CNcdNodeFolder::ExternalizeChildArrayForRequestL |
|
92 */ |
|
93 virtual void ExternalizeChildArrayForRequestL( RWriteStream& aStream ) const; |
|
94 |
|
95 /** |
|
96 * Checks whether a transparent child has been expired, writes the answer to the message and |
|
97 * completes it. |
|
98 */ |
|
99 void IsTransparentChildExpiredL( MCatalogsBaseMessage& aMessage ) const; |
|
100 |
|
101 private: |
|
102 |
|
103 // Prevent these if not implemented |
|
104 CNcdParentOfTransparentNode( const CNcdParentOfTransparentNode& aObject ); |
|
105 CNcdParentOfTransparentNode& operator =( const CNcdParentOfTransparentNode& aObject ); |
|
106 |
|
107 |
|
108 private: // data |
|
109 |
|
110 }; |
|
111 |
|
112 #endif // NCDPARENTOFTRANSPARENTNODE_H |