|
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 CNcdSearchNodeBundleProxy class |
|
15 * |
|
16 */ |
|
17 |
|
18 |
|
19 #ifndef C_NCDSEARCHNODEBUNDLEPROXY_H |
|
20 #define C_NCDSEARCHNODEBUNDLEPROXY_H |
|
21 |
|
22 #include "ncdsearchnodefolderproxy.h" |
|
23 #include "ncdbundle.h" |
|
24 |
|
25 class CNcdSearchNodeBundleProxy : public CNcdSearchNodeFolderProxy |
|
26 { |
|
27 public: |
|
28 /** |
|
29 * NewL |
|
30 * |
|
31 * @param aSession The session between the client proxy and the |
|
32 * corresponding server object. |
|
33 * @param aHandle The handle which identifies the server object |
|
34 * that this proxy uses. |
|
35 * @param aNodeManager The manager that creates the nodes and keeps |
|
36 * track of the existing nodes. |
|
37 * @param aOperationManager This manager is used to create operations |
|
38 * for the node. |
|
39 * @param aFavoriteManager This manager is used to add or remove favorite nodes. |
|
40 * @return CNcdSearchNodeBundleProxy* Pointer to the created object |
|
41 * of this class. |
|
42 */ |
|
43 static CNcdSearchNodeBundleProxy* NewL( MCatalogsClientServer& aSession, |
|
44 TInt aHandle, |
|
45 CNcdNodeManagerProxy& aNodeManager, |
|
46 CNcdOperationManagerProxy& aOperationManager, |
|
47 CNcdFavoriteManagerProxy& aFavoriteManager ); |
|
48 |
|
49 /** |
|
50 * NewL |
|
51 * |
|
52 * @param aSession The session between the client proxy and the |
|
53 * corresponding server object. |
|
54 * @param aHandle The handle which identifies the server object |
|
55 * that this proxy uses. |
|
56 * @param aNodeManager The manager that creates the nodes and keeps |
|
57 * track of the existing nodes. |
|
58 * @param aOperationManager This manager is used to create operations |
|
59 * for the node. |
|
60 * @param aFavoriteManager This manager is used to add or remove favorite nodes. |
|
61 * @return CNcdSearchNodeBundleProxy* Pointer to the created object |
|
62 * of this class. |
|
63 */ |
|
64 static CNcdSearchNodeBundleProxy* NewLC( MCatalogsClientServer& aSession, |
|
65 TInt aHandle, |
|
66 CNcdNodeManagerProxy& aNodeManager, |
|
67 CNcdOperationManagerProxy& aOperationManager, |
|
68 CNcdFavoriteManagerProxy& aFavoriteManager ); |
|
69 |
|
70 virtual ~CNcdSearchNodeBundleProxy(); |
|
71 |
|
72 public: // MNcdNodeContainer |
|
73 |
|
74 /** |
|
75 * @see MNcdNodeContainer::ChildCount |
|
76 */ |
|
77 virtual TInt ChildCount() const; |
|
78 |
|
79 /** |
|
80 * @see MNcdNodeContainer:: ChildL |
|
81 */ |
|
82 virtual MNcdNode* ChildL( TInt aIndex ); |
|
83 |
|
84 /** |
|
85 * @see MNcdNodeContainer::LoadChildrenL |
|
86 */ |
|
87 virtual MNcdLoadNodeOperation* LoadChildrenL( TInt aIndex, |
|
88 TInt aSize, |
|
89 TNcdChildLoadMode aMode, |
|
90 MNcdLoadNodeOperationObserver& aObserver ); |
|
91 |
|
92 protected: |
|
93 |
|
94 /** |
|
95 * Constructor |
|
96 * |
|
97 * @param aSession The session between the client proxy and the |
|
98 * corresponding server object. |
|
99 * @param aHandle The handle which identifies the server object |
|
100 * that this proxy uses. |
|
101 * @param aNodeManager The manager that creates the nodes and keeps |
|
102 * track of the existing nodes. |
|
103 * @param aOperationManager This manager is used to create operations |
|
104 * for the node. |
|
105 * @param aFavoriteManager This manager is used to add or remove favorite nodes. |
|
106 */ |
|
107 CNcdSearchNodeBundleProxy( MCatalogsClientServer& aSession, |
|
108 TInt aHandle, |
|
109 CNcdNodeManagerProxy& aNodeManager, |
|
110 CNcdOperationManagerProxy& aOperationManager, |
|
111 CNcdFavoriteManagerProxy& aFavoriteManager ); |
|
112 |
|
113 }; |
|
114 |
|
115 #endif |