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