websrv_pub/xml_fragment_api/tsrc/senfragmentTester/inc/maindomfragment.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 #ifndef MAIN_DOM_FRAGMENT_H
       
    24 #define MAIN_DOM_FRAGMENT_H
       
    25 
       
    26 // INCLUDES
       
    27 #include "SenDomFragmentBase.h"
       
    28 #include "delegatedomfragment.h"
       
    29 
       
    30 // CLASS DECLARATIONS
       
    31 class CMainDomFragment :  public CSenDomFragmentBase
       
    32     {
       
    33     public: // Constructors and destructor
       
    34 
       
    35         static CMainDomFragment* NewL();
       
    36         static CMainDomFragment* NewLC();
       
    37         static CMainDomFragment* NewL(const TDesC8& aNsUri,
       
    38                                            const TDesC8& aLocalName,
       
    39                                            const TDesC8& aQName);
       
    40         static CMainDomFragment* NewLC(const TDesC8& aNsUri,
       
    41                                             const TDesC8& aLocalName,
       
    42                                             const TDesC8& aQName);
       
    43         virtual ~CMainDomFragment();
       
    44 
       
    45         CDelegateDomFragment& DelegateFragment();        
       
    46 
       
    47     protected:
       
    48 
       
    49         /**
       
    50         * C++ default constructor.
       
    51         */
       
    52         CMainDomFragment();
       
    53 
       
    54         /**
       
    55         * By default Symbian 2nd phase constructor is private.
       
    56         */
       
    57         void BaseConstructL();
       
    58         void BaseConstructL(const TDesC8& aNsUri,
       
    59                             const TDesC8& aLocalName,
       
    60                             const TDesC8& aQName);
       
    61 
       
    62         virtual void OnStartElementL(const RTagInfo& aElement,
       
    63         							 const RAttributeArray& aAttributes,
       
    64         						 	 TInt aErrorCode);
       
    65 
       
    66         virtual void OnEndElementL(const RTagInfo& aElement,
       
    67         						   TInt aErrorCode);
       
    68 
       
    69         virtual void OnResumeParsingFromL(const RTagInfo& aElement, TInt aErrorCode);
       
    70     private: // Data
       
    71         CDelegateDomFragment* ipDelegateFragment;  // Owned
       
    72     };
       
    73 
       
    74 #endif // MAIN_DOM_FRAGMENT_H
       
    75 
       
    76 // End of File
       
    77 
       
    78