idlehomescreen/inc/mxndomlistitem.h
changeset 0 f72a12da539e
equal deleted inserted replaced
-1:000000000000 0:f72a12da539e
       
     1 /*
       
     2 * Copyright (c) 2005,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:  Interface class for dom list items.
       
    15 *
       
    16 */
       
    17 
       
    18 
       
    19 
       
    20 #ifndef MXN_DOM_LIST_ITEM_H
       
    21 #define MXN_DOM_LIST_ITEM_H
       
    22 
       
    23 //  INCLUDES
       
    24 
       
    25 // FORWARD DECLARATIONS
       
    26 
       
    27 
       
    28 // CLASS DECLARATION
       
    29 
       
    30 /**
       
    31 *  @ingroup group_domdocument
       
    32 *  Class represents a list item interface. Items are stored into
       
    33 *  a CXnDomList as a instance of this class.
       
    34 *
       
    35 *  @lib xndomdocument.lib
       
    36 *  @since Series 60 3.1
       
    37 */
       
    38 class MXnDomListItem
       
    39     {
       
    40     public:  // Destructor
       
    41         
       
    42         /**
       
    43         * Destructor.
       
    44         */
       
    45         virtual ~MXnDomListItem(){}
       
    46 
       
    47     public: // Serializing
       
    48                         
       
    49         /**
       
    50         * This list item's data size in bytes.
       
    51         * @since Series 60 3.1
       
    52         * @return Data size in bytes.
       
    53         */
       
    54         virtual TInt Size() const=0;
       
    55         
       
    56         /**
       
    57         * Externalize list item.
       
    58         * @since Series 60 3.1
       
    59         * @param aStream Output stream
       
    60         */
       
    61         virtual void ExternalizeL( RWriteStream& aStream )const=0;
       
    62         
       
    63         /**
       
    64         * Internalize list item.
       
    65         * @since Series 60 3.1
       
    66         * @param aStream Input stream
       
    67         */
       
    68         virtual void InternalizeL( RReadStream& aStream )=0;
       
    69         
       
    70         
       
    71         
       
    72     public: //Accessing     
       
    73         /**
       
    74         * Get the name of this item as UTF8 encoded, if any. 
       
    75         * @since Series 60 3.1
       
    76         * @return Name buffer or KNullDesC8
       
    77         */
       
    78         virtual const TDesC8& Name()=0;     
       
    79  
       
    80     };
       
    81 
       
    82 #endif      // MXN_DOM_LIST_ITEM_H 
       
    83             
       
    84 // End of File