xdmprotocols/XdmXmlParser/inc/XmlParserNodePath.h
author Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
Fri, 19 Mar 2010 09:37:41 +0200
changeset 12 e6a66db4e9d0
parent 0 c8caa15ef882
permissions -rw-r--r--
Revision: 201005 Kit: 201011

/*
* Copyright (c) 2005 Nokia Corporation and/or its subsidiary(-ies).
* All rights reserved.
* This component and the accompanying materials are made available
* under the terms of "Eclipse Public License v1.0"
* which accompanies this distribution, and is available
* at the URL "http://www.eclipse.org/legal/epl-v10.html".
*
* Initial Contributors:
* Nokia Corporation - initial contribution.
*
* Contributors:
*
* Description:   CXmlParserNodePath
*
*/




#ifndef __XMLPARSERNODEPATH__
#define __XMLPARSERNODEPATH__

// INCLUDES
//#include <parser.h>
#include <e32base.h>
#include <badesca.h>
#include <contenthandler.h>

class CXdmXmlParser;
class CXdmDocumentNode;
class MXmlNodePathInterface;

// CLASS DECLARATION
NONSHARABLE_CLASS( CXmlParserNodePath ) : public CBase
    {
    public:  // Constructors and destructor
        
        /**
        * Copies the request data
        * @param aRequestData Data to be sent
        */
        static CXmlParserNodePath* NewL( CXdmXmlParser& aParserMain,
                                         TXdmElementType iElementType,
                                         const CXdmDocumentNode& aTargetNode,
                                         MXmlNodePathInterface* aPathInterface );
        
        /**
        * Copies the request data
        * @param aRequestData Data to be sent
        */
        TBool CheckNextNode( const CXdmDocumentNode& aNextNode );
        
        /**
        * Copies the request data
        * @param aRequestData Data to be sent
        */
        TBool CheckNextNodeL( const TDesC8& aNextElement,
                              const Xml::RAttributeArray& aAttributes );
                              
        /**
        * Copies the request data
        * @param aRequestData Data to be sent
        */
        virtual ~CXmlParserNodePath();
        
    private:
        
        /**
        * Copies the request data
        * @param aRequestData Data to be sent
        */
        CXmlParserNodePath( CXdmXmlParser& aParserMain,
                            TXdmElementType aElementType,
                            MXmlNodePathInterface* aPathInterface );
        
        /**
        * Copies the request data
        * @param aRequestData Data to be sent
        */
        void ConstructL( const CXdmDocumentNode& aTargetNode );
        
    private: //Data
        
        TInt                                iIndex;
        TBool                               iComplete;
        TXdmElementType                     iElementType;
        MXmlNodePathInterface*              iPathInterface;
        RPointerArray<CXdmDocumentNode>     iNodes;
        CXdmXmlParser&                      iParserMain;
    };

#endif  //__XMLPARSERNODEPATH__


// End of File