ncdengine/provider/server/inc/ncdnodeitemlink.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 CNcdNodeItemLink class
       
    15 *
       
    16 */
       
    17 
       
    18 
       
    19 #ifndef NCD_NODE_ITEM_LINK_H
       
    20 #define NCD_NODE_ITEM_LINK_H
       
    21 
       
    22 
       
    23 #include "ncdnodelink.h"
       
    24 #include "ncdnodeclassids.h"
       
    25 
       
    26 class CNcdNode;
       
    27 
       
    28 
       
    29 /**
       
    30  *  CNcdNodeItemLink ...
       
    31  *  @lib ?library
       
    32  *  @since S60 ?S60_version *** for example, S60 v3.0
       
    33  */
       
    34 class CNcdNodeItemLink : public CNcdNodeLink
       
    35     {
       
    36 
       
    37 public:
       
    38 
       
    39     /**
       
    40      * NewL
       
    41      *
       
    42      * @param aNode The node that owns this link.
       
    43      * @return CNcdNodeItemLink* Pointer to the created object 
       
    44      * of this class.
       
    45      */
       
    46     static CNcdNodeItemLink* NewL( CNcdNode& aNode );
       
    47 
       
    48     /**
       
    49      * NewLC
       
    50      *
       
    51      * @param aNode The node that owns this link.
       
    52      * @return CNcdNodeItemLink* Pointer to the created object 
       
    53      * of this class.
       
    54      */
       
    55     static CNcdNodeItemLink* NewLC( CNcdNode& aNode );
       
    56 
       
    57 
       
    58     /**
       
    59      * Destructor
       
    60      */
       
    61     virtual ~CNcdNodeItemLink();
       
    62 
       
    63 
       
    64 public: // CNcdNodeLink
       
    65 
       
    66     /**
       
    67      * @see CNcdNodeLink::InternalizeL
       
    68      */
       
    69     virtual void InternalizeL( const MNcdPreminetProtocolEntityRef& aData,
       
    70                                const CNcdNodeIdentifier& aParentIdentifier,
       
    71                                const CNcdNodeIdentifier& aRequestParentIdentifier,
       
    72                                const TUid& aClientUid );
       
    73 
       
    74 
       
    75     /**
       
    76      * @see CNcdNodeLink::ExternalizeL
       
    77      */
       
    78     virtual void ExternalizeL( RWriteStream& aStream );
       
    79 
       
    80 
       
    81     /**
       
    82      * @see CNcdNodeLink::InternalizeL
       
    83      */
       
    84     virtual void InternalizeL( RReadStream& aStream );
       
    85 
       
    86 
       
    87 protected:
       
    88 
       
    89     /**
       
    90      * Constructor
       
    91      */
       
    92     CNcdNodeItemLink( CNcdNode& aNode,
       
    93                       NcdNodeClassIds::TNcdNodeClassId aClassId = NcdNodeClassIds::ENcdItemNodeLinkClassId );
       
    94 
       
    95     /**
       
    96      * ConstructL
       
    97      */
       
    98     virtual void ConstructL();
       
    99 
       
   100     /**
       
   101      * This function adds possible item link data to the stream after
       
   102      * the parent class data.
       
   103      */
       
   104     virtual void ExternalizeDataForRequestL( RWriteStream& aStream ) const;
       
   105     
       
   106     
       
   107 private:
       
   108 
       
   109     // Prevent these two if they are not implemented
       
   110     CNcdNodeItemLink( const CNcdNodeItemLink& aObject );
       
   111     CNcdNodeItemLink& operator =( const CNcdNodeItemLink& aObject );
       
   112 
       
   113 
       
   114 private: // data
       
   115 
       
   116     };
       
   117 
       
   118 
       
   119 #endif // NCD_NODE_ITEM_LINK_H