upnpavcontroller/upnpxmlparser/src/upnpcontainertoxml.cpp
changeset 0 7f85d04be362
equal deleted inserted replaced
-1:000000000000 0:7f85d04be362
       
     1 /*
       
     2 * Copyright (c) 2005 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:      XML generation from an UPNP container
       
    15 *
       
    16 */
       
    17 
       
    18 
       
    19 
       
    20 
       
    21 
       
    22 
       
    23 // INCLUDE FILES
       
    24 // System
       
    25 #include <e32base.h>
       
    26 #include <s32mem.h>
       
    27 
       
    28 // upnp stack api
       
    29 #include <upnpstring.h>
       
    30 #include <upnpcontainer.h>
       
    31 
       
    32 // upnpframework / avcontroller helper api
       
    33 #include "upnpconstantdefs.h"
       
    34 
       
    35 // xmlparser internal
       
    36 #include    "upnpcontainertoxml.h"
       
    37 
       
    38 // CONSTANTS
       
    39 
       
    40 // ============================ MEMBER FUNCTIONS ============================
       
    41 
       
    42 // --------------------------------------------------------------------------
       
    43 // CUpnpContainerToXML::CUpnpContainerToXML
       
    44 // C++ default constructor can NOT contain any code, that
       
    45 // might leave.
       
    46 // --------------------------------------------------------------------------
       
    47 CUpnpContainerToXML::CUpnpContainerToXML( const CUpnpContainer& aContainer ) :
       
    48     iContainer( aContainer )
       
    49     {
       
    50     }
       
    51 
       
    52 // --------------------------------------------------------------------------
       
    53 // CUpnpContainerToXML::ConstructL
       
    54 // Symbian 2nd phase constructor can leave.
       
    55 // --------------------------------------------------------------------------
       
    56 void CUpnpContainerToXML::ConstructL()
       
    57     {
       
    58     }
       
    59 
       
    60 // --------------------------------------------------------------------------
       
    61 // CUpnpContainerToXML::NewL
       
    62 // Two-phased constructor.
       
    63 // --------------------------------------------------------------------------
       
    64 CUpnpContainerToXML* CUpnpContainerToXML::NewL( 
       
    65                                         const CUpnpContainer& aContainer )
       
    66     {
       
    67     CUpnpContainerToXML* self = CUpnpContainerToXML::NewLC( aContainer );    
       
    68     CleanupStack::Pop();
       
    69     return self;
       
    70     }
       
    71 
       
    72 
       
    73 // --------------------------------------------------------------------------
       
    74 // CUpnpContainerToXML::NewLC
       
    75 // Two-phased constructor.
       
    76 // --------------------------------------------------------------------------
       
    77 CUpnpContainerToXML* CUpnpContainerToXML::NewLC(
       
    78     const CUpnpContainer& aContainer )
       
    79     {
       
    80     CUpnpContainerToXML* self = new( ELeave ) CUpnpContainerToXML(
       
    81         aContainer );
       
    82     CleanupStack::PushL( self );
       
    83     self->ConstructL();
       
    84     return self;
       
    85     }
       
    86     
       
    87     
       
    88 // Destructor
       
    89 CUpnpContainerToXML::~CUpnpContainerToXML()
       
    90     {
       
    91     }
       
    92     
       
    93 // --------------------------------------------------------------------------
       
    94 // CUpnpContainerToXML::AsXmlL
       
    95 // Returns XML buffer
       
    96 // (other items were commented in a header).
       
    97 // --------------------------------------------------------------------------
       
    98 HBufC8* CUpnpContainerToXML::AsXmlL()
       
    99     {
       
   100     // Not implemented
       
   101     return NULL;
       
   102     }
       
   103 
       
   104 // --------------------------------------------------------------------------
       
   105 // CUpnpContainerToXML::AsEmptyXmlL
       
   106 // Returns XML buffer
       
   107 // (other items were commented in a header).
       
   108 // --------------------------------------------------------------------------
       
   109 HBufC8* CUpnpContainerToXML::AsEmptyXmlL()
       
   110     {
       
   111     // Not implemented
       
   112     return NULL;
       
   113     }
       
   114 
       
   115 // --------------------------------------------------------------------------
       
   116 // CUpnpContainerToXML::CreateUnDecodedXmlL
       
   117 // See upnpcontainertoxml.h
       
   118 // --------------------------------------------------------------------------
       
   119 HBufC8* CUpnpContainerToXML::CreateUnDecodedXmlL( const TDesC8& /*aData*/ )
       
   120     {
       
   121     // Not implemented
       
   122     return NULL;
       
   123     }
       
   124 
       
   125 //  End of File