upnpmediaserver/contentdirectoryservice/inc/upnpmapelement.h
changeset 0 7f85d04be362
equal deleted inserted replaced
-1:000000000000 0:7f85d04be362
       
     1 /** @file
       
     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:  Element table data handler
       
    15 *
       
    16 */
       
    17 
       
    18 
       
    19 
       
    20 #ifndef UPNPMAPELEMENT_H
       
    21 #define UPNPMAPELEMENT_H
       
    22 
       
    23 //  INCLUDES
       
    24 #include "upnptablebean.h"
       
    25 #include <e32base.h>
       
    26 #include <d32dbms.h>
       
    27 
       
    28 class CUpnpElement;
       
    29 class CUpnpObject;
       
    30 class CUri8;
       
    31 
       
    32 // CLASS DECLARATION
       
    33 
       
    34 /**
       
    35 *  Stores the data of element table row.
       
    36 *
       
    37 *  @lib AVContentDirectory.lib
       
    38 *  @since Series60 3.1
       
    39 */
       
    40 class CUpnpMapElement: public CBase 
       
    41 {
       
    42 public:  // Constructors and destructor
       
    43     
       
    44     /**
       
    45     * Two-phased constructor.
       
    46     */
       
    47     static CUpnpMapElement* NewLC(const TDesC8& aKey, TAny* aValue);
       
    48     static CUpnpMapElement* NewL(const TDesC8& aKey, TAny* aValue);
       
    49 
       
    50     /**
       
    51     * Destructor.
       
    52     */
       
    53     virtual ~CUpnpMapElement();
       
    54 
       
    55 public: // New functions
       
    56     
       
    57     /**
       
    58     * Adds the whole element to the given TXmlEngElement.
       
    59     * @param aElement a element to which the value will be attached
       
    60     * @since Series S60 3.0
       
    61     */
       
    62     const TDesC8& Key();
       
    63     TAny* Value();
       
    64     CUpnpMapElement* Next();
       
    65     void SetNext(CUpnpMapElement* aNext);
       
    66 
       
    67 private:
       
    68 
       
    69     /**
       
    70     * C++ default constructor.
       
    71     */
       
    72     CUpnpMapElement(TAny* iItem);
       
    73 
       
    74     /**
       
    75     * By default Symbian 2nd phase constructor is private.
       
    76     */
       
    77     void ConstructL(const TDesC8& aKey);
       
    78     
       
    79 
       
    80 private:    // Data
       
    81     HBufC8*             iKey; // owned
       
    82     TAny*               iValue;// not owned
       
    83     CUpnpMapElement*    iNext;// not owned
       
    84 };
       
    85 
       
    86 #endif      // UPNPMAPELEMENT_H   
       
    87         
       
    88 // End of File