|
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 CNcdParentOfTransparentNodeProxy class |
|
15 * |
|
16 */ |
|
17 |
|
18 |
|
19 #ifndef NCD_PARENT_OF_TRANSPARENT_NODE_PROXY_H |
|
20 #define NCD_PARENT_OF_TRANSPARENT_NODE_PROXY_H |
|
21 |
|
22 |
|
23 #include "ncdnodefolderproxy.h" |
|
24 |
|
25 |
|
26 /** |
|
27 * Parent of transparent classes. |
|
28 * Because of children of this class object may be transparent, it means |
|
29 * that the child count of the server side object may not match the child count |
|
30 * of the proxy when transparent children are replaced by their children. |
|
31 * This class object provides the actual server side child count. That may be |
|
32 * used for special cases. |
|
33 * |
|
34 * @lib ?library |
|
35 * @since S60 ?S60_version *** for example, S60 v3.0 |
|
36 */ |
|
37 class CNcdParentOfTransparentNodeProxy: public CNcdNodeFolderProxy |
|
38 { |
|
39 |
|
40 public: |
|
41 |
|
42 /** |
|
43 * Destructor |
|
44 * |
|
45 * @note Usually Release function should be used instead of |
|
46 * directly calling delete for this class object. |
|
47 * |
|
48 */ |
|
49 virtual ~CNcdParentOfTransparentNodeProxy(); |
|
50 |
|
51 |
|
52 /** |
|
53 * @return TInt The child count that the corresponding server side object has. |
|
54 */ |
|
55 TInt ServerChildCount() const; |
|
56 |
|
57 |
|
58 protected: // CNcdNodeFolderProxy |
|
59 |
|
60 /** |
|
61 * @see CNcdNodeFolderProxy::InternalizeNodeDataL |
|
62 */ |
|
63 virtual void InternalizeNodeDataL( RReadStream& aStream ); |
|
64 |
|
65 |
|
66 protected: |
|
67 |
|
68 /** |
|
69 * @see CNcdNodeFolderProxy::ConstructL |
|
70 */ |
|
71 CNcdParentOfTransparentNodeProxy( MCatalogsClientServer& aSession, |
|
72 TInt aHandle, |
|
73 CNcdNodeManagerProxy& aNodeManager, |
|
74 CNcdOperationManagerProxy& aOperationManager, |
|
75 CNcdFavoriteManagerProxy& aFavoriteManager ); |
|
76 |
|
77 /** |
|
78 * ConstructL |
|
79 */ |
|
80 virtual void ConstructL(); |
|
81 |
|
82 /** |
|
83 * Checks from server side that is any of the transparent children expired. |
|
84 * (Needs to be checked from server side because the transparent child folders do |
|
85 * not exist on proxy side) |
|
86 * |
|
87 * @return ETrue if one or more of the transp. children is expired. |
|
88 */ |
|
89 TBool IsTransparentChildExpiredL() const; |
|
90 |
|
91 |
|
92 private: |
|
93 // Prevent if not implemented |
|
94 CNcdParentOfTransparentNodeProxy( const CNcdParentOfTransparentNodeProxy& aObject ); |
|
95 CNcdParentOfTransparentNodeProxy& operator =( const CNcdParentOfTransparentNodeProxy& aObject ); |
|
96 |
|
97 |
|
98 private: // data |
|
99 |
|
100 TInt iServerChildCount; |
|
101 |
|
102 }; |
|
103 |
|
104 |
|
105 #endif // NCD_PARENT_OF_TRANSPARENT_NODE_PROXY_H |