ncdengine/provider/server/inc/ncdnodeitem.h
changeset 0 ba25891c3a9e
equal deleted inserted replaced
-1:000000000000 0:ba25891c3a9e
       
     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 CNcdNodeItem class
       
    15 *
       
    16 */
       
    17 
       
    18 
       
    19 #ifndef NCD_NODE_ITEM_H
       
    20 #define NCD_NODE_ITEM_H
       
    21 
       
    22 
       
    23 #include <e32cmn.h>
       
    24 
       
    25 #include "ncdnodeimpl.h"
       
    26 
       
    27 
       
    28 class CNcdNodeItemLink;
       
    29 class CNcdNodeMetaDataLink;
       
    30 
       
    31 
       
    32 /**
       
    33  *  This class provides item specific functionality for the nodes.
       
    34  *
       
    35  *  @see CNcdNode
       
    36  */
       
    37 class CNcdNodeItem : public CNcdNode
       
    38     {
       
    39     
       
    40 public:
       
    41 
       
    42     /**
       
    43      * NewL
       
    44      *
       
    45      * Note, that node link contains the metadata id.
       
    46      * Because node link contains metadata id, set meta data function
       
    47      * is not provided in this class.
       
    48      * @return CNcdNodeItem* Pointer to the created object 
       
    49      * of this class.
       
    50      */
       
    51     static CNcdNodeItem* NewL( CNcdNodeManager& aNodeManager,
       
    52                                const CNcdNodeIdentifier& aIdentifier );
       
    53 
       
    54     /**
       
    55      * @see CNcdNodeItem::NewL
       
    56      */
       
    57     static CNcdNodeItem* NewLC( CNcdNodeManager& aNodeManager,
       
    58                                 const CNcdNodeIdentifier& aIdentifier );
       
    59 
       
    60 
       
    61     /**
       
    62      * Destructor
       
    63      */
       
    64     virtual ~CNcdNodeItem();
       
    65 
       
    66 
       
    67 protected:
       
    68 
       
    69     /**
       
    70      * @see CNcdNode::CNcdNode
       
    71      *
       
    72      */
       
    73     CNcdNodeItem( CNcdNodeManager& aNodeManager,
       
    74         NcdNodeClassIds::TNcdNodeClassId aNodeClassId = NcdNodeClassIds::ENcdItemNodeClassId, 
       
    75         NcdNodeClassIds::TNcdNodeClassId aAcceptedLinkClassId = NcdNodeClassIds::ENcdItemNodeLinkClassId,
       
    76         NcdNodeClassIds::TNcdNodeClassId aAcceptedMetaDataClassId = NcdNodeClassIds::ENcdItemNodeMetaDataClassId );
       
    77     
       
    78     /**
       
    79      * @see CNcdNode::ConstructL
       
    80      */
       
    81     virtual void ConstructL( const CNcdNodeIdentifier& aIdentifier );
       
    82 
       
    83 
       
    84     /**
       
    85      * @see CNcdNode::CreateLinkL
       
    86      */
       
    87     virtual CNcdNodeLink* CreateLinkL();
       
    88 
       
    89 
       
    90     /** 
       
    91      * @see CNcdNode::ExternalizeDataForRequestL
       
    92      */
       
    93     virtual void ExternalizeDataForRequestL( RWriteStream& aStream ) const;    
       
    94     
       
    95     
       
    96 private:
       
    97     
       
    98     // Prevent these two if they are not implemented
       
    99     CNcdNodeItem( const CNcdNodeItem& aObject );
       
   100     CNcdNodeItem& operator =( const CNcdNodeItem& aObject );
       
   101 
       
   102 
       
   103 private: // data
       
   104     
       
   105     };
       
   106 
       
   107 
       
   108 #endif // NCD_NODE_ITEM_H