websrv_pub/xml_fragment_api/tsrc/senfragmentTester/inc/mainfragment.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_FRAGMENT_H
       
    24 #define MAIN_FRAGMENT_H
       
    25 
       
    26 // INCLUDES
       
    27 #include "SenFragmentBase.h"
       
    28 #include "delegatefragment.h"
       
    29 
       
    30 // CLASS DECLARATIONS
       
    31 class CMainFragment :  public CSenFragmentBase
       
    32     {
       
    33     public: // Constructors and destructor
       
    34 
       
    35         static CMainFragment* NewL();
       
    36         static CMainFragment* NewLC();
       
    37         static CMainFragment* NewL(const TDesC8& aNsUri,
       
    38                                            const TDesC8& aLocalName,
       
    39                                            const TDesC8& aQName);
       
    40         static CMainFragment* NewLC(const TDesC8& aNsUri,
       
    41                                             const TDesC8& aLocalName,
       
    42                                             const TDesC8& aQName);
       
    43         virtual ~CMainFragment();
       
    44         
       
    45         CDelegateFragment& DelegateFragment(); 
       
    46 
       
    47     protected:
       
    48 
       
    49         /**
       
    50         * C++ default constructor.
       
    51         */
       
    52         CMainFragment();
       
    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         // Functions from base classes
       
    63 
       
    64         // From CSenBaseFragment
       
    65         virtual void OnStartElementL(const RTagInfo& aElement,
       
    66         							 const RAttributeArray& aAttributes,
       
    67         						 	 TInt aErrorCode);
       
    68 
       
    69         virtual void OnEndElementL(const RTagInfo& aElement,
       
    70         						   TInt aErrorCode);
       
    71 
       
    72     private: // Data
       
    73         CDelegateFragment* ipDelegateFragment;  // Owned
       
    74     };
       
    75 
       
    76 #endif // MAIN_FRAGMENT_H
       
    77 
       
    78 // End of File
       
    79