epoc32/include/xml/plugins/parserinterface.h
branchSymbian2
changeset 2 2fe1408b6811
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/epoc32/include/xml/plugins/parserinterface.h	Tue Mar 16 16:12:26 2010 +0000
@@ -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 the License "Symbian Foundation License v1.0" to Symbian Foundation members and "Symbian Foundation End User License Agreement v1.0" to non-members
+// which accompanies this distribution, and is available
+// at the URL "http://www.symbianfoundation.org/legal/licencesv10.html".
+//
+// Initial Contributors:
+// Nokia Corporation - initial contribution.
+//
+// Contributors:
+//
+// Description:
+//
+
+
+#ifndef __PARSERINTERFACE_H__
+#define __PARSERINTERFACE_H__
+
+/** 
+@file
+@publishedPartner
+@released
+*/
+
+#include <e32std.h>
+#include <xml/contentsource.h>
+
+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__