xml/xmllibxml2parser/test/tef/xmlparser2/src/tetestcontenthandler.h
changeset 0 e35f40988205
equal deleted inserted replaced
-1:000000000000 0:e35f40988205
       
     1 // Copyright (c) 2009 Nokia Corporation and/or its subsidiary(-ies).
       
     2 // All rights reserved.
       
     3 // This component and the accompanying materials are made available
       
     4 // under the terms of "Eclipse Public License v1.0"
       
     5 // which accompanies this distribution, and is available
       
     6 // at the URL "http://www.eclipse.org/legal/epl-v10.html".
       
     7 //
       
     8 // Initial Contributors:
       
     9 // Nokia Corporation - initial contribution.
       
    10 //
       
    11 // Contributors:
       
    12 //
       
    13 // Description:
       
    14 //
       
    15 
       
    16 /**
       
    17  @file tetestcontenthandler.h
       
    18  @internalTechnology
       
    19 */
       
    20 
       
    21 #ifndef _TE_TESTCONTENTHANDLER_H_
       
    22 #define _TE_TESTCONTENTHANDLER_H_
       
    23 
       
    24 #include <xml/contenthandler.h>
       
    25 #include <xml/parser.h>
       
    26 
       
    27 /**
       
    28  * Dummy content handler for XML
       
    29  */
       
    30 class CTestContentHandler: public CBase, public Xml::MContentHandler
       
    31     {
       
    32 public:
       
    33     static CTestContentHandler* NewL();
       
    34     ~CTestContentHandler();
       
    35 
       
    36     // From MContentHandler
       
    37     void OnStartDocumentL(const Xml::RDocumentParameters& aDocParam, TInt aErrorCode);
       
    38     void OnEndDocumentL(TInt aErrorCode);
       
    39     void OnStartElementL(const Xml::RTagInfo& aElement, const Xml::RAttributeArray& aAttributes, TInt aErrorCode);
       
    40     void OnEndElementL(const Xml::RTagInfo& aElement, TInt aErrorCode);
       
    41     void OnContentL(const TDesC8& aBytes, TInt aErrorCode);
       
    42     void OnStartPrefixMappingL(const RString& aPrefix, const RString& aUri, TInt aErrorCode);
       
    43     void OnEndPrefixMappingL(const RString& aPrefix, TInt aErrorCode);
       
    44     void OnIgnorableWhiteSpaceL(const TDesC8& aBytes, TInt aErrorCode);
       
    45     void OnSkippedEntityL(const RString& aName, TInt aErrorCode) ;
       
    46     void OnProcessingInstructionL(const TDesC8& aTarget, const TDesC8& aData, TInt aErrorCode);
       
    47     void OnError(TInt aErrorCode);
       
    48     TAny* GetExtendedInterface(const TInt32 aUid);
       
    49  
       
    50 private:
       
    51 	CTestContentHandler();
       
    52 	void ConstructL();
       
    53     };
       
    54 #endif /*TE_TESTCONTENTHANDLER_H_*/