messagingfw/wappushfw/MiscPushMsgUtils/inc/cmultiparttextiterator.h
changeset 22 bde600d88860
child 35 f8ad95794a08
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/messagingfw/wappushfw/MiscPushMsgUtils/inc/cmultiparttextiterator.h	Fri Jun 04 10:32:16 2010 +0100
@@ -0,0 +1,76 @@
+// 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:
+//
+
+/**
+ @file
+ @internalTechnology
+ @released
+*/
+
+#ifndef __CMULTIPARTTEXTITERATOR_H__
+#define __CMULTIPARTTEXTITERATOR_H__
+
+
+#include <e32std.h>
+#include <e32base.h>
+
+#include <push/cmultipartiteratorbase.h>
+#include <push/pushdispatcher.h>
+
+
+_LIT(KMultipartText, "multipart/");
+_LIT(KMultipartBin, "application/vnd.wap.multipart");
+
+
+//##ModelId=3B659EE4024E
+class CMultipartTextIterator : public CMultipartIteratorBase
+/** Splits a text multipart MIME message into its parts. 
+
+This text formatted multipart is in RFC 2061 format (multipart/). The class can 
+determine the boundaries and pull out the parts.
+
+It implements the abstract multipart iterator interface defined in CMultipartIteratorBase. 
+@internalTechnology
+@released
+*/
+	{
+public:
+	//##ModelId=3B659EE4028A
+	IMPORT_C static CMultipartTextIterator* NewL(CPushMessage& aPushMessage);
+	//##ModelId=3B659EE40282
+	IMPORT_C virtual ~CMultipartTextIterator();
+		
+	// from CMultipartIteratorBase
+	//##ModelId=3B659EE40281
+	IMPORT_C virtual TBool NextL();
+	//##ModelId=3B659EE40280
+	IMPORT_C virtual void FirstL();
+	//##ModelId=3B659EE40279
+	IMPORT_C virtual CPushMessage* PartL();
+private:
+	//##ModelId=3B659EE40277
+	CMultipartTextIterator(CPushMessage& aPushMessage);
+	//##ModelId=3B659EE40276
+	void BoundaryParamL();
+	//##ModelId=3B659EE4026E
+	void ConstructL();
+private:
+	//##ModelId=3B659EE40264
+	HBufC8*	iBoundary;
+	//##ModelId=3B659EE4025B
+	TPtrC8 iIndexPtr;
+	};
+
+#endif // __CMULTIPARTTEXTITERATOR_H__