websrv_pub/xml_extensions_api/tsrc/senxmlTester/inc/testxml.h
changeset 0 62f9d29f7211
equal deleted inserted replaced
-1:000000000000 0:62f9d29f7211
       
     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: Header declaration
       
    15 *
       
    16 */
       
    17 
       
    18 
       
    19 
       
    20 
       
    21 
       
    22 
       
    23 
       
    24 #ifndef TESTXML_H
       
    25 #define TESTXML_H
       
    26 
       
    27 #include <e32std.h>
       
    28 #include <f32file.h>
       
    29 #include "SenBaseFragment.h"
       
    30 #include "SenDomFragment.h"
       
    31 #include "SenBaseElement.h"
       
    32 #include "SenXmlElement.h"
       
    33 
       
    34 
       
    35 class CTestBaseFragment:public CSenBaseFragment
       
    36 {
       
    37 public:    
       
    38     static CTestBaseFragment* NewL(const TDesC8& aLocalName);
       
    39     ~CTestBaseFragment();
       
    40     
       
    41 	MSenElement& SetContentOfL(const TDesC8& aLocalName,const TDesC8& aContent);
       
    42 	TPtrC8 ContentOf(const TDesC8& aLocalName);        
       
    43    void BaseConstructL(CSenXmlReader& aReader);
       
    44 
       
    45 private:
       
    46 
       
    47     CTestBaseFragment();
       
    48     
       
    49 };
       
    50 
       
    51 class CTestDomFragment:public CSenDomFragment
       
    52 {
       
    53 public:    
       
    54    static CTestDomFragment* NewL(const TDesC8& aLocalName);
       
    55    void BaseConstructL(CSenXmlReader& aReader);
       
    56     ~CTestDomFragment();
       
    57     	
       
    58 
       
    59 private:
       
    60 
       
    61     CTestDomFragment();
       
    62     
       
    63 };
       
    64 
       
    65 class CTestBaseElement:public CSenBaseElement
       
    66 {
       
    67 public:    
       
    68    static CTestBaseElement* NewL(const TDesC8& aLocalName);
       
    69    const TDesC8& AddAttributeL(const TDesC8& aAttrName, const TDesC8& aValue);
       
    70     ~CTestBaseElement();
       
    71     	
       
    72 
       
    73 private:
       
    74 
       
    75     CTestBaseElement();
       
    76     
       
    77 };
       
    78 
       
    79 class CTestXmlElement:public CSenXmlElement
       
    80 {
       
    81 public:    
       
    82    static CTestXmlElement* NewL(const TDesC8& aLocalName);
       
    83    const TDesC8& AddAttributeL(const TDesC8& aAttrName, const TDesC8& aValue);
       
    84     ~CTestXmlElement();
       
    85     	
       
    86 
       
    87 private:
       
    88 
       
    89     CTestXmlElement();
       
    90     
       
    91 };
       
    92 #endif