ncdengine/provider/server/inc/ncdnodeitemlink.h
author Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
Fri, 12 Mar 2010 15:43:14 +0200
branchRCL_3
changeset 18 3ba40be8e484
parent 0 ba25891c3a9e
permissions -rw-r--r--
Revision: 201007 Kit: 201008

/*
* 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:   Contains CNcdNodeItemLink class
*
*/


#ifndef NCD_NODE_ITEM_LINK_H
#define NCD_NODE_ITEM_LINK_H


#include "ncdnodelink.h"
#include "ncdnodeclassids.h"

class CNcdNode;


/**
 *  CNcdNodeItemLink ...
 *  @lib ?library
 *  @since S60 ?S60_version *** for example, S60 v3.0
 */
class CNcdNodeItemLink : public CNcdNodeLink
    {

public:

    /**
     * NewL
     *
     * @param aNode The node that owns this link.
     * @return CNcdNodeItemLink* Pointer to the created object 
     * of this class.
     */
    static CNcdNodeItemLink* NewL( CNcdNode& aNode );

    /**
     * NewLC
     *
     * @param aNode The node that owns this link.
     * @return CNcdNodeItemLink* Pointer to the created object 
     * of this class.
     */
    static CNcdNodeItemLink* NewLC( CNcdNode& aNode );


    /**
     * Destructor
     */
    virtual ~CNcdNodeItemLink();


public: // CNcdNodeLink

    /**
     * @see CNcdNodeLink::InternalizeL
     */
    virtual void InternalizeL( const MNcdPreminetProtocolEntityRef& aData,
                               const CNcdNodeIdentifier& aParentIdentifier,
                               const CNcdNodeIdentifier& aRequestParentIdentifier,
                               const TUid& aClientUid );


    /**
     * @see CNcdNodeLink::ExternalizeL
     */
    virtual void ExternalizeL( RWriteStream& aStream );


    /**
     * @see CNcdNodeLink::InternalizeL
     */
    virtual void InternalizeL( RReadStream& aStream );


protected:

    /**
     * Constructor
     */
    CNcdNodeItemLink( CNcdNode& aNode,
                      NcdNodeClassIds::TNcdNodeClassId aClassId = NcdNodeClassIds::ENcdItemNodeLinkClassId );

    /**
     * ConstructL
     */
    virtual void ConstructL();

    /**
     * This function adds possible item link data to the stream after
     * the parent class data.
     */
    virtual void ExternalizeDataForRequestL( RWriteStream& aStream ) const;
    
    
private:

    // Prevent these two if they are not implemented
    CNcdNodeItemLink( const CNcdNodeItemLink& aObject );
    CNcdNodeItemLink& operator =( const CNcdNodeItemLink& aObject );


private: // data

    };


#endif // NCD_NODE_ITEM_LINK_H