|
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 CNcdNodeItemProxy class |
|
15 * |
|
16 */ |
|
17 |
|
18 |
|
19 #ifndef NCD_NODE_ITEM_PROXY_H |
|
20 #define NCD_NODE_ITEM_PROXY_H |
|
21 |
|
22 |
|
23 #include <e32base.h> |
|
24 |
|
25 #include "ncdnodeproxy.h" |
|
26 |
|
27 |
|
28 /** |
|
29 * Base class for the proxies. |
|
30 * Provides basic methods for client server session function calls. |
|
31 * |
|
32 * @lib ?library |
|
33 * @since S60 ?S60_version *** for example, S60 v3.0 |
|
34 */ |
|
35 class CNcdNodeItemProxy: public CNcdNodeProxy |
|
36 { |
|
37 |
|
38 public: |
|
39 |
|
40 /** |
|
41 * NewL |
|
42 * |
|
43 * @param aSession The session between the client proxy and the |
|
44 * corresponding server object. |
|
45 * @param aHandle The handle which identifies the server object |
|
46 * that this proxy uses. |
|
47 * @param aNodeManager The manager that creates the nodes and keeps |
|
48 * track of the existing nodes. |
|
49 * @param aOperationManager This manager is used to create operations |
|
50 * for the node. |
|
51 * @param aFavoriteManager This manager is used to add or remove favorite nodes. |
|
52 * @return CNcdNodeItemProxy* Pointer to the created object |
|
53 * of this class. |
|
54 */ |
|
55 static CNcdNodeItemProxy* NewL( MCatalogsClientServer& aSession, |
|
56 TInt aHandle, |
|
57 CNcdNodeManagerProxy& aNodeManager, |
|
58 CNcdOperationManagerProxy& aOperationManager, |
|
59 CNcdFavoriteManagerProxy& aFavoriteManager ); |
|
60 |
|
61 /** |
|
62 * NewLC |
|
63 * |
|
64 * @param aSession The session between the client proxy and the |
|
65 * corresponding server object. |
|
66 * @param aHandle The handle which identifies the server object |
|
67 * that this proxy uses. |
|
68 * @param aNodeManager The manager that creates the nodes and keeps |
|
69 * track of the existing nodes. |
|
70 * @param aOperationManager This manager is used to create operations |
|
71 * for the node. |
|
72 * @param aFavoriteManager This manager is used to add or remove favorite nodes. |
|
73 * @return CNcdNodeItemProxy* Pointer to the created object |
|
74 * of this class. |
|
75 */ |
|
76 static CNcdNodeItemProxy* NewLC( MCatalogsClientServer& aSession, |
|
77 TInt aHandle, |
|
78 CNcdNodeManagerProxy& aNodeManager, |
|
79 CNcdOperationManagerProxy& aOperationManager, |
|
80 CNcdFavoriteManagerProxy& aFavoriteManager ); |
|
81 |
|
82 |
|
83 /** |
|
84 * Destructor |
|
85 * |
|
86 * @note Usually Release function should be used instead of |
|
87 * directly calling delete for this class object. |
|
88 * |
|
89 */ |
|
90 virtual ~CNcdNodeItemProxy(); |
|
91 |
|
92 |
|
93 protected: // CNcdNodeProxy |
|
94 |
|
95 virtual void InternalizeNodeDataL( RReadStream& aStream ); |
|
96 virtual void InternalizeNodeLinkDataL( RReadStream& aStream ); |
|
97 |
|
98 |
|
99 protected: |
|
100 |
|
101 /** |
|
102 * Constructor |
|
103 * |
|
104 * @param aSession The session between the client proxy and the |
|
105 * corresponding server object. |
|
106 * @param aHandle The handle which identifies the server object |
|
107 * that this proxy uses. |
|
108 * @param aNodeManager The manager that creates the nodes and keeps |
|
109 * track of the existing nodes. |
|
110 * @param aOperationManager This manager is used to create operations |
|
111 * for the node. |
|
112 * @param aFavoriteManager This manager is used to add or remove favorite nodes. |
|
113 */ |
|
114 CNcdNodeItemProxy( MCatalogsClientServer& aSession, |
|
115 TInt aHandle, |
|
116 CNcdNodeManagerProxy& aNodeManager, |
|
117 CNcdOperationManagerProxy& aOperationManager, |
|
118 CNcdFavoriteManagerProxy& aFavoriteManager ); |
|
119 |
|
120 /** |
|
121 * ConstructL |
|
122 */ |
|
123 virtual void ConstructL(); |
|
124 |
|
125 |
|
126 private: |
|
127 // Prevent if not implemented |
|
128 CNcdNodeItemProxy( const CNcdNodeItemProxy& aObject ); |
|
129 CNcdNodeItemProxy& operator =( const CNcdNodeItemProxy& aObject ); |
|
130 |
|
131 |
|
132 private: // data |
|
133 |
|
134 }; |
|
135 |
|
136 |
|
137 #endif // NCD_NODE_ITEM_PROXY_H |