upnpmediaserver/contentdirectoryservice/inc/upnpmapbase.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:  Declares ContentDirectory class.
       
    15 *
       
    16 */
       
    17 
       
    18 
       
    19 
       
    20 #ifndef UPNPMAPBASE_H
       
    21 #define UPNPMAPBASE_H
       
    22 
       
    23 
       
    24 #include <e32std.h>
       
    25 #include"upnpmapelement.h"
       
    26 
       
    27 
       
    28 // FORWARD DECLARATIONS
       
    29 
       
    30 /**
       
    31 * Implementation of simple map
       
    32 *
       
    33 *  @lib ContentDirectory
       
    34 *  @since Series 60 2.6
       
    35 */
       
    36 class CUpnpMapBase: public CBase
       
    37 {
       
    38 public:
       
    39 
       
    40     /**
       
    41     * Adds the whole element to the given TXmlEngElement.
       
    42     * @param aElement a element to which the value will be attached
       
    43     * @since Series S60 3.0
       
    44     */
       
    45 	void PutL(const TDesC8& aKey, TAny* aValue);
       
    46     TAny* Get(const TDesC8& aKey);
       
    47 	TAny* Remove(const TDesC8& aKey);
       
    48 
       
    49 	virtual void Clear() = 0;
       
    50 
       
    51 protected:
       
    52 
       
    53     /**
       
    54     * C++ default constructor.
       
    55     */
       
    56 	CUpnpMapBase();
       
    57 
       
    58     /**
       
    59     * By default Symbian 2nd phase constructor is private.
       
    60     */
       
    61 	void ConstructL();
       
    62 
       
    63 protected: // Data
       
    64 
       
    65 	CUpnpMapElement* iFirst; // owned
       
    66 };
       
    67 
       
    68 #endif // UPNPMAPBASE_H