williamr@2: // Copyright (c) 1997-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@2: // 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 williamr@2: // which accompanies this distribution, and is available williamr@2: // at the URL "http://www.symbianfoundation.org/legal/licencesv10.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: // Data generator for data transmission, used by URL Handler when transmitting data williamr@2: // williamr@2: // williamr@2: williamr@2: #if !defined(__MDPTX_H__) williamr@2: #define __MDPTX_H__ williamr@2: williamr@2: #include williamr@2: williamr@2: /** williamr@2: @publishedAll williamr@2: @released williamr@2: */ williamr@2: class MDataProviderTransmissionData williamr@2: { williamr@2: public: williamr@2: // This should return the data that the url handler should transmit. williamr@2: // This call will be repeated until datasize amounts of data has been williamr@2: // transmitted williamr@2: virtual const TDesC8& DataL()=0; williamr@2: williamr@2: // Returns the size of the amount of data that needs to be transmitted. williamr@2: virtual TInt DataSize()=0; williamr@2: williamr@2: // This returns the name of the data, this will depend on the type of williamr@2: // data transmission, williamr@2: virtual const TDesC& DataNameL()=0; williamr@2: williamr@2: // This should return the refering url or NULL; williamr@2: virtual const TDesC& RefererUrlL()=0; williamr@2: williamr@2: // This returns the accepted charset. williamr@2: virtual const TDesC& AcceptedCharsetL()=0; williamr@2: williamr@2: // This returns the accepted mimetype williamr@2: virtual const TDesC& AcceptedMimetypes()=0; williamr@2: williamr@2: private: williamr@2: // Reserved for future expansion williamr@2: IMPORT_C virtual void MDataProviderTransmissionData_Reserved1()=0; williamr@2: }; williamr@2: williamr@2: #endif // __MDPTX_H__