epoc32/include/xml/wbxmlextensionhandler.h
branchSymbian2
changeset 2 2fe1408b6811
parent 0 061f57f2323e
child 4 837f303aceeb
     1.1 --- a/epoc32/include/xml/wbxmlextensionhandler.h	Tue Nov 24 13:55:44 2009 +0000
     1.2 +++ b/epoc32/include/xml/wbxmlextensionhandler.h	Tue Mar 16 16:12:26 2010 +0000
     1.3 @@ -1,1 +1,61 @@
     1.4 -wbxmlextensionhandler.h
     1.5 +// Copyright (c) 2003-2009 Nokia Corporation and/or its subsidiary(-ies).
     1.6 +// All rights reserved.
     1.7 +// This component and the accompanying materials are made available
     1.8 +// 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
     1.9 +// which accompanies this distribution, and is available
    1.10 +// at the URL "http://www.symbianfoundation.org/legal/licencesv10.html".
    1.11 +//
    1.12 +// Initial Contributors:
    1.13 +// Nokia Corporation - initial contribution.
    1.14 +//
    1.15 +// Contributors:
    1.16 +//
    1.17 +// Description:
    1.18 +// Plugin interface
    1.19 +// 
    1.20 +//
    1.21 +
    1.22 +#ifndef __WBXMLEXTENSIONHANDLER_H__
    1.23 +#define __WBXMLEXTENSIONHANDLER_H__
    1.24 +
    1.25 +#include <e32std.h>
    1.26 +
    1.27 +
    1.28 +class RString;
    1.29 +
    1.30 +namespace Xml
    1.31 +{
    1.32 +
    1.33 +class MWbxmlExtensionHandler
    1.34 +/**
    1.35 +The Wbxml api extension class.
    1.36 +Inherited by classes wishing to cater for this interface, e.g. WbxmlParser.
    1.37 +
    1.38 +@publishedAll
    1.39 +@released
    1.40 +*/
    1.41 +	{
    1.42 +public:
    1.43 +
    1.44 +/**
    1.45 +The uid identifying this extension interface.
    1.46 +*/
    1.47 +	enum TExtInterfaceUid {EExtInterfaceUid = 0x101FE212};
    1.48 +	
    1.49 +/**
    1.50 +This method is a receive notification of an extension instruction.
    1.51 +The type of extension is specified in aToken and is based on the global tokens
    1.52 +specified in WBXML documents.
    1.53 +@see http://www.w3.org/TR/wbxml/
    1.54 +@param				aData is the extension data.
    1.55 +@param				aToken is the global unambiguous token value.
    1.56 +@param				aErrorCode is the error code.
    1.57 +					If this is not KErrNone then special action may be required.
    1.58 +*/
    1.59 +	virtual void OnExtensionL(const RString& aData, TInt aToken, TInt aErrorCode) = 0;
    1.60 +
    1.61 +	};
    1.62 +
    1.63 +}
    1.64 +
    1.65 +#endif //__WBXMLEXTENSIONHANDLER_H__