simpleengine/xmlutils/src/simplexmlfactory.cpp
changeset 0 c8caa15ef882
equal deleted inserted replaced
-1:000000000000 0:c8caa15ef882
       
     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:    Simple Engine
       
    15 *
       
    16 */
       
    17 
       
    18 
       
    19 
       
    20 
       
    21 // INCLUDE FILES
       
    22 
       
    23 #include <e32std.h>
       
    24 
       
    25 // own simple
       
    26 #include "simplexmlfactory.h"
       
    27 
       
    28 #include "simplenamespace.h"
       
    29 #include "simpleelement.h"
       
    30 #include "simpledocument.h"
       
    31 #include "simplefilter.h"
       
    32 #include "simplepresencelist.h"
       
    33 #include "simplewinfo.h"
       
    34 #include "simplecontent.h"
       
    35 
       
    36 #include "msimplenamespace.h"
       
    37 #include "msimpleelement.h"
       
    38 #include "msimpledocument.h"
       
    39 #include "msimplefilterdocument.h"
       
    40 #include "msimplepresencelist.h"
       
    41 #include "msimplewinfo.h"
       
    42 
       
    43 // ================= MEMBER FUNCTIONS =======================
       
    44 //
       
    45 
       
    46 EXPORT_C MSimpleNamespace* TSimpleXmlFactory::NewNamespaceL(
       
    47     const TDesC8& aPrefix,
       
    48     const TDesC8& aUri )
       
    49     {
       
    50     return CSimpleNamespace::NewL( aPrefix, aUri );
       
    51     }
       
    52 
       
    53 EXPORT_C MSimpleElement* TSimpleXmlFactory::NewElementL(
       
    54     const TDesC8& aNsUri,
       
    55     const TDesC8& aLocalName )
       
    56     {
       
    57     return CSimpleElement::NewL( aNsUri, aLocalName );
       
    58     }
       
    59 
       
    60 EXPORT_C MSimpleDocument* TSimpleXmlFactory::NewDocumentL( )
       
    61     {
       
    62     return CSimpleDocument::NewL( );
       
    63     }
       
    64 
       
    65 EXPORT_C MSimpleDocument* TSimpleXmlFactory::NewDocumentL( const TDesC8& aXml )
       
    66     {
       
    67     return CSimpleDocument::NewL( aXml );
       
    68     }
       
    69     
       
    70 EXPORT_C MSimpleDocument* TSimpleXmlFactory::NewDocumentInMultiPartL( 
       
    71     const TDesC8& aData, const TDesC8& aBoundary, const TDesC8& aStart )
       
    72     {
       
    73     return CSimpleDocument::NewInMultiPartL( aData, aBoundary, aStart );
       
    74     }    
       
    75 
       
    76 EXPORT_C MSimpleFilterDocument* TSimpleXmlFactory::NewFilterDocumentL()
       
    77     {
       
    78     return CSimpleFilter::NewL();
       
    79     }
       
    80     
       
    81 EXPORT_C MSimplePresenceList* TSimpleXmlFactory::NewPresenceListL(
       
    82     const TDesC8& aData, const TDesC8& aBoundary, const TDesC8& aStart )
       
    83     {
       
    84     return CSimplePresenceList::NewL( aData, aBoundary, aStart );
       
    85     } 
       
    86     
       
    87 EXPORT_C MSimpleWinfo* TSimpleXmlFactory::NewWinfoL( )
       
    88     {
       
    89     return CSimpleWinfo::NewL( );      
       
    90     }    
       
    91     
       
    92 EXPORT_C MSimpleWinfo* TSimpleXmlFactory::NewWinfoL( const TDesC8& aXml )
       
    93     {
       
    94     return CSimpleWinfo::NewL( aXml );      
       
    95     }
       
    96     
       
    97 EXPORT_C MSimpleFilterDocument* TSimpleXmlFactory::NewFilterDocumentL( const TDesC8& aXml )
       
    98     {
       
    99     return CSimpleFilter::NewL( aXml );
       
   100     }    
       
   101     
       
   102 EXPORT_C MSimpleContent* TSimpleXmlFactory::NewContentL( 
       
   103         const TDesC8& aContentID, const TDesC8& aContentType )
       
   104     {
       
   105     return CSimpleContent::NewL( aContentID, aContentType );
       
   106     }
       
   107