ncdengine/provider/server/src/ncdsearchnodeitem.cpp
author Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
Mon, 21 Jun 2010 15:48:28 +0300
branchRCL_3
changeset 51 5bddc28da627
parent 0 ba25891c3a9e
permissions -rw-r--r--
Revision: 201023 Kit: 2010125

/*
* Copyright (c) 2006 Nokia Corporation and/or its subsidiary(-ies).
* All rights reserved.
* This component and the accompanying materials are made available
* under the terms of "Eclipse Public License v1.0"
* which accompanies this distribution, and is available
* at the URL "http://www.eclipse.org/legal/epl-v10.html".
*
* Initial Contributors:
* Nokia Corporation - initial contribution.
*
* Contributors:
*
* Description:   Implements CNcdSearchNodeItem class
*
*/


#include "ncdsearchnodeitem.h"
#include "ncdnodeitemlink.h"
#include "ncdnodeitemmetadata.h"
#include "ncdnodemanager.h"
#include "catalogssession.h"
#include "catalogsbasemessage.h"
#include "ncdnodeclassids.h"


CNcdSearchNodeItem::CNcdSearchNodeItem( CNcdNodeManager& aNodeManager )
: CNcdNodeItem( aNodeManager,
            NcdNodeClassIds::ENcdSearchItemNodeClassId,
            NcdNodeClassIds::ENcdItemNodeLinkClassId,
            NcdNodeClassIds::ENcdItemNodeMetaDataClassId )
    {
    }

void CNcdSearchNodeItem::ConstructL( const CNcdNodeIdentifier& aIdentifier )
    {
    CNcdNodeItem::ConstructL( aIdentifier );
    }


CNcdSearchNodeItem::~CNcdSearchNodeItem()
    {
    }
        

CNcdSearchNodeItem* CNcdSearchNodeItem::NewL( CNcdNodeManager& aNodeManager,
                                              const CNcdNodeIdentifier& aIdentifier )
    {
    CNcdSearchNodeItem* self = 
        CNcdSearchNodeItem::NewLC( aNodeManager, aIdentifier );
    CleanupStack::Pop( self );
    return self;        
    }

CNcdSearchNodeItem* CNcdSearchNodeItem::NewLC( CNcdNodeManager& aNodeManager,
                                               const CNcdNodeIdentifier& aIdentifier )
    {
    CNcdSearchNodeItem* self = 
        new( ELeave ) CNcdSearchNodeItem( aNodeManager );
    CleanupClosePushL( *self );
    self->ConstructL( aIdentifier );
    return self;        
    }