williamr@2: // Copyright (c) 2003-2009 Nokia Corporation and/or its subsidiary(-ies). williamr@2: // All rights reserved. williamr@2: // This component and the accompanying materials are made available williamr@4: // under the terms of "Eclipse Public License v1.0" williamr@2: // which accompanies this distribution, and is available williamr@4: // at the URL "http://www.eclipse.org/legal/epl-v10.html". williamr@2: // williamr@2: // Initial Contributors: williamr@2: // Nokia Corporation - initial contribution. williamr@2: // williamr@2: // Contributors: williamr@2: // williamr@2: // Description: williamr@2: // Plugin interface williamr@2: // williamr@2: // williamr@2: williamr@2: #ifndef __WBXMLEXTENSIONHANDLER_H__ williamr@2: #define __WBXMLEXTENSIONHANDLER_H__ williamr@2: williamr@2: #include williamr@2: williamr@2: williamr@2: class RString; williamr@2: williamr@2: namespace Xml williamr@2: { williamr@2: williamr@2: class MWbxmlExtensionHandler williamr@2: /** williamr@2: The Wbxml api extension class. williamr@2: Inherited by classes wishing to cater for this interface, e.g. WbxmlParser. williamr@2: williamr@2: @publishedAll williamr@2: @released williamr@2: */ williamr@2: { williamr@2: public: williamr@2: williamr@2: /** williamr@2: The uid identifying this extension interface. williamr@2: */ williamr@2: enum TExtInterfaceUid {EExtInterfaceUid = 0x101FE212}; williamr@2: williamr@2: /** williamr@2: This method is a receive notification of an extension instruction. williamr@2: The type of extension is specified in aToken and is based on the global tokens williamr@2: specified in WBXML documents. williamr@2: @see http://www.w3.org/TR/wbxml/ williamr@2: @param aData is the extension data. williamr@2: @param aToken is the global unambiguous token value. williamr@2: @param aErrorCode is the error code. williamr@2: If this is not KErrNone then special action may be required. williamr@2: */ williamr@2: virtual void OnExtensionL(const RString& aData, TInt aToken, TInt aErrorCode) = 0; williamr@2: williamr@2: }; williamr@2: williamr@2: } williamr@2: williamr@2: #endif //__WBXMLEXTENSIONHANDLER_H__