|
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 implementation |
|
15 * |
|
16 */ |
|
17 |
|
18 |
|
19 #include "ncdnodeitemproxy.h" |
|
20 #include "catalogsclientserver.h" |
|
21 #include "ncdnodemanagerproxy.h" |
|
22 #include "ncdoperationmanagerproxy.h" |
|
23 #include "catalogsdebug.h" |
|
24 |
|
25 |
|
26 CNcdNodeItemProxy::CNcdNodeItemProxy( MCatalogsClientServer& aSession, |
|
27 TInt aHandle, |
|
28 CNcdNodeManagerProxy& aNodeManager, |
|
29 CNcdOperationManagerProxy& aOperationManager, |
|
30 CNcdFavoriteManagerProxy& aFavoriteManager ) |
|
31 : CNcdNodeProxy( aSession, aHandle, aNodeManager, aOperationManager, aFavoriteManager ) |
|
32 { |
|
33 } |
|
34 |
|
35 |
|
36 void CNcdNodeItemProxy::ConstructL() |
|
37 { |
|
38 CNcdNodeProxy::ConstructL(); |
|
39 } |
|
40 |
|
41 |
|
42 CNcdNodeItemProxy::~CNcdNodeItemProxy() |
|
43 { |
|
44 } |
|
45 |
|
46 |
|
47 CNcdNodeItemProxy* CNcdNodeItemProxy::NewL( MCatalogsClientServer& aSession, |
|
48 TInt aHandle, |
|
49 CNcdNodeManagerProxy& aNodeManager, |
|
50 CNcdOperationManagerProxy& aOperationManager, |
|
51 CNcdFavoriteManagerProxy& aFavoriteManager ) |
|
52 { |
|
53 CNcdNodeItemProxy* self = |
|
54 CNcdNodeItemProxy::NewLC( |
|
55 aSession, aHandle, aNodeManager, aOperationManager, aFavoriteManager ); |
|
56 CleanupStack::Pop( self ); |
|
57 return self; |
|
58 } |
|
59 |
|
60 CNcdNodeItemProxy* CNcdNodeItemProxy::NewLC( MCatalogsClientServer& aSession, |
|
61 TInt aHandle, |
|
62 CNcdNodeManagerProxy& aNodeManager, |
|
63 CNcdOperationManagerProxy& aOperationManager, |
|
64 CNcdFavoriteManagerProxy& aFavoriteManager ) |
|
65 { |
|
66 CNcdNodeItemProxy* self = |
|
67 new( ELeave ) CNcdNodeItemProxy( |
|
68 aSession, aHandle, aNodeManager, aOperationManager, aFavoriteManager ); |
|
69 // Using PushL because the object does not have any references yet |
|
70 CleanupStack::PushL( self ); |
|
71 self->ConstructL(); |
|
72 return self; |
|
73 } |
|
74 |
|
75 |
|
76 void CNcdNodeItemProxy::InternalizeNodeDataL( RReadStream& aStream ) |
|
77 { |
|
78 DLTRACEIN(("")); |
|
79 // First internalize parent data |
|
80 CNcdNodeProxy::InternalizeNodeDataL( aStream ); |
|
81 |
|
82 // Nothing else to do here |
|
83 } |
|
84 |
|
85 void CNcdNodeItemProxy::InternalizeNodeLinkDataL( RReadStream& aStream ) |
|
86 { |
|
87 DLTRACEIN(("")); |
|
88 // First internalize parent data |
|
89 CNcdNodeProxy::InternalizeNodeLinkDataL( aStream ); |
|
90 |
|
91 // Nothing else to do here |
|
92 } |
|
93 |