websrv_pub/xml_fragment_api/tsrc/bc/senfragment/src/delegatefragment.cpp
branchRCL_3
changeset 34 f68f07157250
equal deleted inserted replaced
30:b72ea8487adb 34:f68f07157250
       
     1 /*
       
     2 * Copyright (c) 2009 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:        
       
    15 *
       
    16 */
       
    17 
       
    18 
       
    19 
       
    20 
       
    21 
       
    22 
       
    23 
       
    24 
       
    25 #include "delegatefragment.h"
       
    26 
       
    27 using namespace Xml;
       
    28 
       
    29 namespace
       
    30     {
       
    31     }
       
    32 
       
    33 CDelegateFragment* CDelegateFragment::NewL(
       
    34     const TDesC8& aNsUri,
       
    35     const TDesC8& aLocalName,
       
    36     const TDesC8& aQName,
       
    37     const RAttributeArray& aAttributes
       
    38     )
       
    39     {
       
    40     CDelegateFragment* pNew = NewLC(aNsUri, aLocalName, aQName, aAttributes);
       
    41     CleanupStack::Pop(); // pNew;
       
    42     return pNew;
       
    43     }
       
    44 
       
    45 CDelegateFragment* CDelegateFragment::NewLC(
       
    46     const TDesC8& aNsUri,
       
    47     const TDesC8& aLocalName,
       
    48     const TDesC8& aQName,
       
    49     const RAttributeArray& aAttributes
       
    50     )
       
    51     {
       
    52     CDelegateFragment* pNew = new (ELeave) CDelegateFragment;
       
    53     CleanupStack::PushL(pNew);
       
    54     pNew->BaseConstructL(aNsUri, aLocalName, aQName, aAttributes);
       
    55     return pNew;
       
    56     }
       
    57 
       
    58 CDelegateFragment* CDelegateFragment::NewL(
       
    59     const TDesC8& aNsUri,
       
    60     const TDesC8& aLocalName,
       
    61     const TDesC8& aQName,
       
    62     const RAttributeArray& aAttributes,
       
    63     TXmlEngElement& aParent
       
    64     )
       
    65     {
       
    66     CDelegateFragment* pNew = NewLC(aNsUri, aLocalName,
       
    67                                 aQName, aAttributes, aParent);
       
    68     CleanupStack::Pop(); // pNew;
       
    69     return pNew;
       
    70     }
       
    71 
       
    72 CDelegateFragment* CDelegateFragment::NewLC(
       
    73     const TDesC8& aNsUri,
       
    74     const TDesC8& aLocalName,
       
    75     const TDesC8& aQName,
       
    76     const RAttributeArray& aAttributes,
       
    77     TXmlEngElement& aParent
       
    78     )
       
    79     {
       
    80     CDelegateFragment* pNew = new (ELeave) CDelegateFragment;
       
    81     CleanupStack::PushL(pNew);
       
    82     pNew->BaseConstructL(aNsUri, aLocalName, aQName, aAttributes, aParent);
       
    83     return pNew;
       
    84     }
       
    85 
       
    86 CDelegateFragment::CDelegateFragment()
       
    87     {
       
    88     }
       
    89 
       
    90 CDelegateFragment::~CDelegateFragment()
       
    91     {
       
    92     }
       
    93 
       
    94 // End of File
       
    95 
       
    96