diff -r 000000000000 -r e35f40988205 xml/xmlfw/inc/plugins/parserinterface.h --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/xml/xmlfw/inc/plugins/parserinterface.h Thu Dec 17 09:29:21 2009 +0200 @@ -0,0 +1,55 @@ +// Copyright (c) 2003-2009 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: +// + + +#ifndef __PARSERINTERFACE_H__ +#define __PARSERINTERFACE_H__ + +/** +@file +@publishedPartner +@released +*/ + +#include +#include + +namespace Xml +{ + +/** A parser ECOM plugin for the XML Framework must implement this interface. */ +class MParser : public MContentSource + { +public: + /** Enable a feature. */ + virtual TInt EnableFeature(TInt aParserFeature) = 0; + /** Disable a feature. */ + virtual TInt DisableFeature(TInt aParserFeature) = 0; + /** See if a feature is enabled. */ + virtual TBool IsFeatureEnabled(TInt aParserFeature) const = 0; + + /** Parses a descriptor that contains part of a document. */ + virtual void ParseChunkL(const TDesC8& aChunk) = 0; + + /** Parses a descriptor that contains the last part of a document. */ + virtual void ParseLastChunkL(const TDesC8& aFinalChunk) = 0; + + /** Interfaces don't have a destructor, so we have an explicit method instead. */ + virtual void Release() = 0; + }; + +} + +#endif //__PARSERINTERFACE_H__