|
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: Implements CNcdSearchNodeItem class |
|
15 * |
|
16 */ |
|
17 |
|
18 |
|
19 #include "ncdsearchnodeitem.h" |
|
20 #include "ncdnodeitemlink.h" |
|
21 #include "ncdnodeitemmetadata.h" |
|
22 #include "ncdnodemanager.h" |
|
23 #include "catalogssession.h" |
|
24 #include "catalogsbasemessage.h" |
|
25 #include "ncdnodeclassids.h" |
|
26 |
|
27 |
|
28 CNcdSearchNodeItem::CNcdSearchNodeItem( CNcdNodeManager& aNodeManager ) |
|
29 : CNcdNodeItem( aNodeManager, |
|
30 NcdNodeClassIds::ENcdSearchItemNodeClassId, |
|
31 NcdNodeClassIds::ENcdItemNodeLinkClassId, |
|
32 NcdNodeClassIds::ENcdItemNodeMetaDataClassId ) |
|
33 { |
|
34 } |
|
35 |
|
36 void CNcdSearchNodeItem::ConstructL( const CNcdNodeIdentifier& aIdentifier ) |
|
37 { |
|
38 CNcdNodeItem::ConstructL( aIdentifier ); |
|
39 } |
|
40 |
|
41 |
|
42 CNcdSearchNodeItem::~CNcdSearchNodeItem() |
|
43 { |
|
44 } |
|
45 |
|
46 |
|
47 CNcdSearchNodeItem* CNcdSearchNodeItem::NewL( CNcdNodeManager& aNodeManager, |
|
48 const CNcdNodeIdentifier& aIdentifier ) |
|
49 { |
|
50 CNcdSearchNodeItem* self = |
|
51 CNcdSearchNodeItem::NewLC( aNodeManager, aIdentifier ); |
|
52 CleanupStack::Pop( self ); |
|
53 return self; |
|
54 } |
|
55 |
|
56 CNcdSearchNodeItem* CNcdSearchNodeItem::NewLC( CNcdNodeManager& aNodeManager, |
|
57 const CNcdNodeIdentifier& aIdentifier ) |
|
58 { |
|
59 CNcdSearchNodeItem* self = |
|
60 new( ELeave ) CNcdSearchNodeItem( aNodeManager ); |
|
61 CleanupClosePushL( *self ); |
|
62 self->ConstructL( aIdentifier ); |
|
63 return self; |
|
64 } |